Xcode 6 how to rename copied target
ios, xcode, xcode6
Solution
- Duplicate a target.
- Double click the copy of target and change its name to whatever you want.
- 'New target -> Build Settings -> Packaging -> Product Name', change it to the name you want.
- Product (Menu item) > Schemes > Manage Schemes, then click the '+' button, select the new target and click 'OK' button.
All done.
PS: After Duplicating the target, Xcode make a new Info.plist file named 'xxx copy-Info.plist' in the root path of project. If you want to change its name and path, after doing this, you should go to 'New target -> Build Settings -> Packaging -> Info.plist file' and change the value to the path of new file.
Problem
I know that this is not a new question, but I have tried many solution like edit Xcode project file manually or recreating new scheme for target after renaming it. Can somebody help me with this question how copy target in right way and then rename it. Right now I just rename scheme and it is displayed as is. But when Xcode is running app, under progress indicator it says: Running ProjectName-copy. But I have renamed target but seems product names or some build settings still has "...-copy" in the name.