“为归档而构建”工作,“存档”不
在我当前的项目中,我正在集成 RestKit 库(我不知道这是否重要),尝试交付应用程序进行测试,当我使用“存档”时,编译器
"RestKit/RestKit.h" is not found
在构建和运行应用程序时会抱怨(即使在 iPhone 上,而不仅仅是在模拟器)根本没有显示任何问题。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我有同样的问题。这似乎是 Xcode 处理静态库和隐式依赖项的方式中的错误或其他问题。您可以在这里找到一些建议:编译、构建或存档Xcode 4(和依赖项)的问题
对我来说,答案的第 3 步就是解决方案。另请参阅此处答案的步骤 8:如何获得隐式依赖关系以使用 Xcode 4 中的工作区?
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?
将 RestKit 安装到您的 XCode 4 项目中应该很顺利(至少对我来说是这样)。然而,找到关于如何以正确的方式进行操作的适当的最新文档并不容易找到。
检查您是否按照这些屏幕截图中所述的步骤进行操作:https://github .com/RestKit/RestKit/tree/master/Docs/Images/Installation
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