简体   繁体   English

iPhone:部署目标

[英]iphone: deployment target

How is this possible? 这怎么可能? I configured my iPhone app like this: 我将iPhone应用程序配置如下:

在此处输入图片说明在此处输入图片说明在此处输入图片说明在此处输入图片说明

I pushed it into the App Store and now Apple says: 我将其推入App Store,现在苹果说:

You have indicated that your binary requires iOS 4.3 or later. 您已表明二进制文件需要iOS 4.3或更高版本。 Apps that require iOS 4.3 or later will not be available to Verizon iPhone users. 需要iOS 4.3或更高版本的应用程序将不适用于Verizon iPhone用户。

Do I have to change the Base SDK to target iPhone 3.0 platform??? 我是否必须将基本SDK更改为目标iPhone 3.0平台??? How can I do this? 我怎样才能做到这一点? Thx! 谢谢!

ANSWER: If you leave the default 3.0 value the iOS Deployment Target is not shown/set which means the latest iOS will be selected? 解答:如果保留默认的3.0值,则不会显示/设置iOS部署目标,这意味着将选择最新的iOS? This is the xcode4 bug I beleave. 这是我遗忘的xcode4错误。

In XCode 4 it really easy to fix. 在XCode 4中,它很容易修复。 Click on your project then go to the summary tab and you should see the Deployment Target drop down to select your target. 单击您的项目,然后转到“摘要”选项卡,您应该看到“部署目标”下拉列表选择目标。 This is a shortcut for the Build Setting. 这是构建设置的快捷方式。

I would like to add that I hope you have tested your application on previous versions of iOS before deploying your app. 我想补充一点,希望您在部署应用程序之前已经在iOS的早期版本上测试了您的应用程序。 Currently your application will have weak references to the API and all new API calls will compile fine, but will crash when run on older devices if you do not use the proper runtime checks. 当前,您的应用程序对API的引用较弱,并且所有新的API调用都可以正常编译,但是如果您未使用正确的运行时检查,则在较旧的设备上运行时将崩溃。

Edit The image did not show up when I answered your question. 编辑当我回答您的问题时,图像没有显示。 Double check inside your build settings the deployment target is the same for Debug, Release and Distribution 在构建设置中仔细检查,调试,发布和分发的部署目标相同

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

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