2015-10-09 57 views
0

我正在尝试将WatchKit目标添加到仍支持iOS 7.1的应用程序。我认为应用程序和Watchkit版本可以使用不同的版本。然而,当我补充一下:7.1兼容目标的WatchKit扩展:WKInterfaceLabel

@IBOutlet var bus: WKInterfaceLabel! 
@IBOutlet var location: WKInterfaceLabel! 

编译器信号错误:

'WKInterfaceLabel' is only available on iOS 8.2 or newer.

它,我需要需要删除的iOS 7的支持,如果我想扩展应用到手表,或者是有出去的路?

+0

您是否将手表应用/扩展程序的部署目标设置为8.2? – dan

+0

您需要更改iOS的WatchApp和WatchKit扩展的iOS部署目标8.2 http://stackoverflow.com/a/29865947/1155354 –

+0

好的,谢谢,我没有注意到底部的选项。 –

回答

0

如上所述,Watchkit和Watchkit扩展的部署部分中有一个特定的iOS部署目标。