-------
UPDATE: I was specifying Plugin AU Main Type as: aufx . Apparently it didn't like that very much. But by removing the specification, the Rez error disappeared and it started building again. Still strange that this didn't cause a problem before. I got the inspiration for the change from this link: http://sample-hold.com/2011/11/23/getting-started-with-audio-units-on-os-x-lion-and-xcode-4-2-1/
Moral of the story is, don't specify a AU Type unless you know its something super fancy. And if you're not a complete bafoon who can't read tool tips like yours truly, there's a suggestion in the introjucer to leave it blank unless you want to use a custom value. I hope that helps others.
-------
I have a phantom Rez error that is persistently creeping into my audio plugin Xcode project. I have had to rebuild my plugin from scratch several times, piece by piece to see when/where it suddenly breaks. Yesterday, I successfully built a working plugin with a few GUI elements and no meddling with the processBlock(). I added a few things piece by piece, building every now and again to see if something that I was doing was introducing the error. Things were looking good. It was building fine. My changes were refelcted in the built component. Life was good... I stopped working on it last night, I saved and closed the computer, wok up today, I went to work, came home and ate dinner, opened up the laptop, tried to build the project which was unaltered since it had built successfully the night before, and then....
/Applications/Xcode.app/Contents/Developer/Extras/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r:83: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Badly formed expression./Users/jburns/JUCE-Projects/MultiCorrelator/Builds/MacOSX/../../JuceLibraryCode/modules/juce_audio_plugin_client/AU/juce_AU_Resources.r: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Since errors occurred, /Users/jburns/Library/Developer/Xcode/DerivedData/MultiCorrelator-ghzjsikklsbnmlebqfensmtbxsqc/Build/Intermediates/MultiCorrelator.build/Debug/MultiCorrelator.build/ResourceManagerResources/Objects/juce_AU_Resources.rsrc's resource fork was not written.Command
/Applications/Xcode.app/Contents/Developer/usr/bin/Rez failed with exit code 2
line 83 is in RES_ID and it just says COMP_TYPE. this issue keeps popping up every so often, for no apparent reason.
I have read the plethora of posts regarding this issued beginning around late 2012. The closest allusion to something similar to exit code 2 was someone saying that in "Build Carbon Resources" the project included one too many files. Since I created a fresh project yesterday, I only have VST and AU checked off in my .jucer file. Perhaps purposefully, the Introjucer insists on including 'juce_RTAS_MacResources.r' along with 'juce_AU_Resources.r'. I don't know if it necessary or not, but deleting the [RTAS.r] doesn't fix the error anyway. I am certain I have the CoreAudio files in the correct location. And I am certain that NOTHING could have changed about my project overnight with the computer sleeping and untouched.
Has anyone encountered recurring Rez errors such as this for no apparent reason. Maybe someone has successfully and permanently conquered this issue?
I'm using Xcode 4.6.3 and for external hardware reasons I am betrothed to OS 10.7.5 for the moment. I really hope someone's suggested fix for this issue isn't: get Maverics and Xc5 (which is certainly something I have considered.)
It built yesterday, then 24 hours later without being touched, its permanently tainted with the Rez error. Anyone got a hint?