Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 01-17-2012, 06:37 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 1
dfcarvalho is on a distinguished road
Default Set existing Xcode4 project to new remote SVN repository instead of local git.

I have an Xcode 4 project that I've been working on for a while. For version control I was using the local git repository that Xcode creates when you create a new project, but now I have to use a remote svn repository instead.

I have added the new repo in the Organizer and I imported the project into it, but I can't find the option (in Xcode 4) to commit changes to the new SVN repo instead of the old local git repo. When I go to File > Source Control > Commit, it tries to commit to the local git repo. I have even tried to delete the old repo (creating a backup beforehand), but then it just says "can't find (null) repository" or something of the sort.

I tried importing the project into the new repo both using the command-line tool (svn import) and the Import icon in the Organizer, neither of these seem to make Xcode understand that the new repo contains that project and that new commits should also go to that repo.

Any ideas how to commit changes to the new repo using Xcode?

Thanks in advance.
dfcarvalho is offline   Reply With Quote
Old 01-24-2012, 01:59 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 2
mkotliarov is on a distinguished road
Default

Read this post:
Beanstalk | Setting up Subversion with XCode 4
mkotliarov is offline   Reply With Quote
Old 01-31-2012, 07:56 PM   #3 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,005
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by dfcarvalho View Post
I have an Xcode 4 project that I've been working on for a while. For version control I was using the local git repository that Xcode creates when you create a new project, but now I have to use a remote svn repository instead.

I have added the new repo in the Organizer and I imported the project into it, but I can't find the option (in Xcode 4) to commit changes to the new SVN repo instead of the old local git repo. When I go to File > Source Control > Commit, it tries to commit to the local git repo. I have even tried to delete the old repo (creating a backup beforehand), but then it just says "can't find (null) repository" or something of the sort.

I tried importing the project into the new repo both using the command-line tool (svn import) and the Import icon in the Organizer, neither of these seem to make Xcode understand that the new repo contains that project and that new commits should also go to that repo.

Any ideas how to commit changes to the new repo using Xcode?

Thanks in advance.
Xcode gets very confused if you have both Git and SVN files in a project folder. In order to set up an Xcode project with Git under SVN, you need to first delete the .git directory from the root level of the project folder. I suggest backing up first, then deleting the .git folder from your project, and THEN adding the project to your remove SVN repository.

Git uses a slightly different sequence to post changes to a remote server. With git, you have both a local Git repository AND a remote Git repo. You first commit your changes to the local repo, then "push" those changes up to the remote server. On the flip side, you "pull" changes from the server and it updates your project directly.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 458
14 members and 444 guests
7twenty7, David-T, Dj_kades, Elad, HemiMG, iAppDeveloper, jeroenkeij, LunarMoon, Mijator, Pauluz85, QuantumDoja, sacha1996, smithdale87, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0