TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

ITMS-91108: Invalid privacy manifest - The PrivacyInfo.xcprivacy file from the following path is invalid: “Frameworks/TOCropViewController.framework/TOCropViewControllerBundle.bundle/PrivacyInfo.xcprivacy”.

Open devender3110 opened this issue 1 year ago • 1 comments

The PrivacyInfo.xcprivacy file from the following path is invalid: “Frameworks/TOCropViewController.framework/TOCropViewControllerBundle.bundle/PrivacyInfo.xcprivacy”. In addition to the privacy manifest files in the locations outlined in the documentation, starting November 12, 2024, all privacy manifests you submit must have valid content. Keys and values in any privacy manifest must be in a valid format. For more details about privacy manifest files,

devender3110 avatar Oct 08 '24 06:10 devender3110

I had the same issue too. Checkout the resource by SPM, and saw the structure of PrivacyInfo.xcprivacy is not correct:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
	<key>NSPrivacyCollectedDataTypes</key>
	<array/>
	<key>NSPrivacyAccessedAPITypes</key>
	<array>
		<dict/>
	</array>
</dict>
</plist>

it should be:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
	<key>NSPrivacyCollectedDataTypes</key>
	<array/>
	<key>NSPrivacyAccessedAPITypes</key>
	<array/>
</dict>
</plist>

billylongta avatar Oct 17 '24 16:10 billylongta

It looks like this was fixed in 2.7.3 https://github.com/TimOliver/TOCropViewController/releases/tag/2.7.3

chrishoffman avatar Oct 24 '24 14:10 chrishoffman

I also have this error with 2.7.3 today. @TimOliver could you take a look please ? This file should be in a Sources repository no ? (https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/adding_a_privacy_manifest_to_your_app_or_third-party_sdk#4336749)

aureliendelrue avatar Oct 24 '24 14:10 aureliendelrue

Hi @TimOliver any news ?

aureliendelrue avatar Oct 30 '24 09:10 aureliendelrue

Same error as @aureliendelrue

Pbarth avatar Oct 31 '24 14:10 Pbarth

Any update?

krloz5028 avatar Nov 04 '24 21:11 krloz5028

I had the same issue too. Checkout the resource by SPM, and saw the structure of PrivacyInfo.xcprivacy is not correct:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
	<key>NSPrivacyCollectedDataTypes</key>
	<array/>
	<key>NSPrivacyAccessedAPITypes</key>
	<array>
		<dict/>
	</array>
</dict>
</plist>

it should be:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>NSPrivacyTracking</key>
	<false/>
	<key>NSPrivacyTrackingDomains</key>
	<array/>
	<key>NSPrivacyCollectedDataTypes</key>
	<array/>
	<key>NSPrivacyAccessedAPITypes</key>
	<array/>
</dict>
</plist>

It works! Thanks for the advice. Now, I'm just waiting for version 2.7.4 to merge it.

lgc1993-CN avatar Nov 14 '24 07:11 lgc1993-CN

Any ideas when will 2.7.4 with the fix be?

EDIT: Okay, I just targeted the last commit on the main branch, and it passes Apple's review now.

aleksandar-vostic avatar Nov 20 '24 15:11 aleksandar-vostic

@TimOliver I saw that v2.7.4 has been tagged. Will it be released soon?

lgc1993-CN avatar Nov 22 '24 01:11 lgc1993-CN

https://stackoverflow.com/questions/79221883/itms-91056-invalid-privacy-manifest/79228978#79228978

praveenraman avatar Nov 27 '24 04:11 praveenraman

I also encountered this issue. After upgrading from 2.7.2 to 2.7.3 and submitting again for review, the problem still persists!

JunkyTang avatar Nov 29 '24 01:11 JunkyTang

I also encountered this issue. After upgrading from 2.7.2 to 2.7.3 and submitting again for review, the problem still persists!

You should update to version 2.7.4, which has been tagged in this repository but has not yet been officially released.

lgc1993-CN avatar Nov 29 '24 07:11 lgc1993-CN

Hello @TimOliver I don't even know from what third party package TOCropViewController is a dependency... So I cannot aim your git to update to 2.7.4.

My Apple submission cannot be accepted until you release this version 2.7.4 OFFICIALLY/

I imagine I'm not the only one affected by this bug.

Why don't you simply fix that simple bug and RELEASE that 2.7.4 ????

deacon78 avatar Dec 05 '24 21:12 deacon78

Same problem here

toscalivia83 avatar Dec 06 '24 13:12 toscalivia83

Hi folks! I'm so sorry for the delay! I don't get a lot of free time for open source work these days, but hopefully I can be around a bit more in 2025.

It's been a very chaotic year for me trying to support privacy manifests. Over on IGListKit, we decided that privacy manifests shouldn't be necessary since Apple's implied that only these third party SDKs are required to supply their own manifests.

A big challenge of this particular issue is it's very hard for me to work out if the privacy manifest was even working or not. 2.7.4 was the second attempt at fixing privacy manifest build errors, and so I needed someone to actually confirm in their own builds if it was working or not. Thanks to those in here who confirmed it for me.

2.7.4 was already pushed on CocoaPods and Carthage, so I'm still not 100% sure what the calls to 'release 2.7.4' were specifically regarding.

I've just marked 2.7.4 as the latest release in GitHub. Is that all that was needed? Let me know! Thanks!

TimOliver avatar Dec 10 '24 15:12 TimOliver

Hello @TimOliver I am using many SDKs from the list that you linked :

DKImagePickerController image_picker_ios package_info_plus path_provider path_provider_ios file_picker sqflite Flutter url_launcher url_launcher_ios

I have NO idea whose third party SDK from this list above uses TOcropViewController.

EDIT : I have found the solution to target TOCropViewController 2.7.4 In FLUTTER project, there is a file named "podfile" whose path is <your flutter project>/ios/Podfile In that file, there must be this line in order to aim for the last version of TOcropViewController : pod 'DKImagePickerController', '4.3.9'

don't forget to save file.

Now run these commands

flutter clean
flutter pub get

in ios directory : pod install Then build an archive : flutter build ipa

Control in Xcode that there is no problem by right-clic on the generated archive and select "privacy report". This will generate a PDF file in which errors related to privacy files are listed. If it is empty, then your are good.

deacon78 avatar Dec 10 '24 21:12 deacon78

pod update TOCropViewController works. Thanks for taking care of this.

bfricka avatar Dec 12 '24 18:12 bfricka

Sounds like this is all taken care of! Hopefully the DKImagePickerController folks have updated the pods on their end too now, which should hopefully make this solved once and for all.

Feel free to open up a new issue if there are anymore lingering issues going on here. Thanks!

TimOliver avatar Feb 26 '25 12:02 TimOliver