• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode + SCM + team with mixed IDEs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode + SCM + team with mixed IDEs


  • Subject: Re: Xcode + SCM + team with mixed IDEs
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Thu, 17 Jan 2008 15:05:45 +0100


Le 17 janv. 08 à 14:42, Joris De Ridder a écrit :


On 16 Jan 2008, at 19:20, Andrew Pontious wrote:

On Jan 16, 2008, at 4:55 AM, Joris De Ridder wrote:

I'm an Eclipse user who has just begun to explore the possibilities of Xcode.
There is one issue about Xcode and SCM that confuses me. The Xcode User Guide mentions that


"...you must also commit the project package [...] Otherwise, the project file may become out of sync with the rest of the project’s files (source code files, resource files, and so on)"

To what extend is this project file essential for Xcode to work with SCM?


In the latest version of Xcode, Xcode 3.0, there are two sets of operations you can perform.

The first is repository operations, which don't require a project. First, go to SCM -> Configure SCM Repositories, and tell Xcode about the repository or repositories you're interested in. Once you've done that, you can go to the Repositories window, SCM -> Repositories, and do certain things such as checking out a repository, adding a directory, copying something, etc.

The second is local operations, such as committing changes to the repository from your local copy, updating your local copy, discarding changes, etc. For this, you need a project, and you need to tell that project, via Project -> Edit Project Settings -> SCM Repository (popup button near the bottom of the window), which repository that project and its files are associated with.

Once you've done that, Xcode will attempt to process everything under your project's project root directory -- which by default is the same directory the project is located in, but can be changed to be a higher-level directory that also includes the project, from the same project info window where you set the SCM repository -- according to that repository's SCM information.

Unfortunately, at this time the Xcode SCM documentation is outdated; it doesn't include any of the above information, but instead refers to things as they were in Xcode 2.*. We are working on that.

I did the following

1) In SCM -> Configure SCM Repositories:
Entered the necessary info for my SVN repository "MyRepository"
2) Checked out "MyRepository" to a local folder "/Home/ MyLocalRepository/"
3) Created a new project "MyProject" located in the folder "/Home/ MyLocalRepository/"
This leads to a "/Home/MyLocalRepository/MyProject/ MyProject.xcodeproj" file.
4) In Project -> Edit Project Settings:
a) Changed Project root to "/Home/MyLocalRepository/" instead of "/Home/MyLocalRepository/MyProject/"
b) For SCM Repository I selected "MyRepository"


4b is not possible without first doing 4a (thanks, Andrew, for pointing this out).

Question: where's the repository software? :-)
There are loads of source files and source file folders that were (properly) checked out, I checked with Finder. But I don't see them in the "Groups & Files" in my Xcode window. I come from Eclipse-land where one has to select "New SVN Project", follow the wizard, and end up with all the software available for editing in the Package Explorer. I wish the Xcode User Manual would be more helpful, but as Andrew pointed out it's not yet up to date. Surely I'm missing something obvious here...


Cheers,
Joris

Eclipse and Xcode do not choose the same philosophy for file management. In Eclipse, the document tree reflects what you have on your disk. In Xcode, you see only the files you put in your project, and you can group them as you like in the tree view, whatever the "on disk" organization is. Grouping and moving files in your Xcode project will not move them on the disk.
So, unlike Eclipe, when you add some sources files in a directory, Xcode will not add them automatically in your project. You will have to drop them in the Xcode window.




_______________________________________________
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


References: 
 >Xcode + SCM + team with mixed IDEs (From: Joris De Ridder <email@hidden>)
 >Re: Xcode + SCM + team with mixed IDEs (From: Andrew Pontious <email@hidden>)
 >Re: Xcode + SCM + team with mixed IDEs (From: Joris De Ridder <email@hidden>)

  • Prev by Date: Re: Xcode + SCM + team with mixed IDEs
  • Next by Date: Snapshot restore failed
  • Previous by thread: Re: Xcode + SCM + team with mixed IDEs
  • Next by thread: Xcode 3.0 file rename behavior
  • Index(es):
    • Date
    • Thread