How to duplicate a project goal in Xcode4

I want to create a target with a different package identifier for a test environment. I tried using the Duplicate function to clone the target and change the package identifier, and found that orignal was also changed. Thanks for any tips!


=================== Update ================================ ===========================

Solve the communication error after duplicating the target, this is an xcode error. The quote symbol "changes to" in the search path (setting the target building).

see details: http://flakasoft.com/developer-tips/xcode-4-bug-duplicating-a-target-results-in-link-error-due-to-missing-paths/

+5
source share
2 answers

Double-check that you have a new repeating target selected when you change the Bundle ID parameter on the Information tab. I just tried this and it worked fine.

Thus, the package identifier is on the info tab, which is actually just viewing the info.pList file associated with the target.

To change info.pList for this purpose, you will need to make a copy of the pList file (newtarget-info.pList), go to the "Build Settings" tab for the target, scroll down to the "Packaging" segment and change the Info.pList File to specify your new file.

Then, when you click on the info tab, you will get the settings from the newtarget-info.pList file.

+6
source

. XCode4, , info.plist. 1. orignal info.plist, "{APP Name} -Info.plist" 2. : " " → " Info.plist"

+4

All Articles