Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Linker Error - Error 105 Native linking failed, undefined symbol: _AudioUnitUninitialize

$
0
0

Hi,
I'm getting error when I try to build the application with "Link All Assemblies" option. App builds and works fine when I use Dont Link option!!

5> Undefined symbols for architecture x86_64:
5> "_AudioComponentFindNext", referenced from:
5> -[AudioStream audioInit:] in libdtdev.a(AudioStream.o)
5> "_AudioUnitInitialize", referenced from:
5> -[AudioStream audioInit:] in libdtdev.a(AudioStream.o)
5> "_AudioOutputUnitStart", referenced from:
5> -[AudioStream audioInit:] in libdtdev.a(AudioStream.o)
5> "_AudioComponentInstanceNew", referenced from:
5> -[AudioStream audioInit:] in libdtdev.a(AudioStream.o)
5> "_AudioSessionAddPropertyListener", referenced from:
5> -[AudioStream audioInit:] in libdtdev.a(AudioStream.o)
5> "_AudioUnitRender", referenced from:
5> _recordingCallback in libdtdev.a(AudioStream.o)
5> "_AudioSessionSetProperty", referenced from:
5> -[AudioStream audioInit:] in libdtdev.a(AudioStream.o)
5> "_AudioUnitUninitialize", referenced from:
5> -[AudioStream audioClose] in libdtdev.a(AudioStream.o)
5> "_AudioUnitSetProperty", referenced from:
5> -[AudioStream audioInit:] in libdtdev.a(AudioStream.o)
5> -[AudioStream setStreamStatus:] in libdtdev.a(AudioStream.o)
5> "_AudioOutputUnitStop", referenced from:
5> -[AudioStream audioClose] in libdtdev.a(AudioStream.o)
5> -[AudioStream setStreamStatus:] in libdtdev.a(AudioStream.o)
5> "_AudioSessionInitialize", referenced from:
5> -[AudioStream audioInit:] in libdtdev.a(AudioStream.o)
5> "_AudioComponentInstanceDispose", referenced from:
5> -[AudioStream audioClose] in libdtdev.a(AudioStream.o)
5> "_AudioSessionGetProperty", referenced from:
5> _SessionPropertyListener in libdtdev.a(AudioStream.o)
5> ld: symbol(s) not found for architecture x86_64
5> clang: error: linker command failed with exit code 1 (use -v to see invocation)
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioComponentFindNext. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioUnitInitialize. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioOutputUnitStart. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioComponentInstanceNew. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioSessionAddPropertyListener. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioUnitRender. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioSessionSetProperty. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioUnitUninitialize. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioUnitSetProperty. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioOutputUnitStop. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioSessionInitialize. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioComponentInstanceDispose. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed, undefined symbol: _AudioSessionGetProperty. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
5>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(664,3): error : Native linking failed. Please review the build log.

Here's my .linkwith.cs file:
using System;
using ObjCRuntime;

[assembly: LinkWith ("libdtdev.a", LinkTarget.ArmV7 | LinkTarget.Arm64 | LinkTarget.Simulator | LinkTarget.Simulator64, Frameworks = "ExternalAccessory CoreBluetooth AVFoundation MediaPlayer", IsCxx = true, SmartLink = true, ForceLoad = true)]

I tried making the ForceLoad = false, still its giving me the same errors!!!

TIA.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>