Hello. we have an issue with FMOD (2.02.13 version) on an Unreal project with MacOS build. Th paths are incorrect after packaging the build to TestFlight, maybe you can help us with this question.
We’ve tried several things which usually resolve such issues - for example we’ve tried the following command:
install_name_tool -add_rpath @executable_path/…/Unreal/YourGame/Plugins/FMODStudio/Libs/Mac /Path/To/YourGame.app/Contents/MacOS/YourGame
The problem is that after packaging, we have the following paths for the FMOD library (please refer to the attached file). We have removed, added, and changed the rpath entries, but the build from TF still cannot load the library.
In our experience usually this command " install_name_tool-add_rpath " is sufficient to fix such stuff, however it doesn’t help somehow this time
This is an example of rpaths when we assemble the build (and it works) without packing it for TF:
otool -l /Users/developerplayjoy/Documents/BuildsMac/ShipBuild/Mac/Sycamore-Mac-Shipping.app/Contents/MacOS/Sycamore-Mac-Shipping | grep -A2 LC_RPATH
cmd LC_RPATH
cmdsize 32
path @loader_path/ (offset 12)
cmd LC_RPATH
cmdsize 32
path @executable_path/ (offset 12)
–
cmd LC_RPATH
cmdsize 40
path @executable_path/…/…/…/ (offset 12)
cmd LC_RPATH
cmdsize 104
path @loader_path/../../../../../../../FortSolisMacosEngine/Engine/Plugins/FMODStudio/Libs/Mac (offset 12)
–
cmd LC_RPATH
cmdsize 72
path @loader_path/…/UE/Engine/Plugins/FMODStudio/Libs/Mac (offset 12)
cmd LC_RPATH
cmdsize 80
path @loader_path/../../../../../../Engine/Plugins/FMODStudio/Libs/Mac (offset 12)
–
cmd LC_RPATH
cmdsize 112
path @loader_path/…/…/…/…/…/…/…/FortSolisMacosEngine/Engine/Binaries/ThirdParty/Intel/TBB/Mac (offset 12)
cmd LC_RPATH
cmdsize 72
path @loader_path/../UE/Engine/Binaries/ThirdParty/Intel/TBB/Mac (offset 12)
–
cmd LC_RPATH
cmdsize 88
path @loader_path/…/…/…/…/…/…/Engine/Binaries/ThirdParty/Intel/TBB/Mac (offset 12)
cmd LC_RPATH
cmdsize 104
path @loader_path/../../../../../../../FortSolisMacosEngine/Engine/Binaries/ThirdParty/Ogg/Mac (offset 12)
–
cmd LC_RPATH
cmdsize 72
path @loader_path/…/UE/Engine/Binaries/ThirdParty/Ogg/Mac (offset 12)
cmd LC_RPATH
cmdsize 80
path @loader_path/../../../../../../Engine/Binaries/ThirdParty/Ogg/Mac (offset 12)
–
cmd LC_RPATH
cmdsize 112
path @loader_path/…/…/…/…/…/…/…/FortSolisMacosEngine/Engine/Binaries/ThirdParty/Vorbis/Mac (offset 12)
cmd LC_RPATH
cmdsize 72
path @loader_path/../UE/Engine/Binaries/ThirdParty/Vorbis/Mac (offset 12)
–
cmd LC_RPATH
cmdsize 88
path @loader_path/…/…/…/…/…/…/Engine/Binaries/ThirdParty/Vorbis/Mac (offset 12)
Also as far as we know, this issue was already fixed in older versions of FMOD and this shouldn’t have been an issue in the first place