I’m getting the same error. XCode 11.3, but I used CMake on CLion 2019.3.
Changing #include <AudioUnit/AudioUnit.r>
to #include <AudioUnit.r>
fixed it for me as well.
Error before:
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /..../Project/Builds/CLion
failed to find AUComponent/AUComponent.r
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.r:18: ### Rez - noErr (0) during open of "AUComponent.r".
Fatal Error!
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.r:18: ### Rez - Fatal Error, can't recover.
AUComponent.r: ### Rez - Since errors occurred, /..../Project/Builds/CLion/cmake-build-debug/SquipJuceProject.rsrc's resource fork was not completely updated.
-- Configuring done
-- Generating done
-- Build files have been written to: /..../Project/Builds/CLion/cmake-build-debug
[Finished]
This was a fresh project.
Note: This happens on master as well as on develop
|errFSBadFSRef|-1401|An FSRef parameter was invalid. There are several possible causes:
The parameter was not optional, but the pointer was NULL.
The volume reference number contained within the FSRef does not match a currently mounted volume. This can happen if the volume was unmounted after the FSRef was created.
Some other private field inside the FSRef contains a value that could never be valid. If the field value could be valid, but doesn’t happen to match the existing volume or in-memory structures, a “not found” error would be returned instead.
I have the same problem. The solution of renaming #include <AudioUnit/AudioUnit.r> to #include <AudioUnit.r> doesn’t apply for me as it is already #include <AudioUnit.r> . I tried to create a new project in the home folder but still doesn’t build.
ERROR: errFSBadFSRef
Command ResMergerCollector failed with a nonzero exit code