存档时,所有RestKit项目都无法构建 [英] All RestKit projects fail to build when archiving
问题描述
这个问题需要RESTKIT 0.9.x。
如果你是新手,请考虑使用NEWER ,但这不起作用。
按 Blake的答案我正在构建DerivedData目录:
此外,我已尝试将标题搜索设置为这些(在许多组合中[只是猜测]):
$(BUILD_DIR)/ RestKit / Build
$(SOURCE_ROOT)/ RestKit / Build
$(SOURCE_ROOT)/../../ Build
$(BUILD_DIR)/../../建立
解决方案
!!!更新到th最新版本的分支!!!
我刚刚在Xcode 4.2上构建了RKCatalog和RKTwitterCoreData作为存档而没有问题。由于代码签名问题,我失败了。您是否确认使用DerivedData目录构建:
RestKit假定您正在使用构建到DerivedData目录的现代Xcode项目。通过文件菜单>项目设置...确认您的设置
。在打开的工作表中的构建选项卡上,单击高级...
按钮并确认构建位置是派生数据位置。
我可以推动将标头rsync转移到已知位置的更改,但我希望对DerivedData进行标准化将简化该过程。
THIS QUESTION REFERS TO RESTKIT 0.9.x.
IF YOU ARE NEW TO RESTKIT CONSIDER USING THE NEWER 0.10.x branch.
I recently inherited a project that uses restkit (restkit.org). I have started using a branch (402-new-build-process) that is more compatible with xcode4.2.
My project an all the example projects build and run, but when it comes to Archiving an app the build fails:
/Users/AUser/Documents/SubFolder/stable-branches/project-iOS-client/RestKit/Examples/RKTwitterCoreData/Classes/RKTwitterAppDelegate.m:9:9: fatal error: 'RestKit/RestKit.h' file not found [2] #import <RestKit/RestKit.h> ^ 1 error generated.
I have followed the Installation Troubleshooting guide on the project wiki, but this did not work.
As per Blake's answer I am building to the DerivedData directory:
In addition I have tried setting header search to these (in many combinations [just guesses]):
"$(BUILD_DIR)/RestKit/Build"
"$(SOURCE_ROOT)/RestKit/Build"
"$(SOURCE_ROOT)/../../Build"
"$(BUILD_DIR)/../../Build"
解决方案!!!Update to the latest version of the branch!!!
I've just built RKCatalog and RKTwitterCoreData as an archive on Xcode 4.2 without issue. I am failing due to a Code Signing issue. Have you confirmed that you are building with the DerivedData directory:
RestKit assumes that you are using a modern Xcode project building to the DerivedData directory. Confirm your settings via the "File" menu > "Project Settings...". On the "Build" tab within the sheet that opens, click the "Advanced..." button and confirm that your "Build Location" is the "Derived Data Location".
I can push changes that rsync the headers to a known location, but I was hoping that standardizing on DerivedData would simplify the process.
这篇关于存档时,所有RestKit项目都无法构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!