Linker error with FMOD Studio Unity iOS fmodstudio11009_v2_patch2

#1

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

#2

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

#3

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
#4

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

Thanks for your kind assistance
Matteo

#5

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.