Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I build for iOS 4.0 devices with XCode 4 + base SDK 4.3?

I am trying to build my iOS project for an iPhone 4.0.1 device using Xcode 4 and base SDK 4.3. In my target's settings, I have set the Base SDK to 4.3 and an iOS deployment target of 4.0.

When I do this, I get the following error:

 Error: failed to locate ResourceRules.plist in '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/ResourceRules.plist' or '/Developer/Platforms/iPhoneOS.platform/ResourceRules.plist

When I change the deployment target to 4.3, everything builds fine as expected, but of course I can't run this on my connected 4.0.1 device.

So what's the secret here?

Thanks.

like image 600
BingoBoy Avatar asked Nov 05 '22 22:11

BingoBoy


1 Answers

In Xcode, click on your Project in the file browser, then click on your TARGET's name. Next, go to Build Settings and search for Code Signing Resource Rules Path. In Xcode 4, you can drag the ResourceRules.plist into this field. see highlited section in screenshot below:

enter image description here

like image 75
WrightsCS Avatar answered Nov 11 '22 03:11

WrightsCS