简体   繁体   English

“建立归档”工作,“归档”没有

[英]“Build for archiving” work, “Archive” does not

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/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. 在构建和运行应用程序时(即使在iPhone上,而不仅仅是模拟器)也没有显示任何问题。

I had the same issue. 我遇到过同样的问题。 It appears to be a bug or something in how Xcode handles static libraries and implicit dependencies. 它似乎是一个错误或Xcode如何处理静态库和隐式依赖项的东西。 You can find several suggestions here: Compile, Build or Archive problems with Xcode 4 (and dependencies) 你可以在这里找到几个建议: 使用Xcode 4(和依赖项)编译,构建或存档问题

For me, step 3 on the answer was the solution. 对我来说,答案的第3步是解决方案。 Also see step 8 on the answer here: How do you get implicit dependencies to work with workspaces in Xcode 4? 另请参阅答案的第8步: 如何在Xcode 4中使用隐式依赖项来处理工作空间?

RestKit installation into your XCode 4 project should be uneventful (at least it was for me). RestKit安装到您的XCode 4项目应该是平安无事的(至少对我而言)。 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//github.com/RestKit/RestKit/tree/master/Docs/Images/Installation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM