标签云

微信群

扫码加入我们

WeChat QR Code

I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since it's nearly finished. But I'm not sure how to do this with Xcode, trying the obvious of changing the application's name in the info.plist file, causes the signing process to go wrong (I think...) and my app won't launch giving me a Launcher error.I guess I could make a new project and copy paste everything over, but it seems so primitive that I'm hoping for a more civilized solution.


I've had to do this a few times. I use a tool called Rename Xcode Project 2.1.

1970年01月01日00分03秒

There are times when the simple way still doesn't work (or there are echoes of old naming, etc.). I posted an article showing how to fix this by going into the xml of the project files manually here: change the name of an iPhone app

2019年06月26日24分35秒

Here's a free utility that does this and works well in my experience: change the name of an iPhone app

2019年06月25日24分35秒

this works for everything except renaming your plist file which yu can do manually.

2019年06月26日24分35秒

all: Not fully answered. The title of the application window and the pulldown menu of the application stays with the old name. Frank Schmitt: The "Rename xCode Project" project fails when the plist file was renamed. It awaits the name Info.plist

2019年06月25日24分35秒

I had to quit XCode and delete my build directory before it would take for me.

2019年06月25日24分35秒

Also, remember to change this in each of the configurations! (Debug, Release, Ad Hoc, App Store, etc)

2019年06月26日24分35秒

For anyone else that is a complete beginner, "Targets" is inside of the "Groups & Files" pane on the left, it has a red and white target sign next to it ;)

2019年06月25日24分35秒

In Xcode 4 you can simply double click the target name and change it directly in the target list.

2019年06月26日24分35秒

all there is a really good and updated answer for Xcode5 that worked like a charm, and i think it's the correct one check it out here stackoverflow.com/a/20418989/3027848

2019年06月25日24分35秒

The scheme change didn't go smoothly for me: could only select My Mac after that. Thankfully the problem is easy to fix: stackoverflow.com/questions/8377970/…

2019年06月25日24分35秒

Had the same problem as marcelsalathe, his fix solved the issue. Ideally this should be added to Javier Cadiz's answer.

2019年06月25日24分35秒

There is a bug with Xcode where the rename function doesn't rename shared internal framework properly. See here for more info: stackoverflow.com/questions/34749687/…

2019年06月26日24分35秒

The "Another scenario" worked great! Two notes: 1. I had to add the "Bundle Display Name" in Info.plist as it was not there by default (Xcode 7). 2. If it doesn't appear to work, make sure you're changing the bundle display name in the Info.plist file in the "Supporting Files" folder like Javier said. I wasn't paying close enough attention and changed it in the ProjectName-Info.plist file that is right below the "Supporting Files" folder and wondered why nothing happened.

2019年06月25日24分35秒

Thankyou so much for the detailed explanation! :)

2019年06月26日24分35秒

this is better than changing the target name as it avoids conflict and mess-ups in game engines

2019年06月26日24分35秒

i had to change the product name in info plist and also rename the target name. Then I also had to clean build directory (press and hold options key while traversing to xcode Product menu and there will be an option to clean build directory).

2019年06月25日24分35秒

This changes the app name displayed under the icon without the hassle of changing the app id and provisioning profiles. Thanks. Accepted answer no longer applies (as I understand it).

2019年06月26日24分35秒

This is by far the superior solution! JUST changes the name under the icon, and not bundle identifiers which mess up provisioning profiles

2019年06月26日24分35秒

If 'Bundle display name' is not shown, then simply add it.

2019年06月25日24分35秒

This is a bad answer, if you do that your test project won't run

2019年06月26日24分35秒

...and 118 other people apparently!

2019年06月25日24分35秒

This would works great only with one issue, on your user's devices it will create a separate application with the new name instead of renaming the currently installed one they already have.Changing the 'bundle display name' in the project plist is the best way to do it.

2019年06月26日24分35秒

This is the only solution that doesn't mess up with other file names and identifiers, and mostly - doesn't change the Bundle Identifier - which is essential if you already have an app id...

2019年06月26日24分35秒

The best solution if you just need to update the icon name.

2019年06月25日24分35秒

This works, but it also changes the deployed app name (any existing installs won't get "upgraded", it will be a second app). Changing the "bundle display name" as per CodeHunter's answer is nicer

2019年06月26日24分35秒

That was easy...

2019年06月26日24分35秒

Works for Xcode 8 as well.

2019年06月25日24分35秒

Great answer! works fine!

2019年06月25日24分35秒

I saw the setting as "Product Name" not "Project Name" - in any case, the change worked.

2019年06月25日24分35秒

The old iPhone OS 2.x SDK had it as "Program Name". It was changed with 3.0 SDK to "Product name".

2019年06月25日24分35秒

But renaming the project at the Product Name under Build settings-> Packaging is primordial step otherwise it will be some issues when submitting the final release.

2019年06月25日24分35秒

on XCode 7 gets error trying to run on ios7 :(

2019年06月26日24分35秒

that's wired, we've done that so many times since iOS 7.0

2019年06月26日24分35秒