1
votes

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

2

2 Answers

0
votes

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?

0
votes

Reinstalling the Xcode resolved this issue.