简体   繁体   中英

How to reset watchOS deployment target in WatchKit extension target (XCode7 beta 6)

I develop iOS app using watchOS.

After upgrading XCode to version7 beta 6, watchOS Deployment Target(Build settings) changed to 2.0 in WatchKit extension target automatically.

Though I tried to return to 1.0, couldn't change it.

Any workaround? (without creating or duplicating watchkit extension target)

没有watchOS 2.0,我无法选择其他人

According to Xcode 7 Beta 6 Release Notes:

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部署目标,在那里你可以根据你的手表选择较低版本。如果这有帮助,希望如此。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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