john146
john146

Reputation: 977

XIB Compiler Error

Getting a "Pattern colors are not supported by the iPhone SDK for iPhone OS versions prior to 3.0." error from Xcode when compiling an application for iPhone OS 2.2.1. I'm using Xcode 3.2 on Snow Leopard.

The interesting thing is that others (I don't know host OS or Xcode version) are compiling this code fine.

Upvotes: 2

Views: 4098

Answers (5)

Dian007
Dian007

Reputation: 51

click Xib-->Show the file inspector--->Interface Builder Document --> deplooyment (use your version)

hope it helps you

Upvotes: 0

jstevenco
jstevenco

Reputation: 2953

Just to clarify manson's answer, open the problem XIB in Interface Builder, then select Window|Document Info from the menu; from there you can set the Deployment target.

Upvotes: 5

manson
manson

Reputation: 31

in interFace Builder - try to set Deplouyment Target to OS 3.0 and height in my case its work

Upvotes: 3

Andrew Aarestad
Andrew Aarestad

Reputation: 1160

I have gotten the same error when trying to compile a XIB with pattern colors using 3.1.2. The XIBs compiled fine using 3.0, but when I upgraded to 3.1.2 I started getting the error "Pattern colors are not supported by the iPhone SDK for iPhone OS versions prior to 3.0."

I have not found a solution to this problem and had to remove the pattern colors from my XIBs.

Upvotes: 1

Alex
Alex

Reputation: 26859

Do you have any pattern colors in the XIB? Those would include things like the pinstripe background. This XIB probably would compile with the 3.0 SDK. Like the compiler says, they're not supported in versions before 3.0.

Upvotes: 2

Related Questions