Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8254117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:05:37+00:00 2026-06-08T01:05:37+00:00

I want to use git in XCode for iPhone app development. I began to

  • 0

I want to use git in XCode for iPhone app development.
I began to use it from few days ago.

But after renaming XCode project name, commiting doesn’t work anymore.

So I tried re-create repository of git.
I could delete old repository and could create new repository with XCode’s Organizer.

But I don’t know how to use new repository from the project.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:05:39+00:00Added an answer on June 8, 2026 at 1:05 am

    Having just renamed my project, this was an interesting question 🙂

    I called up the commit dialog, and everything looked good, but on committing, I got the same problem. It looks like the project name doesn’t add the new project directory to git. ( You did change the project name through Xcode didn’t you, if you didn’t, I’d rename it back and then change it through Xcode.)

    First of all, since you’ve rebuild the repository, I’ll address your problem.

    The chances are that the problem is that the project is not added to the repository. If you have ‘?’ marks next to your files, you just need to do a Source Control | Add for the files ( and the project) in the File Browser.

    If this doesn’t fix it, you may have the old project name checked into the repository ( I don’t know if delete from Xcode really deletes the old repository or just unregisters it.
    I had this problem and fixed it from the command line

    cd <project directory>
    PATH=$PATH:/Applications/Xcode.app/Contents/Developer/usr/bin/
    git rm <old project name>.xcodeproj
    

    That last command gave me an error, but did seem to remove the offending entry from the repository.

    Hopefully, you’ll be up and running now.

    I fixed the problem by working on the old repository, so what I did is for other people in a similar position.

    ( This is mostly command line stuff)
    // In Xcode, add the project to git: right click on the project in the files browser and source control|add. This should make the ? go away.

    // Add the git directory to your path
    PATH=$PATH:/Applications/Xcode.app/Contents/Developer/usr/bin/
    // go to your project directory, for me that was something like
    cd ~/Projects/<project name>
    
    git rm <old name>.xcodeproj
    
    git commit -m "<commit message"
    

    There were a couple of source files that didn’t commit, so I committed them with right click on the file and committing them on their own. Once I had a clean project, I made a change to one file and then did a commit through the file menu to check the complete project was committing and it was.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After a merge I want to use git mergetool to resolve the issue but
I want to use Git and Github for the development of a project. But
I want use BYTE_ORDER macro in my Xcode project but i can't because i
I want to use Git to store and version data efficiently, but I also
I like to use either git or svn for my Xcode projects, but need
I want to use PHP writing git hooks but have some problem. I use
I use Git, but some of my colleagues are unable to move away from
new git user here. I want to use git, but i'm in an SVN
I want to use git archive to make backups of my repository, but the
I want to use git to clone a svn repository, but unfortunately, where svn

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.