Error: Info.plist/Multiple commands produce

Background and Issue Details Currently, I am working on an Xcode project, and even after correctly setting up the Info.plist file, I am encountering build errors. Despite verifying all configurations related to Info.plist, the following errors persist during the build process:

Error Messages 1、Multiple commands produce '/path/to/DerivedData/Info.plist' ・The error suggests that there might be a conflict or duplication of Info.plist in the Copy Bundle Resources phase, but only one Info.plist exists in the project.

2、duplicate output file ・A warning indicating that there is a conflict with the output file path for the Info.plist file during the build process.

Steps Taken to Resolve the Issue 1、Verified Info.plist Files in the Project ・Checked the project directory for any duplicate Info.plist files using the following command:

find . -name "*.plist"

Only one Info.plist file exists in the project.

・Used the grep command to inspect the project.pbxproj file for INFOPLIST_FILE references:

grep -r "INFOPLIST_FILE" ./MyProject.xcodeproj/project.pbxproj

The INFOPLIST_FILE settings point to the correct Info.plist file.

2、Checked Copy Bundle Resources ・Verified the Copy Bundle Resources build phase and ensured that only one Info.plist file is listed. Deleting it results in the Target Membership checkbox being unchecked, and the error persists.

3、Cleared Cache ・Deleted DerivedData and Xcode cache directories to ensure no stale data is causing the issue:

rm -rf ~/Library/Developer/Xcode/DerivedData rm -rf ~/Library/Caches/com.apple.dt.Xcode

4、Created a New Project ・Created a new project and set up a fresh Info.plist file with minimal content, but the same error occurred.

Current Project Settings ・The contents of the Info.plist file are as follows:

<?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>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>1</string> <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> </dict> </plist>

・The Target Membership checkbox for Info.plist is checked.

5、Xcode Version ・The version of Xcode I'm using is 15.2 ・OS is Ventua13.7.1

Questions

・What could cause the Multiple commands produce and duplicate output file errors in this scenario? ・Are there any other settings or configurations I should investigate beyond the Info.plist file and build phases? ・Have there been similar cases reported by other developers, and what were the solutions? ・Could you provide a step-by-step guide to test the functionality of Info.plist in a minimal project while avoiding duplication errors? ・Is there an official or alternative workflow to create a project where Info.plist duplication errors are preemptively avoided? ・Additionally, what are the best practices for linking Info.plist in Build Settings and avoiding conflicts during the build process?

Thank you.

Please look at this thread as I believe is the same issue:

https://forums.developer.apple.com/forums/thread/758339

Albert Pascual
  Worldwide Developer Relations.

Thank you, I will check it.

Error: Info.plist/Multiple commands produce
 
 
Q