program tip

Xcode 4에서 iPhone 앱 이름 변경

radiobox 2020. 8. 6. 08:11
반응형

Xcode 4에서 iPhone 앱 이름 변경


iPhone 화면의 앱 아이콘 아래에 표시되는 이름을 변경하고 싶습니다. Xcode 4를 사용하고 키가있는 하나의 대상이 있습니다.

  • 번들 표시 이름 : $ {PRODUCT_NAME}
  • 번들 이름 : $ {PRODUCT_NAME}

내가 원하는 것은 내 프로젝트 이름은 "test"이지만 "MySuperApp"을 갖고 싶습니다. 그렇다면 어디에서 가장 변경할 수 있습니까? 변경할 수있는 곳이 ${PRODUCT_NAME}있습니까?

변경해야 할 다른 장소가 있습니까?


파일 이름을 바꾸지 않고 답변

참고 파일 이름 변경을 필요로하지 않는 대답은 다음과 같습니다 .

파일 이름 변경 답변

좋아, 여기 내가 찾은 것이 있는데,이 게시물을 읽은 후 약간의 사냥을 했으므로이 답변이 모든 사람을 도울 것입니다.

1. 왼쪽의 프로젝트 내용 창에서 폴더 아이콘을 클릭하십시오.

폴더 아이콘

2. 프로젝트를 나타내는 최상위 파란색 선을 선택하십시오.

프로젝트 아이콘

3.Inspector 창 (오른쪽 창)이 열려 있지 않은 경우 단추를 클릭하여 활성화합니다. "보기"도구 모음에서 오른쪽 상단으로 향하는 세 번째 버튼입니다.

"보기"의 ​​세 번째 버튼

4. 검사기 창에서 작은 접힌 모서리 용지 (파일 속성) 아이콘을 클릭합니다.

파일 관리자

5. 먼저 프로젝트 이름입니다. 새 파일을 입력하면 프로젝트 컨텐츠 파일의 이름을 바꾸라는 메시지가 표시됩니다.

프로젝트 이름 필드

추가해야합니다. 이것은 오래된 앱을 시뮬레이터에 원래 이름으로 남겨 두므로 시뮬레이터에서 여전히 삭제해야합니다. 또한 이전 앱 번들에서 생성 한 파일은 Finder에서 찾아서 옮기지 않는 한 새 번들로 전달되지 않습니다.

(편집 :) 하나 더 중요한 메모. 번들 이름을 바꾸면 Apple Provisioning Portal에 등록한 앱 번들 식별자가 더 이상 해당 앱에서 작동하지 않습니다. 앱을 실제 기기에 배포하려면 새로운 앱 ID 및 프로비저닝 프로파일을 생성해야합니다.


Xcode 4에서 대상 "정보"탭을 선택하고 "번들 표시 이름"필드를 원하는 이름 (예 : "MySuperApp")으로 설정하십시오. 가장 간단하고 통증이없는 솔루션입니다.

여기에 설명 된 다른 모든 답변은 원래 게시 된 문제를 해결하지 않습니다. "iPhone 화면의 앱 아이콘 아래에 표시되는 이름을 변경하고 싶습니다." 의 upvoted 답변 : 우디, 제이, 그리고 youshunei 확인을하지만 그들은 모든 변화 표시된 이름 중 :

A) App Bundle Identifier를 변경하고 앱과 Apple Provisioning Portal에 등록한 Bundle Identifier간에 비 호환성을 유발합니다 (이미 앱을 배포했거나 앱을 제출하려는 경우 문제가 됨)

또는

B) 다른 사람들이 언급 한 계획 문제 (예 : 기존 계획을 삭제 / 재 작성해야 함)


대상 설정 페이지의 빌드 탭에서 변경하십시오.

명확하게 : 대상을 선택하고, 빌드중인 대상을 선택하고, 정보를 얻고, 빌드 탭을 선택하고, 검색 상자에 '제품 이름'을 쓰고 거기에서 변경하십시오.


Xcode 4에서는 TARGETS 이름을 두 번 클릭하고 (더블 클릭 아님) 이름을 변경하고 Xcode를 다시 시작하십시오. 그것은 나를 위해 일했습니다. 간단합니다.여기에 이미지 설명을 입력하십시오


프로젝트 .plist 에서 번들 표시 이름을 변경하려고합니다 .

Bundle display name : ${PRODUCT_NAME}   

로 변경되어야합니다

Bundle display name : MySuperApp

This changes the label of the icon in iOS without actually changing the app identifiers. If you just change the bundle display name, you won't need to set up a new app id and provisioning profiles.


Making the product name change: Double click the name right under "Targets" and modify the target name to whatever you want.

Checking if the change has been made: Click on "Target" and on the right hand side search for "Product Name" under "Build Settings". The displayed value of the product name should reflect your change. If not, double click on that name to make sure it's being set to $(TARGET_NAME).


  1. Select Project
  2. Select Target and single click to edit and rename and you're done
  3. You can see the product name gets changed

Here the snap for these 3 steps

여기에 이미지 설명을 입력하십시오

Edited: I've noticed the similar answer with image attachment by youshunei after my post. So, I would add a bit more information here that I've tested it on Xcode 6.3.2 and it doesn't need any restart.

Edited: When I renamed one of my Mac OS X app which contains comma in its name the same way. I got missing file (name trimmed up-to comma) in some pod linking library. So, I have to rename my app at Target -> Build Settings -> Product Name


To change the name of the app if it has been customized:

Project info -> Targets (click on app icon entry) -> Build Settings -> Product Name


In recent versions of XCode (I am on 4.3.2 currently), $(PRODUCT_NAME) is set to $(TARGET_NAME) which defaults to the name of the project directory (no don't change the directory name).

Solution: Click on the file navigator. Click on your blue project icon. Look for the TARGETS list (under the PROJECT list). Hover-click your target; then rename it to your product name.


Aside: If you are having code-signing problems, I found that deleting, revoking, and regenerating all certificates/keys, and profiles fixed my problem. I tried everything else first!


One thing that seemed to help when I went through this is in Xcode 4 is that it appeared to be necessary to delete all the schemes. Prior to this it seemed that although the app would be compiled under its new name, it'd be as the old name in the simulator. However, I did do other desperate measures like re-start xcode and delete the app out of the simulator folder so it's hard to be certain that deleting the schemes was the key.


The issue I was having was that I have multiple Info.plist files in my Xcode project. In order to ensure I had the right one which contains the Product Name, I moved the existing Info.plist temporarily to force Xcode to allow me to choose another one. Since Info.plist is not part of a target, but part of the Project configuration, this was the only way I could find to do this.

참고 URL : https://stackoverflow.com/questions/5043066/change-name-of-iphone-app-in-xcode-4

반응형