Command Rez failed with a nonzero exit code

I used this command to duplicate an Example
python3 duplicate.py IPlugMidiEffect MyMidiPlugin MyManufacturerName

Then i built my plugin here. I was able to generate auv2 file however i think i had faced similar issues (that I m going to outline) back then too but i cant remember what i had done.

Then I duplicated this duplicated plugin like this
python3 duplicate.py MyMidiPlugin Riff Scribbletune

In this one i can build for macOS-APP, i m not able to build AUv2 as i get
Command Rez failed with a nonzero exit code

The complete error is

Rez /Users/walmik/Library/Developer/Xcode/DerivedData/Riff-abbskifxlygplbfzzjkuljwjefgx/Build/Intermediates.noindex/Riff-macOS.build/Debug/AU.build/ResourceManagerResources/Objects/IPlugAU.rsrc /Users/walmik/Github/iPlug2/IPlug/AUv2/IPlugAU.r (in target 'AU' from project 'Riff-macOS')
    cd /Users/walmik/Github/iPlug2/Examples/Riff/projects
    /Applications/Xcode.app/Contents/Developer/usr/bin/Rez -o /Users/walmik/Library/Developer/Xcode/DerivedData/Riff-abbskifxlygplbfzzjkuljwjefgx/Build/Intermediates.noindex/Riff-macOS.build/Debug/AU.build/ResourceManagerResources/Objects/IPlugAU.rsrc -d SystemSevenOrLater\=1 -useDF -script Roman -d ppc_\$ppc -d i386_\$i386 -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -I \$CA_SDK/AudioUnits/AUPublic/AUBase -arch arm64 -i /Users/walmik/Library/Developer/Xcode/DerivedData/Riff-abbskifxlygplbfzzjkuljwjefgx/Build/Products -i /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Versions/A/Headers -i \$CA_SDK/AudioUnits/AUPublic/AUBase -i /Users/walmik/Library/Developer/Xcode/DerivedData/Riff-abbskifxlygplbfzzjkuljwjefgx/Build/Products -i /Users/walmik/Library/Developer/Xcode/DerivedData/Riff-abbskifxlygplbfzzjkuljwjefgx/Build/Products/include -i ../../../IGraphics -i ../../../IGraphics/Controls -i ../../../IGraphics/Platforms -i ../../../IGraphics/Drawing -i ../../../IGraphics/Extras -i ../../../Dependencies/IGraphics/NanoSVG/src -i ../../../Dependencies/IGraphics/NanoVG/src -i ../../../Dependencies/IGraphics/MetalNanoVG/src -i ../../../Dependencies/Build/mac/include -i ../../../Dependencies/Build/mac/include/freetype2 -i ../../../Dependencies/IGraphics/STB -i ../../../Dependencies/Build/src/skia -i ../../../Dependencies/IGraphics/yoga -i ../../../Dependencies/IGraphics/yoga/yoga -i /Users/walmik/Github/iPlug2/Examples/Riff/projects/.. -i ../../../WDL -i ../../../WDL/swell -i ../../../IPlug -i ../../../IPlug/Extras -i ../../../IPlug/Extras/Synth -i ../../../IPlug/Extras/OSC -i ../../../IPlug/Extras/HIIR -i ../../../Dependencies/IPlug/RTAudio -i ../../../Dependencies/IPlug/RTMidi -i ../../../Dependencies/Extras/nlohmann -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk /Users/walmik/Github/iPlug2/IPlug/AUv2/IPlugAU.r

/Users/walmik/Github/iPlug2/IPlug/AUv2/IPlugAU.r:110: ### Rez - Literal overflow.
/Users/walmik/Github/iPlug2/IPlug/AUv2/IPlugAU.r:110: ### Rez - Expected ';', ',' or '}', but got identifier (cbaa)
/Users/walmik/Github/iPlug2/IPlug/AUv2/IPlugAU.r:110: ### Rez - Invalid number.
/Users/walmik/Github/iPlug2/IPlug/AUv2/IPlugAU.r:110: ### Rez - Literal spans lines.
/Users/walmik/Github/iPlug2/IPlug/AUv2/IPlugAU.r:111: ### Rez - Literal overflow.
/Users/walmik/Github/iPlug2/IPlug/AUv2/IPlugAU.r:111: ### Rez - Literal spans lines.
/Users/walmik/Github/iPlug2/IPlug/AUv2/IPlugAU.r: ### Rez - Since errors occurred, /Users/walmik/Library/Developer/Xcode/DerivedData/Riff-abbskifxlygplbfzzjkuljwjefgx/Build/Intermediates.noindex/Riff-macOS.build/Debug/AU.build/ResourceManagerResources/Objects/IPlugAU.rsrc's resource fork was not completely updated.
Command Rez failed with a nonzero exit code

If i try to clean build folder i get

Error while cleaning build folder, could not move '/Users/walmik/Library/Audio/Plug-Ins/Components' to '/var/folders/j_/n6_15spx0wgg3ghn9tf7_3b40000gn/T/TemporaryItems/NSIRD_XCBBuildService_ibGCPl/CleanBuildFolderInProgress': “Components” couldn’t be moved because you don’t have permission to access “NSIRD_XCBBuildService_ibGCPl”. (You don’t have permission.)

Has anyone faced this issue? Kindly advise if you can see what I could be doing wrong.

I was able to solve this… it was a silly mistake on my part. I was using a value more than 4 characters long for PLUG_UNIQUE_ID and PLUG_MFR_ID… it needed to be exact 4 characters long. After making this change, i was able to build for AUv2.

1 Like