• 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
Symlinking headers instead of copying them?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Symlinking headers instead of copying them?


  • Subject: Symlinking headers instead of copying them?
  • From: leenoori <email@hidden>
  • Date: Thu, 26 Oct 2006 14:11:47 +0200

I stick my apps and frameworks in a shared built products location. Sometimes when I am working inside an app I select a symbol, hit Command-D to jump to the definition, and if I edit the file containing the definition I find that I am inadvertently editing:

$(TARGET_BUILD_DIR)/path_to_headers/a_header.h

If I later do a clean+build, the changes get overwritten because the framework is rebuilt and uses the older, unedited header at:

framework_source_root/a_header.h

So I am wondering if there is a way to get Xcode to symlink these header files instead of literally copying them. They are not for distribution to customers, so I don't need actual copies in the framework. I doubt there's any build setting that would make Xcode do this but I wonder if there's a way I could do it from a shell script build phase; the trouble is, how do I dynamically get a list of the project/private/public headers from within a shell script? I don't want to hardcode the header names and paths.

I guess another alternative is to change my header search paths so that instead of looking in the built copy of the framework, Xcode looks directly in the source directories for the respective frameworks. Hopefully then when I do a Command-D I'll be taken to the copy of the file that I really want to edit. The only problem I see with this method is that it will require a bit more work manually maintaining my header search paths instead of just pointing them at TARGET_BUILD_DIR...

Any other suggestions?

_______________________________________________
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: Symlinking headers instead of copying them?
      • From: Scott Tooker <email@hidden>
  • Prev by Date: Problem with STL map when running on both PPC and Intel platforms
  • Next by Date: Mac fkeys
  • Previous by thread: Re: Problem with STL map when running on both PPC and Intel platforms
  • Next by thread: Re: Symlinking headers instead of copying them?
  • Index(es):
    • Date
    • Thread