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

前端 未结 14 2136
暗喜
暗喜 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:18

    Here's a common mistake that'll make you want to slap yourself after you fix it.

    Yes, you definitely do want to add "$(BUILT_PRODUCTS_DIR)/../../Headers" to your target's Header Search Paths, but don't forget to include the quotes!

    I'm talking about the quotes that are before $(BUILT and after _DIR)/../../Headers

    If your build configuration has a space in the name (e.g. mine is 'Ad Hoc') and you've just added $(BUILT_PRODUCTS_DIR)/../../Headers without the leading and trailing quotes, you may end up getting the "Lexical or Preprocessor issue: RestKit/RestKit.h file not found" problem.

提交回复
热议问题