Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I rename an xcode scheme and keep Git commit working?
    text
    copied!<p>Update: I reported this as a bug to Apple and they fixed it! All this seems to be working OK in xCode 4.5. Historians may read on.</p> <p>I would dearly love to rename a build scheme for an iOS project in xCode 4.3. I've successfully renamed the project:</p> <p><img src="https://i.stack.imgur.com/ZzyY9.jpg" alt="Renaming"></p> <p>and then I can rename the target and the product:</p> <p><img src="https://i.stack.imgur.com/1z2Tv.jpg" alt="RenameTarget"></p> <p>and then I can rename the scheme:<br> <img src="https://lh3.googleusercontent.com/-49Twhe4BRbA/T9CgYxZjVyI/AAAAAAAAAeE/1FFSiXIFABA/s300/xcodescheme1.jpg" alt="Click here to rename scheme"><br> and then<br> <img src="https://lh6.googleusercontent.com/-7zu8amNT7Vc/T9CgZRXYJyI/AAAAAAAAAeM/n1OJFV6Rghc/s500/xcodescheme2.jpg" alt="and then click here"><br></p> <p>and then I choose </p> <blockquote> <p>File - Source Control - Commit...</p> </blockquote> <p>and get</p> <blockquote> <p>The working copy "TestWeb" failed to commit files. fatal: Could not switch to '/Users/me/Programming/TestWeb/TestWeb.xcodeproj': No such file or directory</p> </blockquote> <p>and indeed xcode is trying to commit the file TestWeb.xcodeproj despite the fact that xcode itself has just renamed that file to <code>TestWeb5.xcodeproj</code> when I changed the project name. this seems to be some combination of the different name changes I'm doing here, changing just one thing produces no error, but more than one change confuses xcode - sometimes. </p> <p>Do I have to do all this in some specific order? Or do I just have to give up and create a new xcode project with the right names and paste my files into that and lose the old record of commits in the old git archive?</p> <p>I found <a href="https://stackoverflow.com/questions/10924523/xcode-4-2-renamed-project-file-in-project-navigator-all-project-settings-confi">this SO answer</a> and looked in the xscheme files as suggested and can only find references to the new names.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload