分类: 嵌入式
2011-06-14 11:46:25
Last day i opened and compiled an old project of iPhone; I’m using Xcode 3.2.5 with iOS 4.2 on Mac OS X 10.6.6; When i complied that project I got the following error in multiple xib files
Pattern colors are not supported by the iPhone SDK for iOS versions prior to 3.0.
Reason of Error;
The project was built and compiled with iOS 3.0, and will work fine on sdk 3.2 and 2.2.1 but on sdk 4.0 it will throw that error;
The deployment target for xib files was set to iOS 2.1.1 when you use ios3.0 or prior;
Solutions;
While working on iOS 4.0+ you must need to change the the Deployment Target in xib file to 3.0;
How to do ;
Open the .xib file in Interface Builder, then select Window > Document Inf, select a later version of Deployment Target OS version. see the Image below;
Here the Deployment Target is set to iOS 2.1 and hence producing error; Change it to iOS 3.0 when you are working on iOS 4.0+;