• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 25 Jul 2006 08:04:18 -0700


On Jul 25, 2006, at 6:14 AM, René van Amerongen wrote:

I'v been trying to track down a issue with XCode and #import files.


lets say I have

/../../debugUnit/myDebug.h

/../../debugUnit/myDefUnitSettings.h


/myProject/myHeader.h

/myProject/myClass.m

/myProject/myDefUnitSettings.h <-= is a copy from debugMacro/myDefDebugSettings.h and placed in myProject

/../../debugUnit/myDebug.h <-= is just inserted


inside /../../debugUnit/myDebug.h I do have #import "myDefUnitSettings.h"

inside /myProject/myHeader.h I do have #import "myDebug.h"


XCode accepts my changes which I made in /myProject/myDefDebugSettings.h. But still use /../../debugUnit/myDefDebugSettings.h

It drove me nuts why my changes in some macro's didn't work ( any more ).

If this intended, wouldn't be nice if XCode has the order to search first what's inside the project and then searches in association with the original source file.

Or is there any setting who can settle this?


What are your User Search Paths in your target?
If you put $(SRCROOT)/../../debugUnit/ as the first entry in User Search Paths this should work.

The compiler, if not instructed to do otherwise, will always prefer the header file in the same directory as the source file it's compiling.

Chris

 _______________________________________________
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: 
 >(no subject) (From: RenĂ© van Amerongen <email@hidden>)

  • Prev by Date: Re: How to set the tab order?
  • Next by Date: Re: Who do I contact about the ms compatible inline assembler?
  • Previous by thread: #import association Path
  • Next by thread: GDB internal error, known?
  • Index(es):
    • Date
    • Thread