Hello!
I am building an iOS game in Unity and just recently updated both my FMOD studio and FMOD studio Unity integration version from 2.0 to 2.02.15.
I’m running into trouble when attempting to build and run my game in Xcode (version 14.3.1). Everything works perfectly in the editor (and also worked perfectly when building with the older version of FMOD), however each time I attempt a build on my iOS device, the build fails.
So far I’ve attempted:
- Removing and Redownloading FMOD in Unity
- Refreshing my banks from Unity
- Relinking my FMOD project within Unity
- Rebuilding all platforms in FMOD studio
- Changing build locations in Unity (for a new clean build)
- Disabling bitcode in xcode.
When I attempt to build on my iPhone, I get 23 errors (listed below), each of them are an “Undefined symbol:” error:
Link UnityFramework (arm64):
Undefined symbol: _FMOD5_DSP_SetCallback
Undefined symbol: _FMOD5_System_GetDSPInfoByType
Undefined symbol: _FMOD5_Thread_SetAttributes
Undefined symbol: _FMOD_Studio_Bus_GetMemoryUsage
Undefined symbol: _FMOD_Studio_Bus_GetPortIndex
Undefined symbol: _FMOD_Studio_Bus_SetPortIndex
Undefined symbol: _FMOD_Studio_EventDescription_GetMinMaxDistance
Undefined symbol: _FMOD_Studio_EventDescription_GetParameterLabelByID
Undefined symbol: _FMOD_Studio_EventDescription_GetParameterLabelByIndex
Undefined symbol: _FMOD_Studio_EventDescription_GetParameterLabelByName
Undefined symbol: _FMOD_Studio_EventDescription_HasSustainPoint
Undefined symbol: _FMOD_Studio_EventDescription_IsDopplerEnabled
Undefined symbol: _FMOD_Studio_EventInstance_GetMemoryUsage
Undefined symbol: _FMOD_Studio_EventInstance_GetMinMaxDistance
Undefined symbol: _FMOD_Studio_EventInstance_KeyOff
Undefined symbol: _FMOD_Studio_EventInstance_SetParameterByIDWithLabel
Undefined symbol: _FMOD_Studio_EventInstance_SetParameterByNameWithLabel
Undefined symbol: _FMOD_Studio_System_GetMemoryUsage
Undefined symbol: _FMOD_Studio_System_GetParameterLabelByID
Undefined symbol: _FMOD_Studio_System_GetParameterLabelByName
Undefined symbol: _FMOD_Studio_System_SetParameterByIDWithLabel
Undefined symbol: _FMOD_Studio_System_SetParameterByNameWithLabel
Linker command failed with exit code 1 (use -v to see invocation)
When I expand these errors, I get the following:
Undefined symbols for architecture arm64:
"_FMOD5_DSP_SetCallback", referenced from:
_DSP_setCallback_mD5F33AB5C424880562986CA20357CA853FCFFC4E_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_DSP_setCallback_mD5F33AB5C424880562986CA20357CA853FCFFC4E in libGameAssembly.a(wh6txh28tn8w.o)
_DSP_FMOD5_DSP_SetCallback_m4F5D6A2CB94B6F6D2EBEA92AF134DB019ACFA733 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _DSP_FMOD5_DSP_SetCallback_m4F5D6A2CB94B6F6D2EBEA92AF134DB019ACFA733)
"_FMOD5_System_GetDSPInfoByType", referenced from:
_System_getDSPInfoByType_mAA97CC537F238EA8B341E41F8082AC97B2724C80_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_System_getDSPInfoByType_mAA97CC537F238EA8B341E41F8082AC97B2724C80 in libGameAssembly.a(wh6txh28tn8w.o)
_System_FMOD5_System_GetDSPInfoByType_mD89FA7C25254FAA28AD0658837DE74049F983216 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _System_FMOD5_System_GetDSPInfoByType_mD89FA7C25254FAA28AD0658837DE74049F983216)
"_FMOD5_Thread_SetAttributes", referenced from:
_Thread_SetAttributes_mDCC1A1D62E7CF3558B212DB8CCE59F5B5D46897B in libGameAssembly.a(wh6txh28tn8w.o)
_Thread_FMOD5_Thread_SetAttributes_m1C45677AB6AFEFB7B0C6F1E9B6D1AE8553968DEC in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _Thread_FMOD5_Thread_SetAttributes_m1C45677AB6AFEFB7B0C6F1E9B6D1AE8553968DEC)
"_FMOD_Studio_Bus_GetMemoryUsage", referenced from:
_Bus_getMemoryUsage_mF0EB27178E8991DFDF404862BA6784C60EF99357_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_Bus_getMemoryUsage_mF0EB27178E8991DFDF404862BA6784C60EF99357 in libGameAssembly.a(wh6txh28tn8w.o)
_Bus_FMOD_Studio_Bus_GetMemoryUsage_m74DB232C6A217D7CC3ACE256EC81B3E8CEC84522 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _Bus_FMOD_Studio_Bus_GetMemoryUsage_m74DB232C6A217D7CC3ACE256EC81B3E8CEC84522)
"_FMOD_Studio_Bus_GetPortIndex", referenced from:
_Bus_getPortIndex_m4B072A05792711D6C2770D121AA2C304A675583B_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_Bus_getPortIndex_m4B072A05792711D6C2770D121AA2C304A675583B in libGameAssembly.a(wh6txh28tn8w.o)
_Bus_FMOD_Studio_Bus_GetPortIndex_m7A5B1D399926FE1F8E8466323C9E1683D43D3B6C in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _Bus_FMOD_Studio_Bus_GetPortIndex_m7A5B1D399926FE1F8E8466323C9E1683D43D3B6C)
"_FMOD_Studio_Bus_SetPortIndex", referenced from:
_Bus_setPortIndex_m415F10B53AF7643DBC875F6FCA664FB313367243_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_Bus_setPortIndex_m415F10B53AF7643DBC875F6FCA664FB313367243 in libGameAssembly.a(wh6txh28tn8w.o)
_Bus_FMOD_Studio_Bus_SetPortIndex_m8B56C105D0B4E07CB5F05C99C39AA33DF9C47D21 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _Bus_FMOD_Studio_Bus_SetPortIndex_m8B56C105D0B4E07CB5F05C99C39AA33DF9C47D21)
"_FMOD_Studio_EventDescription_GetMinMaxDistance", referenced from:
_EventDescription_getMinMaxDistance_mE654238212BDFC95F39054AA69621A0DD2324E20_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_EventDescription_getMinMaxDistance_mE654238212BDFC95F39054AA69621A0DD2324E20 in libGameAssembly.a(wh6txh28tn8w.o)
_EventDescription_FMOD_Studio_EventDescription_GetMinMaxDistance_mDE8DF8D18CFD5C9975B2F05302FFD3FBF738D3E2 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventDescription_FMOD_Studio_EventDescription_GetMinMaxDistance_mDE8DF8D18CFD5C9975B2F05302FFD3FBF738D3E2)
"_FMOD_Studio_EventDescription_GetParameterLabelByID", referenced from:
_EventDescription_getParameterLabelByID_mB6BF91BCAA96B05B84EF5EF2589D058508BA26D5 in libGameAssembly.a(wh6txh28tn8w.o)
_EventDescription_FMOD_Studio_EventDescription_GetParameterLabelByID_mC5688AC501DCC89333ED8255DF2A21ADD4B3626F in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventDescription_FMOD_Studio_EventDescription_GetParameterLabelByID_mC5688AC501DCC89333ED8255DF2A21ADD4B3626F)
"_FMOD_Studio_EventDescription_GetParameterLabelByIndex", referenced from:
_EventDescription_getParameterLabelByIndex_m0200DCE7D9E2CC78086B94930E2E22AB86795BFC in libGameAssembly.a(wh6txh28tn8w.o)
_EventDescription_FMOD_Studio_EventDescription_GetParameterLabelByIndex_mD98887689974DB57AAF828F56DAD88846FDF22D9 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventDescription_FMOD_Studio_EventDescription_GetParameterLabelByIndex_mD98887689974DB57AAF828F56DAD88846FDF22D9)
"_FMOD_Studio_EventDescription_GetParameterLabelByName", referenced from:
_EventDescription_getParameterLabelByName_m7F41501BDB55CC1A02E7BB682F92727250F351F5 in libGameAssembly.a(wh6txh28tn8w.o)
_EventDescription_FMOD_Studio_EventDescription_GetParameterLabelByName_mFB53EC5E1848E2CC8C5AB76E603DCF38A48C20D5 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventDescription_FMOD_Studio_EventDescription_GetParameterLabelByName_mFB53EC5E1848E2CC8C5AB76E603DCF38A48C20D5)
"_FMOD_Studio_EventDescription_HasSustainPoint", referenced from:
_EventDescription_hasSustainPoint_m58DB60B1B577A996527A12480AD14C037C20A46D_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_EventDescription_hasSustainPoint_m58DB60B1B577A996527A12480AD14C037C20A46D in libGameAssembly.a(wh6txh28tn8w.o)
_EventDescription_FMOD_Studio_EventDescription_HasSustainPoint_m57B2DB13BD573E343C7820ECE66C06E6406D4A5B in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventDescription_FMOD_Studio_EventDescription_HasSustainPoint_m57B2DB13BD573E343C7820ECE66C06E6406D4A5B)
"_FMOD_Studio_EventDescription_IsDopplerEnabled", referenced from:
_EventDescription_isDopplerEnabled_m35AEE9C3D2760FC7B8EBF15BE9482D4941AE4B5E_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_EventDescription_isDopplerEnabled_m35AEE9C3D2760FC7B8EBF15BE9482D4941AE4B5E in libGameAssembly.a(wh6txh28tn8w.o)
_EventDescription_FMOD_Studio_EventDescription_IsDopplerEnabled_mEEBF90B72747BF0390216533B86525E3F268B4FE in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventDescription_FMOD_Studio_EventDescription_IsDopplerEnabled_mEEBF90B72747BF0390216533B86525E3F268B4FE)
"_FMOD_Studio_EventInstance_GetMemoryUsage", referenced from:
_EventInstance_getMemoryUsage_mB505C8F9ED716F09B11AB33BF57A2CF6667EDE5A_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_EventInstance_getMemoryUsage_mB505C8F9ED716F09B11AB33BF57A2CF6667EDE5A in libGameAssembly.a(wh6txh28tn8w.o)
_EventInstance_FMOD_Studio_EventInstance_GetMemoryUsage_m2924DDB54A5C70FE7D8FFA378396A3C4AE0FF00B in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventInstance_FMOD_Studio_EventInstance_GetMemoryUsage_m2924DDB54A5C70FE7D8FFA378396A3C4AE0FF00B)
"_FMOD_Studio_EventInstance_GetMinMaxDistance", referenced from:
_EventInstance_getMinMaxDistance_m68A48C243B65CEEF5E19C8897374418C4FA4BE6B_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_EventInstance_getMinMaxDistance_m68A48C243B65CEEF5E19C8897374418C4FA4BE6B in libGameAssembly.a(wh6txh28tn8w.o)
_EventInstance_FMOD_Studio_EventInstance_GetMinMaxDistance_mDF0B2AC007AACC39E42E7F1AB8EB7A93FA35FAFD in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventInstance_FMOD_Studio_EventInstance_GetMinMaxDistance_mDF0B2AC007AACC39E42E7F1AB8EB7A93FA35FAFD)
"_FMOD_Studio_EventInstance_KeyOff", referenced from:
_EventInstance_keyOff_m8AC2C6F5666FC6AAA8060BE969533424A19EB207_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_EventInstance_keyOff_m8AC2C6F5666FC6AAA8060BE969533424A19EB207 in libGameAssembly.a(wh6txh28tn8w.o)
_EventInstance_FMOD_Studio_EventInstance_KeyOff_m4F35FF1B872CCCA41E2753A2455F2EBE952285D5 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventInstance_FMOD_Studio_EventInstance_KeyOff_m4F35FF1B872CCCA41E2753A2455F2EBE952285D5)
"_FMOD_Studio_EventInstance_SetParameterByIDWithLabel", referenced from:
_EventInstance_setParameterByIDWithLabel_m142172EA6DFDC5E6434C0C786FDCB7F3326E9295 in libGameAssembly.a(wh6txh28tn8w.o)
_EventInstance_FMOD_Studio_EventInstance_SetParameterByIDWithLabel_m42B20E90E7DA01B1A4CEC447DD3C5265967AA68C in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventInstance_FMOD_Studio_EventInstance_SetParameterByIDWithLabel_m42B20E90E7DA01B1A4CEC447DD3C5265967AA68C)
"_FMOD_Studio_EventInstance_SetParameterByNameWithLabel", referenced from:
_EventInstance_setParameterByNameWithLabel_m61EAFFAAA46ACA7DBE30F464FA9E1B3637012DEA in libGameAssembly.a(wh6txh28tn8w.o)
_EventInstance_FMOD_Studio_EventInstance_SetParameterByNameWithLabel_mB78CA9E04DF2A932AC65B5B0D5CD7D29D4F82B8F in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _EventInstance_FMOD_Studio_EventInstance_SetParameterByNameWithLabel_mB78CA9E04DF2A932AC65B5B0D5CD7D29D4F82B8F)
"_FMOD_Studio_System_GetMemoryUsage", referenced from:
_System_getMemoryUsage_m8D47D5138E4EE5235C825770B8298175FD922D49_AdjustorThunk in libGameAssembly.a(wh6txh28tn8w.o)
_System_getMemoryUsage_m8D47D5138E4EE5235C825770B8298175FD922D49 in libGameAssembly.a(wh6txh28tn8w.o)
_System_FMOD_Studio_System_GetMemoryUsage_m8AB2A92895E4F164B1D158649B78FB59CC9CDD74 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _System_FMOD_Studio_System_GetMemoryUsage_m8AB2A92895E4F164B1D158649B78FB59CC9CDD74)
"_FMOD_Studio_System_GetParameterLabelByID", referenced from:
_System_getParameterLabelByID_m9B49CC80956F96AC28024741AC5DBCA8E06083ED in libGameAssembly.a(wh6txh28tn8w.o)
_System_FMOD_Studio_System_GetParameterLabelByID_mFC38B3943797F7FB91A2989C97024455FDD30A69 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _System_FMOD_Studio_System_GetParameterLabelByID_mFC38B3943797F7FB91A2989C97024455FDD30A69)
"_FMOD_Studio_System_GetParameterLabelByName", referenced from:
_System_getParameterLabelByName_m61EE74D001230BA985F7F141C129626C2E6F3F04 in libGameAssembly.a(wh6txh28tn8w.o)
_System_FMOD_Studio_System_GetParameterLabelByName_mCFD6A859F0D49B6624EDFF6D4EDDCCB185BB3D13 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _System_FMOD_Studio_System_GetParameterLabelByName_mCFD6A859F0D49B6624EDFF6D4EDDCCB185BB3D13)
"_FMOD_Studio_System_SetParameterByIDWithLabel", referenced from:
_System_setParameterByIDWithLabel_mF51B63FF61D5F7AD57FEE953E4A78CB94EED01B9 in libGameAssembly.a(wh6txh28tn8w.o)
_System_FMOD_Studio_System_SetParameterByIDWithLabel_m2434FCF34808C2DE65FB597A6D74B452BC156189 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _System_FMOD_Studio_System_SetParameterByIDWithLabel_m2434FCF34808C2DE65FB597A6D74B452BC156189)
"_FMOD_Studio_System_SetParameterByNameWithLabel", referenced from:
_System_setParameterByNameWithLabel_m6AD4D6D4E3CCCD403CA69C03A16E2BD111974762 in libGameAssembly.a(wh6txh28tn8w.o)
_System_FMOD_Studio_System_SetParameterByNameWithLabel_mB94B2C544E139492758EE93980D951E4560344C1 in libGameAssembly.a(wh6txh28tn8w.o)
(maybe you meant: _System_FMOD_Studio_System_SetParameterByNameWithLabel_mB94B2C544E139492758EE93980D951E4560344C1)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help figuring this out would be greatly appreciated!