Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes

Hello, I'm having trouble building an iOS project in Unity (2022.1.11f1) after integrating Wwise (2022.1.0.7985).

The integration works because I can trigger/hear sounds in the editor but when I try to build the project for iOS I get the following error.

Assets/Wwise/API/Runtime/Generated/iOS/AkAudioSessionProperties_iOS.cs(65,10): error CS0246: The type or namespace name 'AkAudioSessionBehaviorOptions' could not be found (are you missing a using directive or an assembly reference?)

Error building Player because scripts had compiler errors

The project builds fine under macOS.

 

Any help will be greatly appreciated!

 

in General Discussion by Ando (190 points)

1 Answer

0 votes

To anyone who stumbles upon the above error...

In the following file

Assets/Wwise/API/Runtime/Generated/iOS/AkAudioSessionProperties_iOS.cs(65,10)

I commented out line 65-66.

public AkAudioSessionBehaviorOptions eAudioSessionBehavior { set { AkSoundEnginePINVOKE.CSharp_AkAudioSessionProperties_eAudioSessionBehavior_set(swigCPtr, (int)value); }  get { return (AkAudioSessionBehaviorOptions)AkSoundEnginePINVOKE.CSharp_AkAudioSessionProperties_eAudioSessionBehavior_get(swigCPtr); }
  }

which seems to have solved the problem and now the app builds on iOS. Perhaps someone from Audiokinetic can shed some light if the above solution will lead to errors elsewhere. 

 

by Ando (190 points)
...