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 Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-03-2012, 01:07 PM   #1 (permalink)
Survivor
 
Join Date: Jan 2012
Posts: 41
Sunny46 is on a distinguished road
Default Using SVN in Xcode

Hi I am using xcode 4.1 and I dont exactly know if the svn is working with ssh tunnel in xcode. I have read the apple provided guide but it only shows how it creates the repository locally. I am not expert of SVN but I need some help.

I have been using Eclipse for Java and my subversion repository on remote place and I could access repository through ssh tunnel in the eclipse. I don't find anyway how it could be done in Xcode 4.1.

Can I use the same repository which I have been using for my java projects from remote machine? by creating new directory of my iphone projects...???

DO I need to install Xcode on the remote place as well for svn? or I need to install only subversion svn ? which one?

looking forward for some help with this problem

Last edited by Sunny46; 02-03-2012 at 01:10 PM.
Sunny46 is offline   Reply With Quote
Old 02-03-2012, 01:11 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Window -> Organizer -> Repositories. Add whatever you want, wherever it is hosted.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 02-03-2012, 01:19 PM   #3 (permalink)
Survivor
 
Join Date: Jan 2012
Posts: 41
Sunny46 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
Window -> Organizer -> Repositories. Add whatever you want, wherever it is hosted.
I have seen this, but does it answer my question? I can access the same repository which I have for other projects on a remote location using ssh+svn tunnel???
If you know the right answer then please answer... because I have gone through all window-->Organizer-->Repositories. but I did not find it, it is doing everything for local repositories or http repositories...
Sunny46 is offline   Reply With Quote
Old 02-03-2012, 01:27 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Setting up your XCode SCM Repositories
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 02-03-2012, 01:39 PM   #5 (permalink)
Survivor
 
Join Date: Jan 2012
Posts: 41
Sunny46 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post


Thanks for this link, it is sure helpful for accessing the svn repository .

one more thing, do I need to install something like svn or repository on server side?

Thanks again
Sunny46 is offline   Reply With Quote
Old 02-03-2012, 01:46 PM   #6 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Uh, then what are you connecting to otherwise?
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 02-03-2012, 01:50 PM   #7 (permalink)
Survivor
 
Join Date: Jan 2012
Posts: 41
Sunny46 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
Uh, then what are you connecting to otherwise?

Sorry if it is irritating, I am nor master in svn. Right now I started newly development in Iphone. I know how to access the remote repository from the remote place using ssh client as I have been using in eclipse for java.

right now I need the similar mechanism on my machine but I need the repository to be present on the server side... the point is that before in java.. server side thing was done by someone already. but now I need to do it myself and I dont know whether I need to install svn or not? and if yes then which client? whether I can use the same repository which was used for java?

thanks
Sunny46 is offline   Reply With Quote
Old 02-03-2012, 01:56 PM   #8 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Well, you're going to have to do whatever the other person did if you are doing it for yourself. What is the point of worrying about the connection if you don't even have anything to connect to yet? Figure out where you are hosting, then worry about the connection.

If you don't know how to set it up for yourself, then look into a service that provides hosting. I personally use Beanstalk.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 02-03-2012, 01:57 PM   #9 (permalink)
Survivor
 
Join Date: Jan 2012
Posts: 41
Sunny46 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
Well, you're going to have to do whatever the other person did if you are doing it for yourself. What is the point of worrying about the connection if you don't even have anything to connect to yet? Figure out where you are hosting, then worry about the connection.

If you don't know how to set it up for yourself, then look into a service that provides hosting. I personally use Beanstalk.


Thanks
Sunny46 is offline   Reply With Quote
Old 02-04-2012, 06:13 PM   #10 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by Sunny46 View Post
Sorry if it is irritating, I am nor master in svn. Right now I started newly development in Iphone. I know how to access the remote repository from the remote place using ssh client as I have been using in eclipse for java.

right now I need the similar mechanism on my machine but I need the repository to be present on the server side... the point is that before in java.. server side thing was done by someone already. but now I need to do it myself and I dont know whether I need to install svn or not? and if yes then which client? whether I can use the same repository which was used for java?

thanks

It's been a long time since I first set this up. If I remember correctly, the SVN client gets installed when you install Xcode. You do need to install SVN on the server, but only once. If it already has SVN installed on it, you don't have to do anything.

Try this:

Open terminal on your local machine. Type "svn help". If you get a help screen, svn is installed. Then ssh to the account on your remote server that you will be using. Once you're logged in to the remote server, type "svn help" again. If you get a screen-full of SVN help from the remote server, IT has SVN installed.

You need to enter the repository into your Xcode organizer under repositories. When you click the "+" button to create a new repository, it asks you for a name and a location. Under location, you would enter:

svn+ssh://account@hostname.com/path/to/svn/repository

If you don't have a repository on the remote server, you will have to use the SVN command line on the remote server to set it up. I have an abiding hatred of the subversion manual, and only wade through it when I have to, or somebody is paying me to do so. I'm going to leave that lovely bit of research to you.
__________________
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
Old 02-05-2012, 02:38 PM   #11 (permalink)
Survivor
 
Join Date: Jan 2012
Posts: 41
Sunny46 is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
It's been a long time since I first set this up. If I remember correctly, the SVN client gets installed when you install Xcode. You do need to install SVN on the server, but only once. If it already has SVN installed on it, you don't have to do anything.

Try this:

Open terminal on your local machine. Type "svn help". If you get a help screen, svn is installed. Then ssh to the account on your remote server that you will be using. Once you're logged in to the remote server, type "svn help" again. If you get a screen-full of SVN help from the remote server, IT has SVN installed.

You need to enter the repository into your Xcode organizer under repositories. When you click the "+" button to create a new repository, it asks you for a name and a location. Under location, you would enter:

svn+ssh://account@hostname.com/path/to/svn/repository

If you don't have a repository on the remote server, you will have to use the SVN command line on the remote server to set it up. I have an abiding hatred of the subversion manual, and only wade through it when I have to, or somebody is paying me to do so. I'm going to leave that lovely bit of research to you.

Hi Duncan, Thanks for the answer, this is exactly what I was looking for, I have read your posts on different questions I don't know why You always come up with the right answer thanks millions let the knowledge prosper
Sunny46 is offline   Reply With Quote
Old 02-06-2012, 04:22 AM   #12 (permalink)
Survivor
 
Join Date: Jan 2012
Posts: 41
Sunny46 is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
It's been a long time since I first set this up. If I remember correctly, the SVN client gets installed when you install Xcode. You do need to install SVN on the server, but only once. If it already has SVN installed on it, you don't have to do anything.

Try this:

Open terminal on your local machine. Type "svn help". If you get a help screen, svn is installed. Then ssh to the account on your remote server that you will be using. Once you're logged in to the remote server, type "svn help" again. If you get a screen-full of SVN help from the remote server, IT has SVN installed.

You need to enter the repository into your Xcode organizer under repositories. When you click the "+" button to create a new repository, it asks you for a name and a location. Under location, you would enter:

svn+ssh://account@hostname.com/path/to/svn/repository

If you don't have a repository on the remote server, you will have to use the SVN command line on the remote server to set it up. I have an abiding hatred of the subversion manual, and only wade through it when I have to, or somebody is paying me to do so. I'm going to leave that lovely bit of research to you.

HI Duncon Again,

I actually was able to set up a repository on the remote location and as well on the local computer but after adding the repository i dont get any data or anything... but i feel best way to do is that connect to a repository when xcode opens... i open xcode and instead of selecting the project, i select connect to repository and there i give my remote repository path... svn+ssh://remoteserver/repos/myrepos but the button Next is not enabled when i write the repository url... i dont know why is it not working if i want to connect using svn+ssh...??? it does not work?
Sunny46 is offline   Reply With Quote
Old 02-07-2012, 02:33 AM   #13 (permalink)
Survivor
 
Join Date: Jan 2012
Posts: 41
Sunny46 is on a distinguished road
Default

Quote:
Originally Posted by Sunny46 View Post
HI Duncon Again,

I actually was able to set up a repository on the remote location and as well on the local computer but after adding the repository i dont get any data or anything... but i feel best way to do is that connect to a repository when xcode opens... i open xcode and instead of selecting the project, i select connect to repository and there i give my remote repository path... svn+ssh://remoteserver/repos/myrepos but the button Next is not enabled when i write the repository url... i dont know why is it not working if i want to connect using svn+ssh...??? it does not work?
SOLVED ALL
Sunny46 is offline   Reply With Quote
Reply

Bookmarks

Tags
ssh, subversion, svn

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: 389
19 members and 370 guests
Apptronics RBC, Atatator, chiataytuday, dre, FrankWeller, gwelmarten, ipodphone, jeroenkeij, jleannex55, kukat, LunarMoon, MAMN84, n00b, pbart, QuantumDoja, reficul, Retouchable, Sami Gh, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,124
Posts: 402,909
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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