purchases-flutter icon indicating copy to clipboard operation
purchases-flutter copied to clipboard

Missing an expected key: NSPrivacyCollectedDataTypes

Open AlecCode77 opened this issue 1 year ago • 6 comments

‼️ 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

AlecCode77 avatar May 24 '24 21:05 AlecCode77

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar May 24 '24 21:05 RCGitBot

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.

michaelAtRC avatar May 29 '24 22:05 michaelAtRC

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

AlecCode77 avatar May 30 '24 05:05 AlecCode77

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?

michaelAtRC avatar Jun 25 '24 17:06 michaelAtRC

Any update for that?

ysfsl avatar Oct 05 '24 14:10 ysfsl

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

richardhfj avatar Dec 04 '24 23:12 richardhfj