1

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

FE_Tech
  • 1,534
  • 13
  • 25
  • [NSExtensionPointIdentifier: This key is required for every app extension, and must be placed as an immediate child of the NSExtension key.](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/AppExtensionKeys.html#//apple_ref/doc/uid/TP40014212-SW15) Can you post your Info.plist? – Tiago_nes Nov 16 '17 at 11:25
  • Uploaded the screenshot in question. – FE_Tech Nov 16 '17 at 11:31

2 Answers2

0

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?

Tiago_nes
  • 843
  • 7
  • 30
0

Reinstalling the Xcode resolved this issue.

FE_Tech
  • 1,534
  • 13
  • 25