“Build for archiving” work, “Archive” does not

痞子三分冷 提交于 2019-12-06 07:36:46

问题


In my current project I am integrating RestKit library (I don't know if it matters), trying to deliver the app for testing when I use "Archive" the compiler complains

 "RestKit/RestKit.h" is not found

while building and running the app (even on iPhones, not just the simulator) does not show any problem at all.


回答1:


I had the same issue. It appears to be a bug or something in how Xcode handles static libraries and implicit dependencies. You can find several suggestions here: Compile, Build or Archive problems with Xcode 4 (and dependencies)

For me, step 3 on the answer was the solution. Also see step 8 on the answer here: How do you get implicit dependencies to work with workspaces in Xcode 4?




回答2:


RestKit installation into your XCode 4 project should be uneventful (at least it was for me). However finding the proper up-to-date documentation on how to do it the right way wasn't exactly easy to find.

Check that you followed steps steps as described in these screenshots: https://github.com/RestKit/RestKit/tree/master/Docs/Images/Installation



来源:https://stackoverflow.com/questions/8376753/build-for-archiving-work-archive-does-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!