How do I rename an xcode scheme and keep Git commit working?

后端 未结 2 1830
北恋
北恋 2021-01-15 15:19

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.

I would dearly love to rename a bu

相关标签:
2条回答
  • 2021-01-15 16:01

    I had this problem, and all I did was commit the changes using github. Then in xcode I selected File -> Source Control -> Refresh Status

    0 讨论(0)
  • 2021-01-15 16:14

    I've been struggling for a while with this, but now I've found the solution! :)

    It's not a great way to resolve it but Apple hasn't fixed this bug so...

    1. Install GitHub.app from github.com (http://mac.github.com/).
    2. Add the folder of your project (where .git can be found) to your list of repositories on your computer in the GitHub app.
    3. Commit uncommitted changes through this application
    4. In Xcode organizer, add a branch to the git repository for the app
    5. Make a random change to a file under version control and commit through Xcode
    6. Remove the branch you just created (through Xcode)
    7. It should now work (it did for me) to commit directly through Xcode

    I'm not sure whether you need to do step 5. You might be able to branch and then remove that branch..

    This worked for me, I hope it works for you too!

    0 讨论(0)
提交回复
热议问题