I finally found the time to look into JUCE 4, downloaded the 4.2.4 and installed it on a fresh (JUCE/XCode wise) system.
Opened the plugin demo project and tried to compile it, which works fine for everything (VST2, VST3, AU3) except for AU plugins. When I select to not build an AU from the project, everything compiles OK. When I select to build an AU from the project, XCode constantly spits Rez error #3 at me.
The trouble seems to be that it can’t find the AppConfig.h file.
Please believe me, I did search all across this board and Google, I found threads from many years back with similar issues. Some old threads here pointed to rawmaterialsoftware.com but that domain seems to have disappeared. Anyway, I jumped through all the hoops the best I (not a veteran Xcode developer) could, attempted all the fixes I could find and think of, these are the ones I remember:
Install AudioUnits SDK. I put it in /Developer/Extras, /Applications/XCode/Contents/Developer/Extras/ etc. and all over the place, with and without SymLinks. I know that JUCE 4 comes with the AU SDK, but I wanted to be extra sure.
Confirm that AudioUnits.framework is in “Linked Frameworks and Libraries”
Check that the file actually exists (it does)
Install and select older OSX SDKs (inside the XCode.app/) and use an older base SDK, select another target platform. Tried with all the SDKs I have installed (10.7-10.12)
Use different Rez flags
Select Data Fork
Define folder containing AppConfig.h in ProJucer debug/release build options (“header search paths”, “Custom Xcode Resource Folders”)
Define folder containing AppConfig.h in XCode all over the place (Rez search paths, header search paths, user header search paths, …)
Included AppConfig.h even in Introjucer project so that it shows up in XCode in the JuceDemoPlugin source folder.
But nothing works, all builds constantly fail with Rez error 3.
Can anyone tell me what I’m doing wrong?
This is the error message it spits out:
/Developer/SDKs/JUCE4/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU.r:35: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - SysError 0 during open of "AppConfig.h". Fatal Error! /Developer/SDKs/JUCE4/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU.r:35: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Fatal Error, can't recover. AppConfig.h: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Since errors occurred, /Users/rob/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-fhjyipguranlcndoakkzkqdngvls/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin (AU).build/ResourceManagerResources/Objects/juce_audio_plugin_client_AU.rsrc's resource fork was not written. Command /Applications/Xcode.app/Contents/Developer/usr/bin/Rez failed with exit code 3
Move the project directory outside of the /Developer/ folder.