Link CoreAudio and AudioToolbox when using OpenAL on iOS [WIP]#8938
Conversation
|
Adding the following:
Resulted in the following output:
Tried adding this to the csproj/propertygroup, but the original issues remained.
|
the I am using the following to create a release build of an ios app. This is the project file contents. |
Here's the binlog. |
|
You have |
I've tried removing it and setting it to Full, but that didn't help. Is there a setting I should use? |
|
@olivegamestudio I'm not an iOS guy I'm afraid. It works for me not having it at all. You might need to ask on the DotNet Evolution #apple channel EDIT: I asked. https://discord.com/channels/732297728826277939/732297808148824115/1401587120660942941 |
This is fine:
This generates the issues when creating an IPA.
|
|
ok, we are going to need some advice from someone who has more knowledge on this I'm afraid. |
The missing symbols are in the <AppBundleExtraOptions>$(AppBundleExtraOptions) -framework CoreAudio -framework AudioToolbox</AppBundleExtraOptions> |
I added that to the project file, but the issues remain: |
|
Ah, -framework isn't recognized directly in <AppBundleExtraOptions>$(AppBundleExtraOptions) -gcc_flags '-framework CoreAudio -framework AudioToolbox'</AppBundleExtraOptions> |
That worked! I have it running on a device and delivered through TestFlight. |
|
@olivegamestudio I've added the changes here. That will be in the next develop release. |
248945a to
70a405a
Compare
|
It would have been better if it was around a So it didn't work when put into the audio .target? That's a bit annoying since that makes an audio related thing not in the audio related .target. |
|
@ThomasFOG The OpenAL.targets file never gets shipped. Its not in the nuget. MonoGame.Framework.iOS.targets does get shipped in the Nuget, and having |
Ah! Makes sense! Sorry I didn't notice it was in that target, I assumed it was directly the csproj. |
Fixes the following issue
```
3>Xamarin.Shared.Sdk.targets(1648,3): Error : clang++ exited with code 1:
Undefined symbols for architecture arm64:
"_AudioComponentFindNext", referenced from:
(anonymous namespace)::CoreAudioPlayback::open(std::__1::basic_string_view<char, std::__1::char_traits<char>>) in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioCapture::open(std::__1::basic_string_view<char, std::__1::char_traits<char>>) in libopenal.a[32](coreaudio.o)
"_AudioComponentInstanceDispose", referenced from:
(anonymous namespace)::CoreAudioPlayback::open(std::__1::basic_string_view<char, std::__1::char_traits<char>>) in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioPlayback::~CoreAudioPlayback() in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioPlayback::~CoreAudioPlayback() in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioCapture::~CoreAudioCapture() in libopenal.a[32](coreaudio.o)
"_AudioComponentInstanceNew", referenced from:
(anonymous namespace)::CoreAudioPlayback::open(std::__1::basic_string_view<char, std::__1::char_traits<char>>) in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioCapture::open(std::__1::basic_string_view<char, std::__1::char_traits<char>>) in libopenal.a[32](coreaudio.o)
"_AudioOutputUnitStart", referenced from:
(anonymous namespace)::CoreAudioPlayback::start() in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioCapture::start() in libopenal.a[32](coreaudio.o)
"_AudioOutputUnitStop", referenced from:
(anonymous namespace)::CoreAudioPlayback::stop() in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioCapture::stop() in libopenal.a[32](coreaudio.o)
"_AudioUnitGetProperty", referenced from:
(anonymous namespace)::CoreAudioPlayback::reset() in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioPlayback::reset() in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioCapture::open(std::__1::basic_string_view<char, std::__1::char_traits<char>>) in libopenal.a[32](coreaudio.o)
(anonymous namespace)::CoreAudioCapture::open(std::__1::basic_string_view<char, std::__1::char_traits<char>>) in libopenal.a[32](coreaudio.o)
"_AudioUnitGetPropertyInfo", referenced from:
(anonymous namespace)::CoreAudioPlayback::reset() in libopenal.a[32](coreaudio.o)
3>------- Finished building project: DungeonSlime.iOS. Succeeded: False. Errors: 1. Warnings: 0
```
Fixes the following issue