![](/img/trans.png)
[英]Run iOS App with WatchKit Extension on iOS 7 device in Xcode6.2
[英]Can't Install App with WatchKit Extension on iOS 8.1 Simulator with Xcode 6.2
我有一個iOS 7.0部署目標的應用程序,我添加了一個WatchKit目標。 正如預期的那樣, WatchKit
Extension的iOS部署目標為8.2。 當我在iOS 8.2模擬器上運行主應用程序時,一切都按預期工作。 但是,如果我嘗試在iOS 8.1模擬器上運行它,Xcode會報告: The operation couldn't be completed. (LaunchServicesError error 0.)
The operation couldn't be completed. (LaunchServicesError error 0.)
CoreSimulator.log文件包含以下消息:
com.apple.dt.Xcode [12181]:錯誤Domain = LaunchServicesError Code = 0“操作無法完成。(LaunchServicesError錯誤0)。”UserInfo = 0x7ff46e2dc980 {Error = AppexBundleUnknownExtensionPointIdentifier,ErrorDescription = Appex bundle at / Users / /Library/Developer/CoreSimulator/Devices//data/Library/Caches/com.apple.mobile.installd.staging/temp.xmo2ks/extracted/InstallBug.app/PlugIns/InstallBug WatchKit Extension.appex,id為com..InstallBug。 watchkitextension為Info.plist中的NSExtension字典中的NSExtensionPointIdentifier鍵指定一個值(com.apple.watchkit),該值與已知的擴展點不對應。
我在發行說明中沒有看到任何關於這個問題的提及,我想知道這是否是其他人遇到的問題。 如果是這樣,我還需要配置一些其他功能嗎? 如果沒有,我會提交錯誤報告。
謝謝。
這是Xcode 6.2的一個已知問題。
您可以通過在Apple Watch擴展的Info.plist文件中添加"MinimumOSVersion" = "8.2"
鍵值對來解決此問題。
用戶必須更新到iOS 8.2才能安裝和運行Watch App。 任何未運行iOS 8.2+的人都不會被提示安裝Watch App,甚至不知道它是否可用。 有幾個原因。
有一些額外的信息在這里 。
希望這有助於揭示一些亮點。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.