Nat! bio photo

Nat!

Senior Mull.

Twitter RSS

Github

Stupid Rez Hang and its fix

In Xcode the build of my little AudioUnit project hang at the Rez step. The Rez step ? Yeah, MacOS 9 is alive and well in the CoreAudio/QuickTime parts of Mac OS X. You define little four character constants, that are rezzed into your component, because - I don't know - plists are too cumbersome ?

Anyway for unfathomable reasons Rez didn't want to compile my resource file anymore. It entered a death loop of lseek and read and never returned.

nat$ cd /Volumes/Source/srcI/TestAU
aden:/Volumes/Source/srcI/TestAU nat$ /Developer/Tools/Rez -o /Library/Developer/BuildArea/TestAU.build/Development/TestAU.build/ResourceManagerResources/Objects/TestAU-2BC77829.rsrc -d SystemSevenOrLater=1 -useDF -script Roman -progress -d ppc_YES -d i386_$i386 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I /Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase -arch ppc -i /Volumes/Source/srcI/TestAU/build/Development -i /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -i /Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase -i /Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase -i /Developer/Examples/CoreAudio/AudioUnits/AUPublic/Utility -i /Volumes/Source/srcI/TestAU/Crude\ Effects -i /Developer/Examples/CoreAudio/AudioUnits/AUPublic/OtherBases -i /Volumes/Source/srcI/TestAU/Foo -i /Developer/Examples/CoreAudio/PublicUtility -i /Volumes/Source/srcI/TestAU/Crude\ Effects/Tests -i /Volumes/Source/srcI/TestAU/build/Development -i /Volumes/Source/srcI/TestAU/build/Development/include /Volumes/Source/srcI/TestAU/TestAU.r
/Developer/Tools/Rez V3.6B1
Copyright Apple Computer, Inc. 1986-2000

looking for /Volumes/Source/srcI/TestAU/TestAU.r
looking for /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.r
...reading from /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.r
looking for /System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.r
...reading from /System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.r
looking for /Volumes/Source/srcI/TestAU/ConditionalMacros.r
looking for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ConditionalMacros.r
...reading from /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ConditionalMacros.r
^C
And then there it just hangs This has happened before exactly the same way and in a similiar way to others , but there was no good solution for my problem in those mail threads.

The way I "fixed" it , was to run the command with sudo. Yeah that's voodoo, but it worked.

aden:/Volumes/Source/srcI/TestAU nat$ sudo /Developer/Tools/Rez -o /Library/Developer/BuildArea/TestAU.build/Development/TestAU.build/ResourceManagerResources/Objects/TestAU-2BC77829.rsrc -d SystemSevenOrLater=1 -useDF -script Roman -progress -d ppc_YES -d i386_$i386 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I /Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase -arch ppc -i /Volumes/Source/srcI/TestAU/build/Development -i /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -i /Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase -i /Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase -i /Developer/Examples/CoreAudio/AudioUnits/AUPublic/Utility -i /Volumes/Source/srcI/TestAU/Crude\ Effects -i /Developer/Examples/CoreAudio/AudioUnits/AUPublic/OtherBases -i /Volumes/Source/srcI/TestAU/Foo -i /Developer/Examples/CoreAudio/PublicUtility -i /Volumes/Source/srcI/TestAU/Crude\ Effects/Tests -i /Volumes/Source/srcI/TestAU/build/Development -i /Volumes/Source/srcI/TestAU/build/Development/include /Volumes/Source/srcI/TestAU/TestAU.r
/Developer/Tools/Rez V3.6B1
Copyright Apple Computer, Inc. 1986-2000

looking for /Volumes/Source/srcI/TestAU/TestAU.r
looking for /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.r
...reading from /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.r
looking for /System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.r
...reading from /System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.r
looking for /Volumes/Source/srcI/TestAU/ConditionalMacros.r
looking for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ConditionalMacros.r
...reading from /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ConditionalMacros.r
...returning to /System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.r
etc.