1 Reply
      Latest reply on Sep 14, 2019 8:59 PM by dja1o
      fousa Level 1 Level 1 (0 points)

        Hi,

         

        I created an independent watchOS application (without an iOS counterpart) So I have three targets created by Xcode:

         

        - MyApp (which has no linked folder)

        - MyApp WatchKit App

        - MyApp WatchKit Extension

         

        No my app requires the use of HealthKit, so I added the `NSHealthShareUsageDescription ` to the Info.plist belonging to the Extension target. But when I try to uploade the application to App Store Connect (through Xcode), I get the following error message:

         

        "Invalid Info.plist key. The key 'NSHealthShareUsageDescription' in bundle MyApp.app/Watch/MyApp WatchKit App.app is invalid."

         

        I tried adding the key to the Info.plist of the App target, but this gave errors after the upload completed...

         

        Anyone tried this before? Maybe this issue is resolved with the new Transporter app, but when this will arrive is a mistery...

        • Re: How can I upload an independent watchOS application that requires a privacy description in the Info.plist?
          dja1o Level 1 Level 1 (0 points)

          I'm having the same issue, specifically with bringing the HealthKit framework in and I get the same error(s), below. I submitted a bug report for this issue specifically: FB7266383

           

          ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSHealthShareUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).

          ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSHealthUpdateUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).