TIL: CoreSimulator logs

Adding an Intent Extension to an existing WatchKit app, and trying to run the project in the simulator immediately after will not work, at least on the latest Xcode9 beta.

The error message does not look very helpful:

Somehow I recalled reading a few days ago that the simulator logs to ~/Library/Logs/CoreSimulator/CoreSimulator.log

So I checked the logs in Console, and I found this:

Oct 14 11:08:56 Yuri-II com.apple.dt.Xcode[881] <Error>: 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=0x7fcebe60a4c0 {Error Domain=MIInstallerErrorDomain Code=126 "Siri Intents app extension is present in the WatchKit app con.bambooapps.Locker.watchkitapp but there are no Siri Intents in the companion app con.bambooapps.Locker" UserInfo={LegacyErrorString=IntentsAppexIntentsSupportedNotASubset, FunctionName=-[MIExecutableBundle validatePluginMetadataWithError:], SourceFileLine=1189, NSLocalizedDescription=Siri Intents app extension is present in the WatchKit app con.bambooapps.Locker.watchkitapp but there are no Siri Intents in the companion app con.bambooapps.Locker}}}

And there is the actual reason. A Siri Intent extension without actual intents is preventing the app from installing in the simulator.

Leave a Reply

Your email address will not be published. Required fields are marked *