• 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: Rez tool not using SDKROOT_i386 & SDKROOT_ppc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rez tool not using SDKROOT_i386 & SDKROOT_ppc


  • Subject: Re: Rez tool not using SDKROOT_i386 & SDKROOT_ppc
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 27 Jul 2007 11:02:22 -0700


On Jul 27, 2007, at 10:16 AM, Eric Gorr wrote:

As near as I can determine, while building a project in Xcode, the Rez tool will ignore the SDKROOT_i386 & SDKROOT_ppc build settings and will instead always look in /System/Library/Frameworks for things like Carbon.r, etc.


Is this correct?


For those who are interested, there is a workaround for what I would consider to be a bug -


Set 'Other Rez Flags' to: $(REZ_FRAMEWORK_PATH_$(CURRENT_ARCH))


Then, define two custom build settings:


REZ_FRAMEWORK_PATH_i386 = -F /path/to/framework

REZ_FRAMEWORK_PATH_ppc = -F /path/to/framework


and set them to the framework path you wish to use with the -F flag.


If you want to see where Rez is finding things like Carbon.r, add the '-p' flag to the 'Other Rez Flags' build setting. Doing so will generate a lot of errors (why, I do not know...another bug?), but you will be able to see in the build results exactly what Rez is doing.


Rez in Xcode 2.4.1 and earlier isn't passed SDKROOT at all; this has been fixed in Xcode 2.5 and later.  Your solution is the correct one for Xcode 2.4.1 and earlier.

As for architectures, there is only one Resources folder, not separate ones per architecture, and the ResourceManager Resources build phase is only run once; it doesn't iterate over the ARCHS values (or Debug and Profile build variants or anything else). So if you're using per-architecture SDKROOT values, you have to make sure that there's one for "SDKROOT_" (no architecture) for use with Rez. 

NB To set Rez -p, you can just check the "Show Diagnostic Output" checkbox.  Rez has historically not used a parseable format for its diagnostic output so the Build Results window can't tell the diagnostic spew from errors (the same is true of /bin/sh -x and other tool diagnostics).

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: 
 >Rez tool not using SDKROOT_i386 & SDKROOT_ppc (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: distcc incompatible between different OS builds
  • Next by Date: Re: distcc incompatible between different OS builds
  • Previous by thread: Rez tool not using SDKROOT_i386 & SDKROOT_ppc
  • Next by thread: Sending message to Objective-C object from C file
  • Index(es):
    • Date
    • Thread