• 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: Moving Xcode Projects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving Xcode Projects


  • Subject: Re: Moving Xcode Projects
  • From: Greg Guerin <email@hidden>
  • Date: Fri, 12 Sep 2008 10:45:11 -0700

Neil wrote:

I wasn't talking about re-factoring the code. As I understand it, if I want to rename the project itself, I have to dive into a pile of configuration files and apply the changes manually in a bunch of places.

To rename an Xcode project: 1. Close the project in Xcode. 2. Rename the .xcodeproj item in Finder. 3. Open the project in Xcode. 4. Observe the name change in window title. 5. Observe the name change of the project in "Groups & Files" list.

This worked at least as far back as Xcode 2.*, and I just confirmed it works in Xcode 3.0. I haven't checked it in 3.1, but I have no reason to think it would fail.

If by "rename project" you mean "rename all the targets and products" then that does take some additional action. However, all these can be performed within Xcode itself, using the usual manual gestures Both the click-twice gesture (same as Finder) and the contextual- click gesture will let you rename items under Targets or Executables. The same gestures work to rename any groups.

Renaming a build product should usually be done by changing the Product Name build setting for the target. You can do that manually in the Target Info window, or you can do it in a .xcconfig file, IIRC. The contextual-menu on a build product under "Groups & Files" has a Rename item, but I haven't tried this to see how it affects the build settings.

You can do all these things without diving into "a pile of configuration files". If you decide to go the .xcconfig file route, you have to edit the .xcconfig file, but I don't consider 1 config- file a "pile". You can get more info on xcconfig files by googling the term.

If there are other specific things you need to rename, please be specific about what they are. It could be simpler than you think.

  -- GG

_______________________________________________
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


  • Follow-Ups:
    • Re: Moving Xcode Projects
      • From: Neil <email@hidden>
  • Prev by Date: Re: Update the group & file list?
  • Next by Date: Release Notes for Xcode 3.1.1
  • Previous by thread: Re: Moving Xcode Projects
  • Next by thread: Re: Moving Xcode Projects
  • Index(es):
    • Date
    • Thread