# IOS Build cannot find banks

**URL:** <https://qa.fmod.com/t/ios-build-cannot-find-banks/12317>\
**Category:** Unity\
**Created:** [February 18, 2016, 8:53pm UTC](https://qa.fmod.com/t/ios-build-cannot-find-banks/12317 "2016-02-18T20:53:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HANSTUDIOS](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@HANSTUDIOS](https://qa.fmod.com/u/HANSTUDIOS)\
**Post date:** [February 18, 2016, 8:53pm UTC](https://qa.fmod.com/t/ios-build-cannot-find-banks/12317/1 "2016-02-18T20:53:36Z")

</div>

Hello,  
we are trying to build for IOS and getting no sound. In the Log we found that the bank file have to be missing, because no events can be found?

EventNotFoundException: FMOD Studio event not found ‘event:/Music/AmbientMain’  
at GooglePlayDownloader.GetExpansionFilePath () [0x00000] in :0  
at FMODUnity.RuntimeManager.CreateInstance (System.String path) [0x00000] in :0  
at FMOD\_PlayOnEnable.OnEnable () [0x00000] in :0

(Filename: currently not available on il2cpp Line: -1)

In the Editor the sounds are played without problems. The Android build is working fine. We are using Unity 5.3.1f and the latest FMOD version.

Thank you for your help!

Edit: Why FMOD is invoking the GooglePlayDownloader on playing sounds?

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [February 18, 2016, 10:55pm UTC](https://qa.fmod.com/t/ios-build-cannot-find-banks/12317/2 "2016-02-18T22:55:28Z")

</div>

> [@](#):
>
> Hello,  
> we are trying to build for IOS and getting no sound. In the Log we found that the bank file have to be missing, because no events can be found?
> 
> EventNotFoundException: FMOD Studio event not found ‘event:/Music/AmbientMain’  
> at GooglePlayDownloader.GetExpansionFilePath () [0x00000] in :0  
> at FMODUnity.RuntimeManager.CreateInstance (System.String path) [0x00000] in :0  
> at FMOD\_PlayOnEnable.OnEnable () [0x00000] in :0
> 
> (Filename: currently not available on il2cpp Line: -1)
> 
> In the Editor the sounds are played without problems. The Android build is working fine. We are using Unity 5.3.1f and the latest FMOD version.
> 
> Thank you for your help!
> 
> Edit: Why FMOD is invoking the GooglePlayDownloader on playing sounds?

FMOD doesn’t use GooglePlayDownloader at any shape or form. Unity runtime is generating incorrect callstack, perhaps try a development/debugging build. Can you post any error messages from the bank loading stage.

---

<div class="post-metadata">

**Author:** ![HANSTUDIOS](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@HANSTUDIOS](https://qa.fmod.com/u/HANSTUDIOS)\
**Post date:** [February 19, 2016, 6:05am UTC](https://qa.fmod.com/t/ios-build-cannot-find-banks/12317/3 "2016-02-19T06:05:50Z")

</div>

Thank you for your fast response.

I get following debug output:

```
FMOD Studio: Creating runtime system instance
FMODUnity.RuntimeManager:Initialiase(Boolean)
FMODUnity.RuntimeManager:get_Instance()
FMODUnity.RuntimeManager:PathToGUID(String)
FMODUnity.RuntimeManager:CreateInstance(String)
FMOD_PlayOnEnable:OnEnable()
 
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

FMOD Studio: Device iPod7,1 classed as MobileLow
FMODUnity.RuntimeUtils:GetCurrentPlatform()
FMODUnity.RuntimeManager:Initialiase(Boolean)
FMODUnity.RuntimeManager:get_Instance()
FMODUnity.RuntimeManager:PathToGUID(String)
FMODUnity.RuntimeManager:CreateInstance(String)
FMOD_PlayOnEnable:OnEnable()
 
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

EventNotFoundException: FMOD Studio event not found 'event:/Music/AmbientMain'
  at GooglePlayDownloader.GetExpansionFilePath () [0x00000] in <filename unknown>:0 
  at FMODUnity.RuntimeManager.CreateInstance (System.String path) [0x00000] in <filename unknown>:0 
  at FMOD_PlayOnEnable.OnEnable () [0x00000] in <filename unknown>:0 
 
(Filename: currently not available on il2cpp Line: -1)

```

* * *

EDIT:

I have removed the GooglePlayDownloader class for IOS Builds, now I am getting this:

```
EventNotFoundException: FMOD Studio event not found 'event:/Music/AmbientMain'
  at FMODUnity.OneshotList.SetParameterValue (System.String name, Single value) [0x00000] in <filename unknown>:0 
  at FMODUnity.RuntimeManager.CreateInstance (System.String path) [0x00000] in <filename unknown>:0 
  at FMOD_PlayOnEnable.OnEnable () [0x00000] in <filename unknown>:0 
 
(Filename: currently not available on il2cpp Line: -1)
```

---

<div class="post-metadata">

**Author:** ![HANSTUDIOS](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@HANSTUDIOS](https://qa.fmod.com/u/HANSTUDIOS)\
**Post date:** [February 19, 2016, 9:02am UTC](https://qa.fmod.com/t/ios-build-cannot-find-banks/12317/4 "2016-02-19T09:02:05Z")

</div>

Now I have added a manual bank load for the master bank and I am getting following error:  
BankLoadException: FMOD Studio could not load bank ‘/var/mobile/Containers/Bundle/Application/DD7F6221-18D2-4F4E-A51F-D658D17DF130/ATAK.app/Data/Raw/Master Bank.bank’ : ERR\_FILE\_BAD : Error loading file.

---

<div class="post-metadata">

**Author:** ![HANSTUDIOS](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@HANSTUDIOS](https://qa.fmod.com/u/HANSTUDIOS)\
**Post date:** [February 19, 2016, 2:39pm UTC](https://qa.fmod.com/t/ios-build-cannot-find-banks/12317/5 "2016-02-19T14:39:55Z")

</div>

Updating to Unity 5.3.2 has resolved the problem. I have no idea about the reason…

---

<div class="post-metadata">

**Author:** ![nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@nick1](https://qa.fmod.com/u/nick1)\
**Post date:** [February 20, 2016, 5:40am UTC](https://qa.fmod.com/t/ios-build-cannot-find-banks/12317/6 "2016-02-20T05:40:30Z")

</div>

> [@](#):
>
> Updating to Unity 5.3.2 has resolved the problem. I have no idea about the reason…

My best guess is “(760943) - IL2CPP: Do not incorrectly free blittable arrays marshaled as [In,Out] parameters” meant that passing strings to FMOD resulted in getting garbage bank file names and event names.

“(754539) - iOS/IL2CPP: Correct stack traces in exception messages, which could sometimes miss managed frames.” is why none of your stack traces made any sense.
