简体   繁体   中英

Unable to install app on watchOS simulator Xcode9, iOS11, watchOS4 app crashes

I wrote a program for watchOS and tried running it on simulator. I am unable to run this app on simulator, installation fails with error: Unable to install the app.

I am using xcode9, Simulator: iphone7 + Apple Watch Series 2 - 38mm Here is my CoreSimulator.log summary

Nov 17 10:38:47 xyz-iMac com.apple.dt.Xcode[351] : installApplication:withOptions:error:: Error Domain=IXUserPresentableErrorDomain Code=2 "This app was unable to be installed." UserInfo={NSLocalizedDescription=This app was unable to be installed., NSUnderlyingError=0x7fbc74153480 {Error Domain=MIInstallerErrorDomain Code=59 "Appex bundle at /Users/fe/Library/Developer/CoreSimulator/Devices/58D7256F-1247-48E3-BDE2-F2F44CEEB0E9/data/Library/Caches/com.apple.mobile.installd.staging/temp.Sku79o/extracted/testwatch.app/Watch/testwatch WatchKit App.app/PlugIns/testwatch WatchKit Extension.appex with id com.test.testwatch.watchkitapp.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." UserInfo={LegacyErrorString=AppexBundleUnknownExtensionPointIdentifier, FunctionName=-[MIPluginKitPluginBundle overlaidInfoPlistWithError:], SourceFileLine=215, NSLocalizedDescription=Appex bundle at /Users/fe/Library/Developer/CoreSimulator/Devices/58D7256F-1247-48E3-BDE2-F2F44CEEB0E9/data/Library/Caches/com.apple.mobile.installd.staging/temp.Sku79o/extracted/testwatch.app/Watch/testwatch WatchKit App.app/PlugIns/testwatch WatchKit Extension.appex with id com.test.testwatch.watchkitapp.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.}}}

This is the error Message This is info.plist file

Try changing the order between

NSExtensionPointIdentifier

and

NSExtensionAttributes

NSExtensionPointIdentifier: This key is required for every app extension, and must be placed as an immediate child of the NSExtension key.

This key is supported in iOS 8 and later and in macOS 10.10 and later. Check IOS version.

Have you tried taking a look at this post?

重新安装Xcode解决了此问题。

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