在iOS 7上成功运行Xcode 8 Swift 3应用程序吗? [英] Do Xcode 8 Swift 3 apps run on iOS 7 successfully?

查看:136
本文介绍了在iOS 7上成功运行Xcode 8 Swift 3应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 8 Swift 3应用程序是否成功在iOS 7上运行?

Do Xcode 8 Swift 3 apps run on iOS 7 successfully?

我已经尝试确定运行下面描述的一些测试,但可以使用专家更好地了解App Store开发请帮助解释成功和失败的原因,包括以下问题?

I've tried to determine this running a few tests described below, but can an expert with a better understanding of App Store development please help explain the reasons for the successes and failures including the questions below?

测试1。

所以我打开了Xcode 7.3.1并使用Swift 2.2创建了一个应用程序。我打算将应用程序从iOS 7部署到iOS 10。

So I've opened up Xcode 7.3.1 and created an app with Swift 2.2. I'm intending to deploy the app from iOS 7 through to iOS 10.

我成功运行iOS 9.3 iPhone模拟器上的应用程序然后运行应用程序实际iOS 7.1.2 iPhone设备也成功。

I run the app on the iOS 9.3 iPhone simulator with success and then run the app on an actual iOS 7.1.2 iPhone device with success also.

测试2。

接下来,我采用了相同的项目并在Xcode 8 Beta 2中打开它。(我被提示更新为Swift 2.3或Swift 3.我更新到Swift 2.3然后稍后转到Swift 3。)

Next, I've taken the same project and opened it in Xcode 8 Beta 2. (I was prompted to update to either Swift 2.3 or Swift 3. I update to Swift 2.3 then later to Swift 3.)

手动输入iOS目标部署为7.0后,我成功运行iOS 10 Beta 2 iPhone模拟器上的应用程序。但是,我尝试在实际的iOS 7.1.2 iPhone设备上运行该应用程序,但这次没有成功,显示以下错误。我用Swift 2.3和Swift 3重复测试,但错误相同:

After entering the iOS Target Deployment as 7.0 manually, I run the the app on the iOS 10 Beta 2 iPhone simulator with success. However, I then try to run the app on an actual iOS 7.1.2 iPhone device but no success this time, the below error is displayed. I repeat the test with Swift 2.3 and Swift 3 with the same error:


无法找到设备支持文件

此iPhone 4S运行iOS 7.1.2(11D257),此版本的Xcode支持可能

This iPhone 4S is running iOS 7.1.2 (11D257), which may not be supported by this version of Xcode.






测试3。

接下来我尝试在获取应用程序存档后,通过iTunes将在Xcode 8 Beta 2中创建的.ipa应用程序文件直接安装到实际的iOS 7.1.2 iPhone设备上(产品>存档...)

So next I try installing the .ipa app file created in Xcode 8 Beta 2 directly to the actual iOS 7.1.2 iPhone device via iTunes after getting an archive of the app (Product > Archive …)

完成.ipa应用程序文件通过iTunes传输到iOS 7.1.2 iPhone设备后,我在实际设备上启动应用程序,这次成功。

After the .ipa app file is completed transferring to the iOS 7.1.2 iPhone device via iTunes, I then launch the app on the actual device, this time with success.

结果。

问题:


  • 我可以对所有测试结果做些什么上面的表格?

  • What can I make of all the testing outcomes in the table above?

重要的是,当通过使用Swift 3在Xcode 8中创建的App Store分发应用程序时,可以安全地期待在iOS 7.1.2 iPhone设备上通过iTunes成功安装的应用程序在App Store下载后仍然兼容所有iOS 7设备?

Importantly, when it comes time to distributing the app through the App Store created in Xcode 8 with Swift 3, is it safe to expect that the app, which installed successfully via iTunes on an iOS 7.1.2 iPhone device, will still be compatible for all iOS 7 devices when downloaded at the App Store?

Xcode 7.3.1允许从iOS 7到iOS 9的设备在开发过程中进行测试和调试?

Xcode 7.3.1 allows devices from iOS 7 through to iOS 9 for testing and debugging while in development?

Xcode 8不允许iOS 7设备进行测试在开发过程中进行调试但仍允许在iOS 7设备上部署应用程序?

Xcode 8 does not allow iOS 7 devices for testing and debugging while in development but still allows deployment of apps to iOS 7 devices?

Swift 2.3作为Swift 3的中间步骤有什么意义?

What is the point of Swift 2.3 as an intermediate step to Swift 3?

推荐答案

我会毫不犹豫地从您的实证测试中得出太多结论。具体来说,我假设只是因为你让它在iOS 7上运行它可以保证在iOS 7上运行。它们似乎只能保证iOS 8+支持。

I would hesitate to draw too many conclusions from your empirical tests. Specifically, I would not assume just because you got it to run on iOS 7 that it is guaranteed to work on iOS 7. They appear to only be guaranteeing iOS 8+ support.

顺便说一句,苹果通常建议只支持一个iOS版本。并且,截至5月9日,只有5%的设备运行iOS 7或更早版本(当iOS 10发布时,这可能会进一步减少。)

As an aside, Apple generally suggests supporting only one iOS version back, anyway. And, as of May 9th, only 5% of devices are running iOS 7 or earlier (and this is likely to be further reduced by the time iOS 10 is released).

这篇关于在iOS 7上成功运行Xcode 8 Swift 3应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆