NB: The steps below will solve 90% of your Xcode archive issues however, from the comments it is suggested you try quitting Xcode first. This may save you hours of setting tweaking.
- Check the "user header paths" are correct (Add "" to paths for spaces, both in your project and dependencies)
- Set "Always search user paths" to YES
- Create a group call "Indexing headers" in your project and drag the headers to this group, DO NOTadd to any targets when prompted. This includes any headers inside your .xcdatamodeld, you'll need to right-click and view package contents to find them.
- For all dependancies set "Skip Install" build setting to "Yes"
- Moving any "Public" headers in Build Phases to "Project"
- Set the Build Setting "Installation Directory" on your Target to
$(LOCAL_APPS_DIR) - Change the target build setting "scan all source files for includes" to YES. (link)
- With newer versions of Xcode (> 4.2) you might want to read this question related to workspaces.
- Manually delete the project.xcworkspace files form all referenced projects
本文提供了一系列步骤来解决Xcode中的归档问题,包括检查用户头文件路径、设置搜索选项、创建索引组、调整依赖项配置等,适用于Xcode 4.2及更高版本。
5008

被折叠的 条评论
为什么被折叠?



