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.

Wwise 2022 fails to build on iOS under Unity

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!

 

asked Oct 25, 2022 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. 

 

answered Oct 29, 2022 by Ando (190 points)
...