Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

containerAppExtensionEntitlementsWithCompletion failed with error: (null)

I'm getting this error in the console for my watch app and I can't figure out what it's related to and haven't found any other posts or documentation about it. Anyone else know?

The full message is 2017-12-02 18:31:01.379382-0500 Watch Extension[1308:33925] [default] containerAppExtensionEntitlementsWithCompletion: failed with error: (null)

like image 891
GarySabo Avatar asked Dec 02 '17 23:12

GarySabo


1 Answers

This usually happens when the app is missing the following lines in the Info.plist file:

  • Privacy - Health Update Usage Description
  • Privacy - Health Share Usage Description

Open your Info.plist file on the Project navigator and make sure these are present on the iOS side (i.e. no need for these on the watchOS Info.plist files if you have them). Give them values that explain why your app needs access to that information, e.g. "MyApp needs this information to track your heart rate".

Also, make sure you have the HealthKit capability enabled for your project. To check if you have it on Xcode 10:

  1. Open the Project navigator in Xcode and select your project (usually the top level item)
  2. Select Capabilities
  3. Check if HealthKit is set to ON
like image 110
mediumhotcoffee Avatar answered Oct 17 '22 02:10

mediumhotcoffee