开发者

Adding Existing Framework to Xcode (iPhone) error

开发者 https://www.devze.com 2022-12-24 12:00 出处:网络
I have added the <QuartzCore/QuartzCore.h> to my Frameworks folder in my iPhone project and added the #import \"<QuartzCore/QuartzCore.h>\" statement at the top of a custom UIView class.

I have added the <QuartzCore/QuartzCore.h> to my Frameworks folder in my iPhone project and added the #import "<QuartzCore/QuartzCore.h>" statement at the top of a custom UIView class.

However the custom UIView class gives me a "No such file or directory" compliation error in relation to the <QuartzCore/QuartzCore.h>开发者_StackOverflow framework. Is there something else I need to set so that the compiler can see the framework.

I'm not expert on the Xcode IDE so any assistance would be extremely welcome.


try removing the quotes around the <QuartzCore/QuartzCore.h>

you don't need them when you are importing a framework.


This is the correct syntax:

#import <QuartzCore/QuartzCore.h> // not #import "<QuartzCore/QuartzCore.h>"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号