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

前端 未结 7 764
轻奢々
轻奢々 2020-12-14 00:26

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 sho

相关标签:
7条回答
  • 2020-12-14 00:48

    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

    0 讨论(0)
  • 2020-12-14 00:50

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

    0 讨论(0)
  • 2020-12-14 00:51

    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

    0 讨论(0)
  • 2020-12-14 00:52

    This part isn't necessary, but if you rename your project it will sit there annoying you every time you see it (like it did me all this morning)--the scheme name at the top when you compile the project will still have the old name. You can rename it too like this:

    Click the name and select Manage Schemes:

    Click on the name and you can overwrite it:

    0 讨论(0)
  • 2020-12-14 00:52

    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 !

    0 讨论(0)
  • 2020-12-14 01:00

    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.

    0 讨论(0)
提交回复
热议问题