Build Fails for MacOs app on Unreal Engine 5 in a Mac M1 Pro

So this is the fix, I hope it helps you.

I think TARGET is the name of your project.
TARGET_SUFFIX would be something like -Mac-Shipping if applicable.
CONTENTS_PATH should be the Exec.app/Contents

This example is fixing for FMOD, but you can run this for every dependency you have.

EXECUTABLE=${CONTENTS_PATH}/MacOS/${TARGET}${TARGET_SUFFIX}
echo “Fixing FMOD dylibs: install_name_tool -add_rpath @executable_path/…/UE4/${TARGET}${TARGET_SUFFIX}/Plugins/FMODStudio/Libs/Mac ${EXECUTABLE}”
install_name_tool -add_rpath @executable_path/…/UE4/“${TARGET}”/Plugins/FMODStudio/Libs/Mac “${EXECUTABLE}”

1 Like