Error : Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'UserDefinedLocalization-Info.plist'
When I run the Applicatio开发者_StackOverflown then warning display below,
Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'UserDefinedLocalization-Info.plist'.
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)
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.
精彩评论