Copy banks for platform iOS

When I first attempted to use FMOD in Unity I was able to solve some loading errors using this thread: Help! Banks not loading. I think i messed up my FMOD settings (The Desktop/Desktop issue by using specified banks in initialization).

Now when doing a cloud build for iOS I’m getting similar errors. Here’s the build summary:

Summary: 12 warnings, 2 errors:

ERRORS:

[error] [2023-12-02T19:56:47Z - Unity] ERROR: FMOD Studio: copy banks for platform iOS : copying banks from Assets/Audio/Desktop to /opt/workspace/workspace/hilster.oncoming-drift.default-ios/Assets/StreamingAssets

[error] [2023-12-02T19:56:47Z - Unity] FMODUnity.RuntimeUtils:DebugLogErrorFormat (string,object[]) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:588)

[important] [2023-12-02T19:56:03Z - Unity] Initialize engine version: 2022.3.8f1 (b5eafc012955)

[warning] [2023-12-02T19:56:37Z - Unity] Assets/FirstGearGames/SmoothCameraShaker/Scripts/ShakerInstance.cs(232,22): warning CS0414: The field 'ShakerInstance._first' is assigned but its value is never used

[warning] [2023-12-02T19:56:37Z - Unity] Assets/FirstGearGames/SmoothCameraShaker/Scripts/ShakerInstance.cs(232,22): warning CS0414: The field 'ShakerInstance._first' is assigned but its value is never used

[error] [2023-12-02T19:56:47Z - Unity] ERROR: FMOD Studio: copy banks for platform iOS : copying banks from Assets/Audio/Desktop to /BUILD_PATH/hilster.oncoming-drift.default-ios/Assets/StreamingAssets

[error] [2023-12-02T19:56:47Z - Unity] FMODUnity.RuntimeUtils:DebugLogErrorFormat (string,object[]) (at Assets/Plugins/FMOD/src/RuntimeUtils.cs:588)

[warning] [2023-12-02T19:56:47Z - Unity] EXCEPTION: DirectoryNotFoundException: Could not find a part of the path "/BUILD_PATH/hilster.oncoming-drift.default-ios/Assets/Audio/Desktop/Desktop/Master.bank".

[warning] [2023-12-02T19:56:47Z - Unity] DirectoryNotFoundException: Could not find a part of the path "/BUILD_PATH/hilster.oncoming-drift.default-ios/Assets/Audio/Desktop/Desktop/Master.bank".

[warning] [2023-12-02T19:56:49Z - Unity] Assets/FirstGearGames/SmoothCameraShaker/Scripts/ShakerInstance.cs(232,22): warning CS0414: The field 'ShakerInstance._first' is assigned but its value is never used

[warning] [2023-12-02T19:56:49Z - Unity] Assets/FirstGearGames/SmoothCameraShaker/Scripts/ShakerInstance.cs(232,22): warning CS0414: The field 'ShakerInstance._first' is assigned but its value is never used

[warning] [2023-12-02T19:56:52Z - Unity] Shader warning in 'Hidden/PostProcessing/Debug/Waveform': Hidden/PostProcessing/Debug/Waveform shader is not supported on this GPU (none of subshaders/fallbacks are suitable)

[warning] [2023-12-02T19:56:52Z - Unity] Shader warning in 'Hidden/PostProcessing/MultiScaleVO': Hidden/PostProcessing/MultiScaleVO shader is not supported on this GPU (none of subshaders/fallbacks are suitable)

[warning] [2023-12-02T19:56:52Z - Unity] Shader warning in 'Hidden/PostProcessing/Debug/Vectorscope': Hidden/PostProcessing/Debug/Vectorscope shader is not supported on this GPU (none of subshaders/fallbacks are suitable)

[warning] [2023-12-02T19:56:52Z - Unity] Shader warning in 'Hidden/PostProcessing/Debug/LightMeter': Hidden/PostProcessing/Debug/LightMeter shader is not supported on this GPU (none of subshaders/fallbacks are suitable)

[warning] [2023-12-02T19:56:52Z - Unity] Shader warning in 'Hidden/PostProcessing/Debug/Histogram': Hidden/PostProcessing/Debug/Histogram shader is not supported on this GPU (none of subshaders/fallbacks are suitable)

[warning] [2023-12-02T19:56:52Z - Unity] Shader warning in 'Hidden/PostProcessing/ScreenSpaceReflections': Hidden/PostProcessing/ScreenSpaceReflections shader is not supported on this GPU (none of subshaders/fallbacks are suitable)

Hi,

What version of the FMOD Integration are you using?

Could you please further elaborate on the issue? What service are you using for cloud building?

I’m using FMOD for Unity 2.02.19 and Unity 2022.3.8f1.

The cloud-building service I’m using is Unity’s DevOps iOS cloud build tool to create automatic versions of my game to playtest on an iPhone. Scalable DevOps Services & Solutions | Unity

I’m building using the builder OS macOS Ventura and Xcode 14.3.1.

Hi,

Thanks for the info.

Where do you have your FMOD Studio banks located in relation to your Unity Project? Could I get a screenshot of your FMOD Integration settings:
image

This is a full view of my FMOD settings.

Hi,

Thank you for the image. If you move the built bank’s location out of the Unity Assets folder could you see if that solves the issue? There have been issues with having the banks within the Unity project.

Hope this helps!

Thanks Connor!

So I moved my SFX out of Assets so now they’re located in a folder named Audio in the games root directory. Seems a bit strange to not have all assets in the assets directory, is there any explanation as to why having them in the Assets folder doesn’t work?

For posterity, after moving all audio to the games root directory I then started to receive this error:

[error] [2023-12-20T19:20:10.577Z] - 7.3.30.2.7.4 - INFO: ❌  ld: '/BUILD_PATH/hilster.oncoming-drift.default-ios/temp20231220-2586-1e3ma21/Libraries/Plugins/FMOD/platforms/ios/lib/libfmodstudiounityplugin.a(libfmodstudio_iphoneos.a-arm64-master.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target.

Refer to Enable Bitcode flag in Unity and set the flag to false to easily fix this error.

1 Like

Hi,

Thank you for sharing the solution