devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.
MIT License
4.39k stars 425 forks source link

Missing API declaration: NSPrivacyAccessedAPICategoryDiskSpace #406

Closed andrei200287 closed 2 months ago

andrei200287 commented 2 months ago

I received an error email from Apple:

ITMS-91053: Missing API declaration - Your app’s code in the “....” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryDiskSpace. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

Reproducing the issue

Just import DeviceKit (SPM) and submit the build for Apple's review. After 3 minutes, you will receive this email.

mathaeus commented 2 months ago

@andrei200287 from what I can see duplicate of https://github.com/devicekit/DeviceKit/issues/404

Zandor300 commented 2 months ago

Fixed by https://github.com/devicekit/DeviceKit/pull/397 released just now in version 5.2.3

acrabb commented 2 months ago

thank you!

iharkatkavets commented 2 months ago

Hmm, I don't understand. "NSPrivacyAccessedAPICategoryDiskSpace" label presents in v5.2.2. I checked ipa file and But we got email from Apple that:

Your app’s code in the “*****” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryDiskSpace.
image

Did anyone still receive Apple complain after updating DeviceKit ?

Zandor300 commented 2 months ago

@iharkatkavets Version 5.2.3 is the latest version that should fix this. Could you please update and try again? Please report back whether you got an email from Apple if you use version 5.2.3

iharkatkavets commented 2 months ago

@Zandor300 thank you for the reply. Unfortunately at the moment I can't verify if the issue has gone in v5.2.3, but there is another ticket that complains on similar message from Apple was opened yesterday

When it will be possible I will return with a feedback