Hello. I am developing a watchOS standalone app.
I have added NSLocationWhenInUseUsageDescription key to info.plist Extension file successfully.
When I try adding the same key to info.plist App, Xcode rejects my build with error ITMS-90363.
So, I submit my build with a key added to info.plist Extension and receive the following warning via email:
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 NSLocationWhenInUseUsageDescription 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.
How can I fix the warning if Xcode does not let me add the key to info.plist App?
Xcode version 11.5
Thanks.
I have added NSLocationWhenInUseUsageDescription key to info.plist Extension file successfully.
When I try adding the same key to info.plist App, Xcode rejects my build with error ITMS-90363.
So, I submit my build with a key added to info.plist Extension and receive the following warning via email:
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 NSLocationWhenInUseUsageDescription 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.
How can I fix the warning if Xcode does not let me add the key to info.plist App?
Xcode version 11.5
Thanks.
This fixed my problem. Basically, I created the folder (not using Xcode) and create an Info.plist inside that folder. Add the purpose string into Info.plist. Then, go to Xcode, find the target (the one that doesn't contain "Watchkit"). Go to Build Settings -> Packaging -> Info.plist File, enter your plist file location.