Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

iphone

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'.

like image 247
Rahul Rana Avatar asked Apr 05 '11 11:04

Rahul Rana


People also ask

How do I get rid of copy bundle resources?

To resolve this warning, select your Info. plist from the Copy Bundle Resource build phase as shown in Figure 1, then click the Remove (–) button to delete it from the phase.

How do I access copy bundle resources?

You're in the Build Settings tab, Build Phases is next to it. It will be a list of phases that includes Copy Bundle Resources .

What is copy bundle resources Xcode?

Copy Bundle Resources - Copies files that support your source code into internal structure. If you want to make sure the files you added will get copied to the application bundle. It is useful, when you are creating an app where you can add images and other resources.


2 Answers

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)
like image 196
gardarh Avatar answered Oct 01 '22 01:10

gardarh


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.

like image 37
Matthias Bauch Avatar answered Oct 01 '22 01:10

Matthias Bauch