# FMOD issue with Unity 5.3.2

**URL:** https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279
**Category:** Unity
**Created:** [January 28, 2016, 4:25pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279 "2016-01-28T16:25:18Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ajlitton](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ajlitton](https://qa.fmod.com/u/ajlitton)
#### Post date: [January 28, 2016, 4:25pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/1 "2016-01-28T16:25:18Z")

</div>

In trying to build for iOS I am getting the following error in Xcode:

[redacted]/Classes/Native/Bulk\_Assembly-CSharp-firstpass\_1.cpp:12881:37: Use of undeclared identifier ‘\_\_\_\_guid\_marshaled\_dereferenced’

I am using the legacy integration 1.07.06, although the error was also present with 1.07.02. Updating the entire project, which is near completion, to integration 2.0 is thoroughly impractical at this point.

There was no problem with Unity 5.3.1. Using Bitcode or not makes no difference.

Any ideas for a workaround? Would dearly love to be able to build, and 5.3.2 has fixes which my project requires.

Thanks!

Edited to add: using Xcode 7.2.

---

<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: [January 29, 2016, 5:06am UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/2 "2016-01-29T05:06:07Z")

</div>

> [@](#):
>
> In trying to build for iOS I am getting the following error in Xcode:
> 
> [redacted]/Classes/Native/Bulk\_Assembly-CSharp-firstpass\_1.cpp:12881:37: Use of undeclared identifier ‘\_\_\_\_guid\_marshaled\_dereferenced’
> 
> I am using the legacy integration 1.07.06, although the error was also present with 1.07.02. Updating the entire project, which is near completion, to integration 2.0 is thoroughly impractical at this point.
> 
> There was no problem with Unity 5.3.1. Using Bitcode or not makes no difference.
> 
> Any ideas for a workaround? Would dearly love to be able to build, and 5.3.2 has fixes which my project requires.
> 
> Thanks!
> 
> Edited to add: using Xcode 7.2.

edited my answer: XCode version requested.

---

<div class="post-metadata">

### Author: ![ajlitton](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ajlitton](https://qa.fmod.com/u/ajlitton)
#### Post date: [January 29, 2016, 2:52pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/3 "2016-01-29T14:52:06Z")

</div>

Xcode 7.2

---

<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: [January 28, 2016, 11:48pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/4 "2016-01-28T23:48:49Z")

</div>

5.3.2 patch 1 has been released - I don’t see any IL2CPP changes listed that sound related to your issue but it might be worth a try.

You might also try to see if one of the 5.3.1 patch releases fixes your original project issues without introducing this IL2CPP bug.

I would also report the issue to Unity ASAP.

EDIT:  
I’ve just done my own testing on both Legacy and V2 Integrations. Using Unity 5.3.2f1 and XCode 7.2 and had no errors.

Can you update your post with XCode version?

---

<div class="post-metadata">

### Author: ![ajlitton](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ajlitton](https://qa.fmod.com/u/ajlitton)
#### Post date: [January 29, 2016, 4:57pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/5 "2016-01-29T16:57:14Z")

</div>

> [@](#):
>
> 5.3.2 patch 1 has been released - I don’t see any IL2CPP changes listed that sound related to your issue but it might be worth a try.
> 
> You might also try to see if one of the 5.3.1 patch releases fixes your original project issues without introducing this IL2CPP bug.
> 
> I would also report the issue to Unity ASAP.
> 
> EDIT:  
> I’ve just done my own testing on both Legacy and V2 Integrations. Using Unity 5.3.2f1 and XCode 7.2 and had no errors.
> 
> Can you update your post with XCode version?

Ugh, I failed to note that I am also using 5.3.2p1. My apologies. Unfortunately there is a fix in this specific patch that I absolutely need (to do with the alignment on non-dynamic text).

I have submitted this as a bug to Unity also.

---

<div class="post-metadata">

### Author: ![AndyD](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@AndyD](https://qa.fmod.com/u/AndyD)
#### Post date: [January 29, 2016, 1:15am UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/6 "2016-01-29T01:15:10Z")

</div>

Just a small note to say I’m seeing the same issue in 5.3.2 p1… just in case that saves someone some time. Apologies for adding this as an ‘answer’, this is my first post and I didn’t notice the comment button.

---

<div class="post-metadata">

### Author: ![AndyD](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@AndyD](https://qa.fmod.com/u/AndyD)
#### Post date: [January 29, 2016, 1:16am UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/7 "2016-01-29T01:16:55Z")

</div>

> [@](#):
>
> Just a small note to say I’m seeing the same issue in 5.3.2 p1… just in case that saves someone some time. Apologies for adding this as an ‘answer’, this is my first post and I didn’t notice the comment button.

Oh and there were no issues in 5.3.1p4.  
Also I’m running FMOD 1.07.05 integration 2.0.

---

<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: [January 29, 2016, 5:06am UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/8 "2016-01-29T05:06:31Z")

</div>

edited my answer: XCode version requested.

---

<div class="post-metadata">

### Author: ![AndyD](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@AndyD](https://qa.fmod.com/u/AndyD)
#### Post date: [January 29, 2016, 10:31pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/9 "2016-01-29T22:31:32Z")

</div>

Sorry Xcode 7.2

---

<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 2, 2016, 12:07am UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/10 "2016-02-02T00:07:00Z")

</div>

Working around the initial IL2CPP compile issues was easy enough.

I immediately ran into this issue [http://forum.unity3d.com/threads/ios-player-5-3-2p1-throw-exception-on-system-enum-tostring.382765/](http://forum.unity3d.com/threads/ios-player-5-3-2p1-throw-exception-on-system-enum-tostring.382765/) which I was able to work around (in a very messy way) in order to get as far as loading a bank.

I then ran up against another issue that I don’t see a way around.

At this stage I’m going to say that Unity 5.3.2p1 on iOS is unsupported with no plans to fix.

---

<div class="post-metadata">

### Author: ![AndyD](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@AndyD](https://qa.fmod.com/u/AndyD)
#### Post date: [February 2, 2016, 4:38am UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/11 "2016-02-02T04:38:56Z")

</div>

> [@](#):
>
> Working around the initial IL2CPP compile issues was easy enough.
> 
> I immediately ran into this issue [http://forum.unity3d.com/threads/ios-player-5-3-2p1-throw-exception-on-system-enum-tostring.382765/](http://forum.unity3d.com/threads/ios-player-5-3-2p1-throw-exception-on-system-enum-tostring.382765/) which I was able to work around (in a very messy way) in order to get as far as loading a bank.
> 
> I then ran up against another issue that I don’t see a way around.
> 
> At this stage I’m going to say that Unity 5.3.2p1 on iOS is unsupported with no plans to fix.

Another small note to say the same issue exists in Unity beta 5.4.0 b4.

---

<div class="post-metadata">

### Author: ![AndyD](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@AndyD](https://qa.fmod.com/u/AndyD)
#### Post date: [February 3, 2016, 10:51pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/12 "2016-02-03T22:51:54Z")

</div>

Anyone game to try 5.3.2 p2 ? I think I’ve had enough of the 2 hour process. It would be good if someone could look at the change log and see if there are any note worthy / relevant fixes :).

---

<div class="post-metadata">

### Author: ![ajlitton](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ajlitton](https://qa.fmod.com/u/ajlitton)
#### Post date: [February 3, 2016, 11:12pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/13 "2016-02-03T23:12:04Z")

</div>

Just tried 5.2.3p2 - issue still exists, no change.

---

<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 3, 2016, 11:52pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/14 "2016-02-03T23:52:57Z")

</div>

It looks like they _may_ have fixed the secondary/tertiary issues I ran into. I’ll test and see if I can workaround enough of the remaining bugs to run on device.

---

<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 4, 2016, 3:34am UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/15 "2016-02-04T03:34:57Z")

</div>

Here is the current situation regarding recent Unity releases and our integration running on iOS devices:

5.3.2f1 and 5.3.1p4 will work with any release of the integration

5.3.2p2 works if you update fmod\_studio.cs from the link below. The changes will also be included in 1.07.07  
[Link for Integration V2](https://raw.githubusercontent.com/fmod/UnityIntegration/master/Assets/Plugins/FMOD/Wrapper/fmod_studio.cs)  
[Link for Legacy Unity Integration](https://gist.githubusercontent.com/fmod-nick/15fdc432a5035845c70b/raw/2be98da352099fc6c6c40e75b12f9abe6be5e710/fmod_studio.cs)

5.3.2p1 does not work and will **not be fixed**.

---

<div class="post-metadata">

### Author: ![toreolsensan](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/toreolsensan/32/20_2.png) [@toreolsensan](https://qa.fmod.com/u/toreolsensan)
#### Post date: [February 4, 2016, 7:58am UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/16 "2016-02-04T07:58:13Z")

</div>

> [@](#):
>
> Here is the current situation regarding recent Unity releases and our integration running on iOS devices:
> 
> 5.3.2f1 and 5.3.1p4 will work with any release of the integration
> 
> 5.3.2p2 works if you update fmod\_studio.cs from the link below. The changes will also be included in 1.07.07  
> [Link for Integration V2](https://raw.githubusercontent.com/fmod/UnityIntegration/master/Assets/Plugins/FMOD/Wrapper/fmod_studio.cs)  
> [Link for Legacy Unity Integration](https://gist.githubusercontent.com/fmod-nick/15fdc432a5035845c70b/raw/2be98da352099fc6c6c40e75b12f9abe6be5e710/fmod_studio.cs)
> 
> 5.3.2p1 does not work and will **not be fixed**.

I’m looking forward to the .07 release, got any ETA on that?

---

<div class="post-metadata">

### Author: ![ajlitton](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ajlitton](https://qa.fmod.com/u/ajlitton)
#### Post date: [February 4, 2016, 4:11pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/17 "2016-02-04T16:11:23Z")

</div>

Thanks, Nicholas!

I am getting the following errors when I update fmod\_studio.cs to the one in the link:

Assets/Plugins/FMOD/FMOD\_StudioSystem.cs(28,45): error CS0234: The type or namespace name `ATTRIBUTES_3D' does not exist in the namespace`FMOD.Studio’. Are you missing an assembly reference?

Assets/Plugins/FMOD/FMOD\_StudioSystem.cs(38,45): error CS0234: The type or namespace name `ATTRIBUTES_3D' does not exist in the namespace`FMOD.Studio’. Are you missing an assembly reference?

---

<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 4, 2016, 11:43pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/18 "2016-02-04T23:43:16Z")

</div>

@Anthony: Updated post with a link for legacy integration users such as yourself.

---

<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 4, 2016, 11:53pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/19 "2016-02-04T23:53:57Z")

</div>

@Tore: another week or two

---

<div class="post-metadata">

### Author: ![ajlitton](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@ajlitton](https://qa.fmod.com/u/ajlitton)
#### Post date: [February 5, 2016, 9:21pm UTC](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279/20 "2016-02-05T21:21:04Z")

</div>

That is great! Thank you!

I am still getting an error in the editor, but it does not prevent me running or building so I’m ok for now. FYI, here it is:

NullReferenceException: Object reference not set to an instance of an object  
UnityEditor.Editor.get\_referenceTargetIndex () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:131)  
UnityEditor.AssetImporterInspector.get\_referenceTargetIndex () (at /Users/builduser/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:22)  
UnityEditor.Editor.get\_target () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:121)  
UnityEditor.AssetImporterInspector.OnDisable () (at /Users/builduser/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:71)  
UnityEditor.AssetDatabase:DeleteAsset(String)  
FMODEditorExtension:.cctor() (at Assets/Plugins/FMOD/Editor/FMODEditorExtension.cs:103)  
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

[Next page](https://qa.fmod.com/t/fmod-issue-with-unity-5-3-2/12279.md?page=2)
