tags:

views:

59

answers:

4

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?

+1  A: 

Hello !

You should check all setting/value in the "Project Info" & "Target Info" Pop-up.

Another solution, Right-Click on your .xcodeproj, Open the Dir (because it isn't a file), Open all files with text-edit and search/replace what you want :-)

Good Luck !

Vinzius
+1  A: 

You can also change the entire project name by just selecting Project->Rename in recent versions of XCode.

Vaayu
yep But it don't always work :(
Vinzius
eah but my problem is the name of project is different and the name under products folder is different
pankaj kainthla
A: 

Go to Project -> Edit Project Settings -> Select Build tab -> look for productName in packaging category.Change it to what you want.

Same way Change it in Edit Active Target Settings.

Javal Nanda
Caveat being that a Project can contain several products. Always set product name at the target level.
PeyloW
+1  A: 

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

PeyloW
i done what u said but it works fine for simulator but i shows error (code sign key error ) when i run it in device mode
pankaj kainthla
Code sign errors are not related to the product name. The bundle identifier, and the developer profiles you have installed, are related to code sign errors. Hard to say what the actual error is, unless you copy and paste the complete and exact error message.
PeyloW
Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain
pankaj kainthla
accepted thanks
pankaj kainthla