I have an app with an iOS Deployment Target of iOS 7.0, and I've added a WatchKit target. As expected, the WatchKit
Extension has an iOS Deployment Target of 8.2. When I run the primary app on the iOS 8.2 simulator, everything works as-expected. However, if I try to run it on the iOS 8.1 simulator, Xcode reports: The operation couldn’t be completed. (LaunchServicesError error 0.)
The CoreSimulator.log file contains the following message:
com.apple.dt.Xcode[12181] : Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 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 with id com..InstallBug.watchkitextension specifies a value (com.apple.watchkit) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point.
I don't see any mention of this issue in the release notes, and I'm wondering if this is something that others have encountered. If so, is there something else that I need to configure to make this work? If not, I'll file a bug report.
Thanks.
This is a known issue with Xcode 6.2.
You can workaround it by adding a "MinimumOSVersion" = "8.2"
key-value pair to your Apple Watch extensions's Info.plist file.
Users will have to be updated to iOS 8.2 in order to install and run a Watch App. Anyone not running iOS 8.2+ will not be prompted to install the Watch App and won't even know that it is available. There are several reasons for this.
- The Apple Watch iOS App isn't available on iOS until iOS 8.2+
- The Watch Extension APIs for an iOS app weren't available until iOS 8.2+
There is some additional information here.
Hopefully that helps shed some light.
来源:https://stackoverflow.com/questions/29100257/cant-install-app-with-watchkit-extension-on-ios-8-1-simulator-with-xcode-6-2