Linker error with FMOD Studio Unity iOS fmodstudio11009_v2_patch2

When building for iOS with fmodstudio11009_v2_patch2.unitypackage integrated I get this build error:

10:59:35 Undefined symbols for architecture arm64:
10:59:35 “_FMOD5_DSP_GetCPUUsage”, referenced from:
10:59:35 _DSP_getCPUUsage_m2393373990_AdjustorThunk in Bulk_Assembly-CSharp-firstpass_0.o
10:59:35 _DSP_FMOD5_DSP_GetCPUUsage_m2524030428 in Bulk_Assembly-CSharp-firstpass_0.o
10:59:35 (maybe you meant: _DSP_FMOD5_DSP_GetCPUUsage_m2524030428)
10:59:35 ld: symbol(s) not found for architecture arm64
10:59:35 clang: error: linker command failed with exit code 1 (use -v to see invocation)

If I downgrade to fmodstudio10917_v2.unitypackage, I am able to build successfully.

xcode version = 8.1
iphoneos-version-min = 9.2

same here / latest Xcode (10.1)
commenting out CPUUsage method/s from wrapper allows it to link and run

This does appear to be a bug in the integration, and has already been fixed for the next release. In the meantime, to work around this you can do as Martin mentioned and comment out the GetCPUUsage function from the wrapper.

2 Likes

Hello there,
the bus is still present in integration version 1.10.12, the workaround works fine.

Thanks for your kind assistance
Matteo

This bug was fixed 1.10.10, if you are still experiencing issues I would delete the currently installed integration files and import a fresh version.

Could this bug have returned in FMOD 2.0 ?

I am using FMOD Unity Integration (& Studio) 2.00.05

Just freshly imported the Unity plugin today.

Undefined symbols for architecture arm64:
"_FMOD_Studio_EventInstance_GetCPUUsage", referenced from:
    _EventInstance_FMOD_Studio_EventInstance_GetCPUUsage_mA23E8C6222C0442D43191A6A9D7758B56518AF36 in Plugins.FMOD1.o
    (maybe you meant: _EventInstance_FMOD_Studio_EventInstance_GetCPUUsage_mA23E8C6222C0442D43191A6A9D7758B56518AF36)
"_FMOD_Studio_Bus_GetCPUUsage", referenced from:
    _Bus_FMOD_Studio_Bus_GetCPUUsage_m04E96113EBDD1B696BD1019D0EC5EDC6628062BC in Plugins.FMOD1.o
    (maybe you meant: _Bus_FMOD_Studio_Bus_GetCPUUsage_m04E96113EBDD1B696BD1019D0EC5EDC6628062BC)

libfmodstudiounityplugin.a is copied to XCode under Libraries/Plugins/FMOD/lib/ios

This is a bug in the 2.00.05 integration, it has been fixed and will go out in the next release.

Installed 2.00.05 integration in our project and ran into this! Is the fastest workaround to roll back the project to before integration and add a working integration or is there some other way?

edit. So this bug is not present in 2.00.04?

This is a bug in 2.00.05, you can either roll back to 2.00.04 or update to 2.00.06.

Cool, thanks!