How to change Xcode Project name

前端 未结 18 1528
情深已故
情深已故 2020-12-02 05:32

I have developed my app in Xcode for iPhone, in start I have just named it without secnec now I want to change my app name I have replace my old app name with new one as I h

18条回答
  •  天涯浪人
    2020-12-02 06:17

    ohho's answer is perfect:

    For Xcode 4 or later:

    Open a project

    Select Project Navigator

    Highlight project name

    Single click on project name

    BUT, if you only do this, once you try to debug on a new device, you will find an error:

    file not found: /Users/someuser/Library/Developer/Xcode/DerivedData/OLDNAME-akbwbarcniqxytctbebckkelkbxs/Build/Products/Debug-iphonesimulator/OLDNAME.app/OLDNAME

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Then you need to do one more step:

    • Select target on the left panel
    • Choose the oldnameTests in Targets
    • Select the Build Settings Panel
    • Search for "TEST_HOST" and change the old value to the new.

    Good Luck and Have Fun

提交回复
热议问题