5

When I run the Application then warning display below,

Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'UserDefinedLocalization-Info.plist'.

yuji
  • 16,695
  • 4
  • 63
  • 64
Rahul Rana
  • 103
  • 1
  • 3
  • 7
  • I got the solution from this similar question [here][1] [1]: http://stackoverflow.com/questions/3095612/warning-the-copy-bundle-resources-build-phase-contains-this-targets-info-plist – Guru Feb 14 '12 at 05:38

2 Answers2

35

I had this issue after I rearranged the underlying file structure of my project. Xcode4 has moved things around though and most online help to this problem is Xcode 3 specific, so this is how you solve this in Xcode 4:

  • Click the project icon in the Project Navigator (the blue root icon)
  • In your main pane menu you should be able to choose between your project or targets, select the target
  • Select "Build Phases" in the top menu
  • Open the "Copy bundle resources" item
  • Remove your plist file from there (your plist file should not be copied as a part of the bundle)
gardarh
  • 3,084
  • 2
  • 28
  • 31
6

In xcode, right click the UserDefinedLocalization-Info.plist file, select Get Info. Go to the Targets tab and remove the checkmark in front of your target.

The info.plist is a special file and must be treated in a special way. It's not allowed to add it to the app in the normal way.

Matthias Bauch
  • 89,811
  • 20
  • 225
  • 247
  • I don't believe that works in Xcode 4. I have the same problem as Rahul, but I can't go to "get info" for the plist file in Xcode 4. – Brad May 14 '11 at 16:23
  • @Gorgando: In Xcode 4 open the utilities view and look for "Target Membership". – pablasso Jun 08 '11 at 00:18