简体   繁体   English

如何使用XCode 4 + base SDK 4.3构建iOS 4.0设备?

[英]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. 我正在尝试使用Xcode 4和基础SDK 4.3为iPhone 4.0.1设备构建我的iOS项目。 In my target's settings, I have set the Base SDK to 4.3 and an iOS deployment target of 4.0. 在我的目标设置中,我将Base SDK设置为4.3,iOS部署目标设置为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. 当我将部署目标更改为4.3时,一切都按预期正常构建,但当然我无法在连接的4.0.1设备上运行它。

So what's the secret here? 那么这里的秘密是什么?

Thanks. 谢谢。

In Xcode, click on your Project in the file browser, then click on your TARGET 's name. 在Xcode中,在文件浏览器中单击您的项目,然后单击您的TARGET名称。 Next, go to Build Settings and search for Code Signing Resource Rules Path . 接下来,转到Build Settings并搜索Code Signing Resource Rules Path In Xcode 4, you can drag the ResourceRules.plist into this field. 在Xcode 4中,您可以将ResourceRules.plist拖到此字段中。 see highlited section in screenshot below: 请参阅下面的截图中的highlited部分:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM