I’m trying to build a static library but i get compile-time errors such as: Unknown type name UIImage or Unknown type name CGSize.
I have added both UIKit and CoreGraphics frameworks to Link Binary With Libraries.
What am I doing wrong ??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it’s compile time errors then it’s nothing to do with the libraries you’re linking against. This error sounds very much like you haven’t included the UIKit headers. Make sure that you have
#import <UIKit/UIKit.h>in the files that you’re usingUIImageandCGSizein.