error: Multiple commands produce '.../PrivacyInfo.xcprivacy

After adding PrivacyInfo.xcprivacy following this Steps:

https://vikramios.medium.com/itms-91053-missing-api-declaration-3c2bef935bd3

I am getting this error

❌ error: Multiple commands produce 'app_dir/PrivacyInfo.xcprivacy';

I also encountered the same problem, how did you solve it?

That is the kind of error I see when I have two files of the same name. Usually images for materials. So I would guess you already had a PrivacyInfo.xcprivacy in the project when you added one for the tutorial.

You need to add PrivacyInfo.xcprivacy in project target.

The likely reason is the Copy Bundle Resources build phase of the target building your app in Xcode includes two or more files named PrivacyInfo.xcprivacy. To resolve your issue, perform these steps:

  1. Navigate to the Build Settings pane of your app target.
  2. Scroll down to Copy Bundle Resources then expand it.
  3. Remove all existing PrivacyInfo.xcprivacy files.
  4. Check your Xcode project for an existing PrivacyInfo.xcprivacy file, then drag it into Copy Bundle Resources
error: Multiple commands produce '.../PrivacyInfo.xcprivacy
 
 
Q