• 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
Xcode 4 Preference for Children Paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 4 Preference for Children Paths


  • Subject: Xcode 4 Preference for Children Paths
  • From: Brian Barnes <email@hidden>
  • Date: Thu, 01 Mar 2012 19:57:02 -0500

This one took me a while to figure out, and it seems that Xcode prefers headers and sources to be children of the project file.  Most of my projects (as they are cross platform) and most open source projects look like this:

root
--sources
----.c/.h files
--projects
----xcode
------project file
----msvc (etc)

Xcode 4 prefers this:

root
--xocde
----project file
----sources
------.c/.h files

This second one is obviously bad as you don't want to duplicate all your sources files.

What's happening is Xcode 4 likes to set paths to "relative to group", and *assumes* when importing that the group reflects the setup.  Why older Xcode 3 projects work is the groups have a blank path, and then the "relative to group" acts like "relative to project."  This was the key that took me a while to deduce.

Not sure what the good fix for this would be, but I'm thinking that if you import files and do NOT select the "create groups/directories" or "move files", the files should default to "relative to project."

[>] Brian


 _______________________________________________
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: Xcode 4 Preference for Children Paths
      • From: Joar Wingfors <email@hidden>
  • Prev by Date: Re: Xcode - An Apple Embarrassment
  • Next by Date: Re: Xcode - An Apple Embarrassment
  • Previous by thread: Re: Provisioning profile is expiring warning
  • Next by thread: Re: Xcode 4 Preference for Children Paths
  • Index(es):
    • Date
    • Thread