#98: "Pattern colors are not supported" when compiling iPhone app

When compiling an iPhone app project, a controller XIB file reports an error "Pattern colors are not supported by the iPhone SDK for iPhone OS versions prior to 3.0". The Xcode Project deployment target is set to compile for iPhone OS 3.x or 4.x, so this really should not have been an issue.

The XIB file has a separate deployment target setting

Open the problematic XIB file in Interface Builder. Go to Window -> Document Info. There you should see two additional development and deployment target settings, specifically set for the XIB file. At some point these appears to have been set for this XIB file to iPhone OS 2.x.

Resetting these to "default" rather than their fixed settings solves the problem handily.

Think you've got a better solution? Help 92049143cabb7ba896d7c06e19906303_small yliu out by posting your solution