Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Xcode say "Duplicate localized resource info.plist found" when I try to import or export localizations?

I'm sure there is something messed up in the project file but I have not been able to find it (it's a legacy project new to me).

If I remove the reference to info.plist in the project, then it will successfully import and export, which is a workaround, but not ideal (obviously, although it's easy to revert).

I have searched for duplicate info.plist files and there are none that I can see (there actually are for the watchkit extension and app, but those are named differently anyway).

The actual name of my info.plist is like myapp-info.plist, but it is correctly named in the build settings--the project builds fine.

I have googled the heck out of this and can't find any other reports so I'm really stuck. Next step is to burn an Apple tech support request and when I do, I'll report back, but I thought I would ask the SO community first.

Thank you!

like image 822
Paul Bruneau Avatar asked Jan 28 '26 12:01

Paul Bruneau


2 Answers

I had this same error. To fix it, I had to localize the *-info.plist file. Select the info.plist file and click "Localize..." in the File Inspector pane.

like image 116
Hurshai Avatar answered Jan 30 '26 15:01

Hurshai


I don't know if you have solved this problem but I had the same issue. I think it happens when you change the project name and the build settings do not do its job to reflect the change. The Test info.plist refers to the same target original plist and seems to cause this problem.

Go to build settings in your project>Target>Project-name-Tests>Build Settings. Then locate Packaging>Info.plist File and change the folder to project-nameTest/Info.plist.

I hope this does the trick.

like image 38
Hohrim Jason Choi Avatar answered Jan 30 '26 15:01

Hohrim Jason Choi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!