Missing an expected key: NSPrivacyCollectedDataTypes
- [X] I have updated Purchases SDK to the latest version
- [X] I have read the Contribution Guidelines
- [X] I have searched the Community
- [X] I have read docs.revenuecat.com
- [X] I have searched for existing Github issues
‼️ Required data ‼️
Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!
Environment
- [ ] Output of
flutter doctor - [ ] Version of
purchases-flutter - [ ] Testing device version e.g.: iOS 15.5, Android API 30, etc.
- [ ] How often the issue occurs- every one of your customers is impacted? Only in dev?
- [ ] Debug logs that reproduce the issue
- [ ] Steps to reproduce, with a description of expected vs. actual behavior Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Describe the bug
Apple Privacy report the following error:
Missing an expected key: 'NSPrivacyCollectedDataTypes' Runner.app/Frameworks/PurchasesHybridCommon.framework/PurchasesHybridCommon.bundle/PrivacyInfo.xcprivacy
The PrivacyInfo.xcprivacy is missing the NSPrivacyCollectedDataTypes key. Any Thoughts?
Thank you
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Hey There,
Can you try re-installing the SDK and let me know if that helps? I will share this with the team in the mean time.
I have already tried re-installing the SDK. This won't help since the key 'NSPrivacyCollectedDataTypes' is missing from PurchasesHybridCommon.bundle/PrivacyInfo.xcprivacy As a temporary solution I had to manually add the key to get rid of the error
Hey @AlecCode77,
Glad to hear that you have the temporary solution working. We changed this a few months ago to adhere to the latest version of XCode I believe. Which version of XCode are you experiencing this on?
Any update for that?
This is still missing. I tried the latest 8.3.0 which in the changelog has updated. Missing an expected key: 'NSPrivacyCollectedDataTypes' Runner.app/Frameworks/PurchasesHybridCommon.framework/PurchasesHybridCommon.bundle/PrivacyInfo.xcprivacy