简体   繁体   English

我可以在Xcode 4.2和iOS5中构建iOS应用,然后在具有iOS 4.3的iPhone上测试该应用吗

[英]Can I build iOS apps in Xcode 4.2 and iOS5, then test the app on iPhone with iOS 4.3

Can I build iOS apps in Xcode 4.2 and iOS5, then test the app on an iPhone running iOS 4.3? 我可以在Xcode 4.2和iOS5中构建iOS应用,然后在运行iOS 4.3的iPhone上测试该应用吗?

I want to use the storyboard feature in iOS5 and Xcode 4.2, but I don't have a device. 我想在iOS5和Xcode 4.2中使用情节提要功能,但是我没有设备。 I can only borrow a device that runs iOS 4.3. 我只能借用运行iOS 4.3的设备。

Storyboards are not supported in iOS 4.3. iOS 4.3不支持情节提要。

You can test in the iOS 4.3 simulator (or on an iOS 4.3 device) if you have set your deployment target to 4.3 or lower. 如果已将部署目标设置为4.3或更低版本,则可以在iOS 4.3模拟器(或iOS 4.3设备)上进行测试。 Xcode 4.2 doesn't come with the iOS 4.3 simulator by default. 默认情况下,Xcode 4.2不随iOS 4.3模拟器一起提供。 To install it, open Xcode's Preferences and click the Downloads tab, and the Components tab under that. 要安装它,请打开Xcode的“首选项”,然后单击“下载”选项卡,然后单击“组件”选项卡。 From there you can download and install the iOS 4.3 simulator. 您可以从那里下载并安装iOS 4.3模拟器。

You can also send your app to a friend for testing. 您还可以将您的应用发送给朋友进行测试。 Apple documents the steps in the Tools Workflow Guide for iOS . Apple在《 iOS工具工作流程指南》中记录了这些步骤。 You can also use http://testflightapp.com/ to let your friend install the app over the network. 您还可以使用http://testflightapp.com/让您的朋友通过网络安装该应用程序。

Yes, you will be able to build in Xcode 4.2 directly for iOS 5. However, you will need to set the target version to iOS 4.3. 是的,您将能够直接在iOS 5的Xcode 4.2中进行构建。但是,您需要将目标版本设置为iOS 4.3。 You will also need to be a paid member of the developer program in order to run your applications on a device. 您还需要成为开发人员计划的付费成员,才能在设备上运行您的应用程序。 See the Apple Developer Portal documentation on mobile provisioning for more info. 有关更多信息,请参阅有关移动供应的Apple Developer Portal文档。

Storyboards are not compatible with iOS 4. ARC is compatible, and weak references are also sort of compatible. 情节提要与iOS 4不兼容 。ARC是兼容的,弱引用也是兼容的。

Bottom line: For you, your app is not backwards compatible because you use storyboards. 底线:对您而言,您的应用程序不向后兼容,因为您使用的是故事板。 If you'd like, test your app in a iOS 4.3 simulator, or have someone else test it running iOS 5. 如果需要,可以在iOS 4.3模拟器中测试您的应用,或者让其他人在运行iOS 5的情况下对其进行测试。

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

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