Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the product name within an Xcode project?

Tags:

xcode

iphone

I have an application that I would like to be called IFrames. I've named all of the files appropriately (IFramesAppDelegate, etc.), but when I run it in ad hoc mode it shows up with the name "photoframes" instead.

How did this happen and how do I change the name of the product to match the name I've provided for the project?

like image 973
Pankaj Kainthla Avatar asked Oct 06 '10 12:10

Pankaj Kainthla


People also ask

How do I change the product name in Xcode?

Open your Xcode project, choose your project from the left side and then on the right side, under the Identity and Type, change the Name to your new project name and press Enter. On the new window, press Rename.

How do I rename a target in Xcode?

Select your target from TARGETS(in left navigation bar) and double click, then rename it.

Where is the products folder in Xcode?

It should by located in: ~/Library/Developer/Xcode/DerivedData . Show activity on this post. You can configure the output directory using the CONFIGURATION_BUILD_DIR environment variable.


3 Answers

In XCode 4, on the Target properties, it is under the "Packaging" section, or you can just search for "Product Name".

enter image description here

like image 192
Jay Imerman Avatar answered Sep 23 '22 18:09

Jay Imerman


Do not set the product name on the project level, since your project can build several different applications. For example on iPhone/iPod touch app, and another iPad app fromt he same sources.

Instead set the product name on the Target. Find the Target in the Group & Files column in Xcode. And select "Get Info" from the context meny, or use the cmd-I shortcut.

Targets

In the Info window go to the build tab. Make sure Configuration is set to "All Configurations", since you want the same name for Debug and Release builds. Filter down your options with "product name" to find the option fast, and type away.

Product name in Target Info

like image 22
PeyloW Avatar answered Sep 20 '22 18:09

PeyloW


In Xcode 5, the Product Name defaults to the variable $(TARGET_NAME) which is linked to your Target Name.

You can change your Target Name by clicking your Project in the Project Navigator, then clicking the target in the list under Targets, and hitting return.

like image 36
TalkLittle Avatar answered Sep 21 '22 18:09

TalkLittle