Reputation: 977
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
Reputation: 51
click Xib-->Show the file inspector--->Interface Builder Document --> deplooyment (use your version)
hope it helps you
Upvotes: 0
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
Reputation: 31
in interFace Builder - try to set Deplouyment Target to OS 3.0 and height in my case its work
Upvotes: 3
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
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