RestKit/RestKit.h' file not found error during xcodebuild

与世无争的帅哥 提交于 2019-12-01 09:41:25

I don't think am answering this question, but a proper workaround this would be making use of XCode Schemes. Also one should mark the particular scheme as Shared.

These links can serve helpful

http://tetontech.wordpress.com/2011/05/26/command-line-building-using-xcode/

http://developer.apple.com/library/ios/#recipes/xcode_help-scheme_editor/Articles/SchemeManage.html

I have exactly same problem. My solution:

firstly you have build RestKit. After than, you can build your project.

If you run script from you project's top directory and restkit is in RestKit folder:

xcodebuild -project RestKit/RestKit.xcodeproj -target RestKit -sdk iphonesimulator -configuration Debug clean build

Then you can build you project.

If this isn't enought, add to "Header search paths" this two :

"$(BUILT_PRODUCTS_DIR)/../../RestKit/Build/Headers"
"$(BUILT_PRODUCTS_DIR)/../../Headers/RestKit"

And beware, you have to add this to all targets

Work out in the same way as described in the steps in this link. You should be good to go.

If you're using build 0.20 (as opposed to 0.10) Then look at this link: https://github.com/RestKit/RestKit/wiki/Installation-Troubleshooting

Be sure to see what it says under the Updating the Precompiled Header File section. It was something that I didn't notice in any other setup guide.

SFeng

I guess your problem is the same as "Xcodebuild'ing a workspace and setting a custom build path". Set the SYSROOT with absolute path, default is relative path.

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