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

后端 未结 3 1881
情歌与酒
情歌与酒 2021-01-14 05:46

I am trying to use Jenkins-CI to auto-build an iOS project that uses Restkit, apparently, restkit resides as a project inside the main project. And the project builds succes

3条回答
  •  遥遥无期
    2021-01-14 06:02

    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

提交回复
热议问题