RestKit/RestKit.h file not found error - version 0.10.0

前端 未结 14 1983
暗喜
暗喜 2021-01-17 07:49

I am losing my hair in my attempts to get RestKit to build and work. I get the dreaded \"Lexical or Preprocessor issue: RestKit/RestKit.h file not found\" message. I use Xc

14条回答
  •  悲哀的现实
    2021-01-17 08:12

    Been fighting with the same issue for the past few hours. What finally worked for me (and I'm not saying this is a definite fix, but at least it's something to try).

    • Delete RestKit from your Project
    • Close your project
    • Move the RestKit folder next to your main xcodeproject
    • Open the RestKit project and build it
    • Close the RestKit project
    • Open your project, and re-import the RestKit project into your xcodeproject
    • Fix the Dependencies and Linkings in the target settings
    • Add the "$(BUILT_PRODUCTS_DIR)/../../Headers" search path to BOTH the project settings and the target settings. (it only worked for me when they were listed in both).

    This last step might be all that's necessary to fix it, but since I too was pulling my hair out over this, I tried a lot of different solutions and didn't want to assume that this last step was the sole reason it fixed itself.

    (and my setup is XCode 4.3.2 and OS X 10.7.3)

提交回复
热议问题