简体   繁体   English

我想更改框架的版本。[swift4 / xcode9]

[英]I want to change the version of the framework.[swift4/xcode9]

Currently I am migrating applications created with xcode 8 / swift 3 to xcode 9 / swift 4. 目前,我正在将使用xcode 8 / swift 3创建的应用程序迁移到xcode 9 / swift 4。

When I build and test on the actual machine without coding error. 当我在实际机器上构建和测试时,没有编码错误。
It will fall in the middle of launching the application. 它将落在启动应用程序的中间。
The real machine is iPhone 7's iOS 10.1. 真正的机器是iPhone 7的iOS 10.1。

■Error_message: ■错误消息:
在此处输入图片说明

■Consideration: ■注意事项:
In xcode I set it to find a library for iOS 11, but I think that there is no library for iOS 11 in iPhone 7. 在xcode中,我将其设置为为iOS 11找到一个库,但是我认为iPhone 7中没有针对iOS 11的库。

I think that updating iPhone 7 from iOS 10.1 to iOS 11 will start the application without problems. 我认为将iPhone 7从iOS 10.1更新到iOS 11会启动应用程序而不会出现问题。

However, since I want users to enjoy the application from iOS 10.1 to iOS 11, I would like to use a library for iOS 10.1 instead of a library for iOS 11. 但是,由于我希望用户喜欢从iOS 10.1到iOS 11的应用程序,因此我想使用iOS 10.1的库而不是iOS 11的库。

When converting from swift 3 to swift 4 automatically, (I do not know the timing) 自动从swift 3转换为swift 4时,(我不知道时间)
I think that xcode has been set to automatically search for iOS 11 libraries. 我认为xcode已设置为自动搜索iOS 11库。

■Questions: ■问题:
How should I use the library for iOS 10.1? 我应该如何使用iOS 10.1的库?
Or, for example. 或者,例如。
Can I allow iOS 11 users to apply libraries for iOS 11 and iOS 10 users to apply iOS 10 libraries? 我可以允许iOS 11用户为iOS 11应用库并且让iOS 10用户应用iOS 10库吗?

在此处输入图片说明


在此处输入图片说明


■Supplementary information. ■补充信息。
xcode9/swift4 xcode9 / swift4
iPhone7/iOS10.1 iPhone7 / iOS10.1
DeploymentTarget:10.1 部署目标:10.1

I changed the setting from "On" to "Default" 我将设置从“打开”更改为“默认”
because the following error was displayed when I moved swift 4. 因为我移动swift 4时显示以下错误。
error_massage: error_massage:
The use of Swift 3 @objc inference in Swift 4 mode is deprecated. 不建议在Swift 4模式下使用Swift 3 @objc推断。

抱歉,当我执行“清理”时启动了该应用程序。

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

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