Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid privacy manifest #2145

Closed
akirmse opened this issue Mar 14, 2024 · 24 comments
Closed

Invalid privacy manifest #2145

akirmse opened this issue Mar 14, 2024 · 24 comments
Labels
bug 🪲 Something is broken!

Comments

@akirmse
Copy link

akirmse commented Mar 14, 2024

I just submitted my app for Apple review, and I got the following back. That version of the app includes version 11.1.0 of the Mapbox SDK. Was this already fixed in 11.2.0?

ITMS-91056: Invalid privacy manifest - The PrivacyInfo.xcprivacy file from the following path is invalid: “Frameworks/MapboxCommon.framework/PrivacyInfo.xcprivacy”. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, keys and values in your app’s privacy manifest must be in a valid format. For more details about privacy manifest files, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files.

There were also several references to "ITMS-91053: Missing API declaration", but I can't tell which of these are from Mapbox, and which from other code. But here they are in case they're useful:

ITMS-91053: Missing API declaration - Your app’s code in the “Peakbagger” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryFileTimestamp. 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.

ITMS-91053: Missing API declaration - Your app’s code in the “Peakbagger” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategorySystemBootTime. 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.

ITMS-91053: Missing API declaration - Your app’s code in the “Peakbagger” 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.

ITMS-91053: Missing API declaration - Your app’s code in the “Peakbagger” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryUserDefaults. 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.

@akirmse akirmse added the bug 🪲 Something is broken! label Mar 14, 2024
@sebarina
Copy link

We received the same Email after submitting a testflight version

@bryanmalaluan
Copy link

bryanmalaluan commented Mar 18, 2024

We also received the same email earlier today

@marcoboerner
Copy link

+1 Received an email with the same first paragraph and two warnings, referring to our app for NSPrivacyAccessedAPICategoryFileTimestamp and NSPrivacyAccessedAPICategorySystemBootTime. However, it seems those come from Mapbox or another dependency Mapbox uses.

@persidskiy
Copy link
Contributor

@akirmse Thank you for reporting the issue, we are working on it.

@hexadecy
Copy link

hexadecy commented Mar 20, 2024

I hope it will be backported to v10.

@persidskiy
Copy link
Contributor

@akirmse @bryanmalaluan @marcoboerner Hi, can you try to upload the build again, using the 11.2.0 version?

I've tried to upload the bare bone iOS app using the Maps SDK and don't see any of those errors.

@persidskiy
Copy link
Contributor

persidskiy commented Mar 22, 2024

Also, do you use the Navigation or Search SDKs?

@akirmse
Copy link
Author

akirmse commented Mar 22, 2024

It will probably be another week or two before I have a build ready to submit. I don't use the Navigation or Search SDKs.

@cixio
Copy link

cixio commented Mar 22, 2024

I've tried to upload the bare bone iOS app using the Maps SDK and don't see any of those errors.

you need to submit for review then you instantly get an email with the messages above.

@james-wag
Copy link

james-wag commented Mar 22, 2024

It appears the Mapbox frameworks need to add a PrivacyInfo.xcprivacy file to their XCode projects and add the 2 Keys to it explaining what the system boot time and file creation date APIs it's using are for. See https://developer.apple.com/documentation/bundleresources/privacy_manifest_files

@connorpmullins
Copy link

connorpmullins commented Mar 26, 2024

Hopping into this comment thread to say that v10 seems to have a PrivacyInfo.xcprivacy file starting with 10.16.1:
https://github.com/mapbox/mapbox-maps-ios/releases/tag/v10.16.1

I'm updating to this build for our app now to see if it works. If anyone has already tried to submit with this version, LMK.

@connorpmullins
Copy link

No, actually I must be wrong about the root cause. Looking at our MapboxCommon framework, the PrivacyInfo.xcprivacy file is present. The error message specifically states ITMS-91056: Invalid privacy manifest - The PrivacyInfo.xcprivacy file from the following path is invalid: "Frameworks/MapboxCommon.framework/PrivacyInfo.xcprivacy".

So either the file format is incorrect or the path is incorrect, but the file is present. I don't which is more likely.

@persidskiy - I just want to chime in to say that we desperately need v10 support for this as we have 3rd party dependencies that are not yet Mapbox v11 compatible.

@persidskiy
Copy link
Contributor

persidskiy commented Mar 28, 2024

Hi all, the fix is released in 11.3.0-rc.1. Please, test this out and provide us with the feedback.

The v10 release with the fix is coming next week.

@connorpmullins
Copy link

Thank you!! 🙇

@persidskiy
Copy link
Contributor

Hi all, the 10.17.0 with the fix is released.

I am closing the issue. Please reopen if you encounter similar issues.

@JackJBlundell
Copy link

For anybody experiencing this using MapboxNavigation, make sure you use 2.18!

MapboxNavigation", "~> 2.18"

To your podfile.

@AndrewGable
Copy link

Can anyone link the commit or fix for this? I was having trouble finding it in the release diff.

We are suddenly seeing an "invalid binary" when uploading to App Store Connect and use a bespoke solution that is blocked on updating SDK versions. Thank you 🙏

@mn288
Copy link

mn288 commented May 7, 2024

@persidskiy version 11.2.0 just popped with the same original error today too... care to extend the fix for this version too as we can't yet update to version 11.3.0 with its breaking changes.

@tPiffrader
Copy link

tPiffrader commented May 8, 2024

@persidskiy How about the Search SDK MapboxSearch ? I am using version 2.0.1 and get this message from apple:
ITMS-91064: Invalid tracking information - A PrivacyInfo.xcprivacy file contains invalid tracking information at the following path: “Frameworks/MapboxCoreSearch.framework/PrivacyInfo.xcprivacy”. NSPrivacyTracking must be true if NSPrivacyTrackingDomains isn‘t empty. Keys and values in your app’s privacy manifest must be valid.

@santoso8118
Copy link

santoso8118 commented May 9, 2024

Hi @JackJBlundell :
I am currently using MapboxNavigation version 2.17.0, it's linked to mapbox-maps-ios to 10.16.4 now.
Can I just upgrade dependency of mapbox-maps-ios to 10.17.0 without upgrade MapboxNavigation 2.18?

Does MapboxNavigation 2.17.0 compatible with mapbox-maps-ios to 10.17.0 ?
If it not compatible. Is there any way to fix this issue in mapbox-maps-ios to 10.16.4?

Thank you!

@git-jr
Copy link

git-jr commented May 23, 2024

You did it? It worked?

@santoso8118
Copy link

yes @git-jr It worked

@gsrikarreddy
Copy link

No, actually I must be wrong about the root cause. Looking at our MapboxCommon framework, the PrivacyInfo.xcprivacy file is present. The error message specifically states ITMS-91056: Invalid privacy manifest - The PrivacyInfo.xcprivacy file from the following path is invalid: "Frameworks/MapboxCommon.framework/PrivacyInfo.xcprivacy".

So either the file format is incorrect or the path is incorrect, but the file is present. I don't which is more likely.

@persidskiy - I just want to chime in to say that we desperately need v10 support for this as we have 3rd party dependencies that are not yet Mapbox v11 compatible.

Hi, Can you please tell did you resolve this issue? I am facing the same issue

@git-jr
Copy link

git-jr commented Jul 5, 2024

Hi!
Solution of santoso8118 work here, but we changed the version to 10.1.24

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something is broken!
Projects
None yet
Development

No branches or pull requests