如何在 WatchKit 扩展目标 (XCode7 beta 6) 中重置 watchOS 部署目标
How to reset watchOS deployment target in WatchKit extension target (XCode7 beta 6)
我使用 watchOS 开发 iOS 应用程序。
将 XCode 升级到 version7 beta 6 后,watchOS 部署目标(构建设置)在 WatchKit 扩展目标中自动更改为 2.0。
虽然我试图 return 到 1.0,但无法更改它。
有什么解决方法吗? (不创建或复制 watchkit 扩展目标)
根据 Xcode 7 Beta 6 发行说明:
You are not be able to debug a watchOS 1 app extension in a project that also has watchOS 2 app built in the same iOS app.
Workaround: The system prefers the watchOS 2 app when both are present, so you need to remove it from the iOS app bundle. Edit the Build Phases of the iOS App to remove the watchOS 2 app as a build dependency of the iOS App and remove it from the Embed Watch Content build phase. Clean the build products, and then Run to debug the watchOS 1 app extension. (21173814)
http://adcdownload.apple.com/Developer_Tools/Xcode_7_beta_6/Xcode_7_beta_6_Release_Notes.pdf
在使用 Xcode 7.3.1 的模拟器中遇到了同样的问题,可以通过查看 App 解决,然后转到 Watch OS deployment target ,在那里你可以根据你的选择较低的版本观看。希望对您有帮助。
我使用 watchOS 开发 iOS 应用程序。
将 XCode 升级到 version7 beta 6 后,watchOS 部署目标(构建设置)在 WatchKit 扩展目标中自动更改为 2.0。
虽然我试图 return 到 1.0,但无法更改它。
有什么解决方法吗? (不创建或复制 watchkit 扩展目标)
根据 Xcode 7 Beta 6 发行说明:
You are not be able to debug a watchOS 1 app extension in a project that also has watchOS 2 app built in the same iOS app.
Workaround: The system prefers the watchOS 2 app when both are present, so you need to remove it from the iOS app bundle. Edit the Build Phases of the iOS App to remove the watchOS 2 app as a build dependency of the iOS App and remove it from the Embed Watch Content build phase. Clean the build products, and then Run to debug the watchOS 1 app extension. (21173814)
http://adcdownload.apple.com/Developer_Tools/Xcode_7_beta_6/Xcode_7_beta_6_Release_Notes.pdf
在使用 Xcode 7.3.1 的模拟器中遇到了同样的问题,可以通过查看 App 解决,然后转到 Watch OS deployment target ,在那里你可以根据你的选择较低的版本观看。希望对您有帮助。