Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode - move files from one folder to another in a SCM aware way?

Tags:

xcode

svn

I have an XCode project in SVN. I would like to relocate some files from one physical directory to another but can't seem to find a way to do this in XCode. If I do the move in XCode it simply moves the file references from one Group folder to the next, without changing their location on disk. If I move the files in Organizer - well Organizer seems to be SVN unaware as Ive just spent the afternoon manually unwinding the move so that I can do a check in. At the moment my only option(s) seem to be: 1. lots of svn command line mojo, or 2. do a checkout on windows where TortiseSVN can be used to do all kinds of stuff (But then my XCode project will be all confused).

I'm really hoping ive missed something...

like image 473
Chris Becke Avatar asked Oct 15 '10 14:10

Chris Becke


People also ask

How do I copy one project to another in Xcode?

Knowledge BaseClick the arrow button to the right of the file and select Move or Copy file from the dropdown menu. When you choose Copy this file from the move or copy dropdown, you will then be able to select which project to copy it to. You can make a copy of the file in the existing project or in another project.

How do I add a folder to my Xcode project?

Xcode offers several ways to add existing files and folders to your project: Drag the files from the Finder into the Project navigator. Click the Add button (+) in the Project navigator's filter bar, and choose Add Files to “projectName”. Choose File > Add Files to “projectName”.

How do I open a folder in Xcode?

Select the file and click Open. Xcode will open the project. On the left side you will see the Project Navigator, with a folder representing your project by name. From here you can expand the folders and explore their contents.


1 Answers

Unfortunately, there appears to be no way to do a svn copy in Xcode 4. Your only options for management of subversion repositories in the Xcode organizer are: Make Directory, Delete, and import. And as for dealing with committed files and folders, the options are commit, update, Add, and Ignore. So as you suggested you are going to need to do some svn command line work, or find your self a better GUI svn client. I use to use SvnX when I worked full time with svn. But yes your best bet if you don't want to work in the command line is to find a good GUI svn client, there are a few to choose from see Best subversion client for Mac OS.

like image 65
MrDaniel Avatar answered Oct 19 '22 23:10

MrDaniel