xcode 4.5.2 header search path problems

I've been working with Xcode 4.5.2 for several weeks and have found that the header search paths present the most difficult problems to solve. At the moment I'm working on an OpenFrameworks project and am typing '#include "UIImage.h"' into the testApp.h file. Xcode says it cannot find the UIImage.h file. I've found the path of the file and added it to the Header Search Paths and to the User Header Search Paths:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/System/Library/Frameworks/

Still does not find the file. I've read numerous posts here about this problem and tried to implement some of the solutions, but to no avail. Am I missing something obvious?


Your issue is similar to this one. Try using something like "#include <Foundation/UIImage.h>" . I've been fighting with xCode search paths as well. Here are two observations:

  • If you need to include your own headers, make sure that these are copied first (see the other post for steps).
  • Check the order inside "build phases" and make sure that the copying happens before compiling your sources.
  • 链接地址: http://www.djcxy.com/p/42632.html

    上一篇: Xcode的用户头部搜索路径

    下一篇: xcode 4.5.2头部搜索路径问题