Re: Accessing Xcode 4 local Git repo in Xcode 5.0.2
Re: Accessing Xcode 4 local Git repo in Xcode 5.0.2
- Subject: Re: Accessing Xcode 4 local Git repo in Xcode 5.0.2
- From: Peter Teeson <email@hidden>
- Date: Thu, 12 Dec 2013 21:36:27 -0500
On 2013-12-12, at 6:09 PM, Quincey Morris wrote:
> On Dec 12, 2013, at 13:32 , Peter Teeson <email@hidden> wrote:
>
>> Mountain Lion 10.8.5, Xcode 5.0.2
>> Trying to transition to ML and Xcode 5.0.2 I have been able to code/debug/run/edit etc.
>>
>> My problem is I have not discovered how to add the local .git repo that exists in the project folder, put there when I created the project in XC 4.
>> Yes I have Googled, searched Apple Xcode docs and StackOverflow and not found anything to help me.
>
> You shouldn’t need to add the repository explicitly. Just open the project and Xcode should treat it as under SCM. Is there a reason you think it’s *not* doing so?
>
>> The project folder location is /Volumes/Data/Development/MyProjects/FooBarWS/Foobar. There is a .git which shows up with ls -al
>> If I type that path into the Xcode Preferences Accounts +Add Repositories box nothing happens.
>> I tried adding myself as an Account but that didn't make a difference.
>
> Probably because that repository is already in the list, though perhaps with a name that’s not obviously what you were expecting.
>
> You can try ‘git status’ (or ‘xcrun git status’ if you have to) in a Terminal window, after cd’ing to the Foobar folder. If the results look normal (i.e. if there aren’t any error messages), there’s no reason why Xcode shouldn’t just the git repository without any action on your part
Thanks for your reply. No repositories at all show up in Xcode.
I followed your advice but both 'git status' and 'xcrun git status' report the identical information. The results look normal.
The only thing that might affect things is that the Foobar.xcodeproj file is not in the Foobar folder but up one level in the FoobarWS one.
i.e. /Volumes/Data/Development/MyProjects/FooBarWS/Foobar/…. the project files
/Volumes/Data/Development/MyProjects/FooBarWS/Foobar.xcodeproj
The project was originally created that way (on 6 Jan 2012 - as an Xcode 3.2 compatible one per the Inspector of the Project document) and I have not moved anything around.
I tried moving it into the Foobar folder but got a build failure that it could not find the Foobar.plist file. It is there in the Supporting Files folder.
Re-adding it to the project, cleaning and deleteting the derived data still produced the same error.
I'm stumped.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden