开发者

How can I change the name of my iOS project?

How can I change a name of my project in开发者_如何学运维 the Xcode?


Newer Versions of Xcode

According to the Xcode documentation says that you can select your project in the lefthand panel and then open the properties inspector. By editing the project name, you'll be prompted to renamed targets etc.

How can I change the name of my iOS project?

Original Answer

I'm not sure exactly what you are asking, so I've given two parts to my answer.

To change the display name of your project, (under the icon on the home screen) you should edit your Info.plist file in the Resources group of your project. Change the Bundle Display Name key. Make sure that you save the plist file and that you've deleted the old app from the simulator. Then, clean your build and then you can build it again to the simulator.

To change the name of your project, target and executable, click on Project -> Rename... in Xcode.


It's simple. Just press enter on name of project. Rename your project as desired. This will prompt changes to be done in entire Project. Click on Rename.

How can I change the name of my iOS project?

How can I change the name of my iOS project?


Ap iOS app under construction has at least 6 "names". They can all be different and can be set in different places.

  1. Project name.
  2. Target name.
  3. Product name (which will become the .app bundle file name, should have no spaces).
  4. Bundle display name (in the info.plist, displayed under the icon, spaces allowed).
  5. Bundle ID suffix.
  6. App name you give iTunes Connect.

Depending on what you change, you may need to delete the app from your device/simulator, and reinstall/build-and-run, to quickly see the changes.


Ah, I figured it out already. You need to change the active target.


If you want to change Project Name, Target name, -Info.plist name & -Prefix.pch name then,

    - Select Project in Xcode (.xcodeproj file)
    - Selecte file inspector
    - In identity section change project name which u want to update & press enter
    - After scanning whole project it will ask to change the file names i.e target, plist & pch file
    - Select check boxes as per your need 


In Xcode try the Project | Rename menu command.

See here.


1) Expand the "Resources" folder

2) Click on the "yourappname-info.plist"

3) Expand the "Information Property List"

4) You can change the "Bundle Display Name" to anything you want to display on the iPhone Home Screen.


if only change display name under app icon in device main screen you just need change "Bundle display name" key of target at tab info.


@Mosche This question should be updated for XCode 4.

Seems one has to use sed in .xcodeproj directory:

find . -type f -exec sed -i -e 's/OldProjectName/NewProjectName/g' {} \;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜