Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1182418
  • 博文数量: 233
  • 博客积分: 6270
  • 博客等级: 准将
  • 技术积分: 1798
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-26 08:32
文章分类

全部博文(233)

文章存档

2011年(31)

2010年(202)

我的朋友

分类: 嵌入式

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+;

阅读(931) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~