xamarin-bindings-for-twilio / TwilioVoiceXamarinIOS

MIT License
3 stars 3 forks source link

Error when integrating Twilio Voice Xamarin iOS via nuget #4

Open 4brunu opened 2 years ago

4brunu commented 2 years ago

Hi,

I was testing the new published version of this library in nuget, and got the following errors.

Those errors only happen when integrating via nuget, when referencing the binding project it works.

I have no idea of what could be wrong.

/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOAcceptOptions. The symbol '_OBJC_CLASS_$_TVOAcceptOptions' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOAcceptOptionsBuilder. The symbol '_OBJC_CLASS_$_TVOAcceptOptionsBuilder' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOAudioCodec. The symbol '_OBJC_CLASS_$_TVOAudioCodec' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOAudioFormat. The symbol '_OBJC_CLASS_$_TVOAudioFormat' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOBaseTrackStats. The symbol '_OBJC_CLASS_$_TVOBaseTrackStats' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOCall. The symbol '_OBJC_CLASS_$_TVOCall' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOCallInvite. The symbol '_OBJC_CLASS_$_TVOCallInvite' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOCallOptions. The symbol '_OBJC_CLASS_$_TVOCallOptions' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOCallOptionsBuilder. The symbol '_OBJC_CLASS_$_TVOCallOptionsBuilder' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOCallerInfo. The symbol '_OBJC_CLASS_$_TVOCallerInfo' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOCancelledCallInvite. The symbol '_OBJC_CLASS_$_TVOCancelledCallInvite' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOConnectOptions. The symbol '_OBJC_CLASS_$_TVOConnectOptions' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOConnectOptionsBuilder. The symbol '_OBJC_CLASS_$_TVOConnectOptionsBuilder' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVODefaultAudioDevice. The symbol '_OBJC_CLASS_$_TVODefaultAudioDevice' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOIceCandidatePairStats. The symbol '_OBJC_CLASS_$_TVOIceCandidatePairStats' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOIceCandidateStats. The symbol '_OBJC_CLASS_$_TVOIceCandidateStats' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOIceOptions. The symbol '_OBJC_CLASS_$_TVOIceOptions' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOIceOptionsBuilder. The symbol '_OBJC_CLASS_$_TVOIceOptionsBuilder' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOIceServer. The symbol '_OBJC_CLASS_$_TVOIceServer' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOLocalAudioTrackStats. The symbol '_OBJC_CLASS_$_TVOLocalAudioTrackStats' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOLocalTrackStats. The symbol '_OBJC_CLASS_$_TVOLocalTrackStats' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOOpusCodec. The symbol '_OBJC_CLASS_$_TVOOpusCodec' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOPcmuCodec. The symbol '_OBJC_CLASS_$_TVOPcmuCodec' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVORemoteAudioTrackStats. The symbol '_OBJC_CLASS_$_TVORemoteAudioTrackStats' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVORemoteTrackStats. The symbol '_OBJC_CLASS_$_TVORemoteTrackStats' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TVOStatsReport. The symbol '_OBJC_CLASS_$_TVOStatsReport' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5211: Native linking failed, undefined Objective-C class: TwilioVoiceSDK. The symbol '_OBJC_CLASS_$_TwilioVoiceSDK' could not be found in any of the libraries or frameworks linked with your application. (MT5211) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioChannelsMono. This symbol was referenced by the managed member Twilio.Voice.iOS.Constants.TVOAudioChannelsMono. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioChannelsStereo. This symbol was referenced by the managed member Twilio.Voice.iOS.Constants.TVOAudioChannelsStereo. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioDeviceExecuteWorkerBlock. This symbol was referenced by the managed member Twilio.Voice.iOS.CFunctions.TVOAudioDeviceExecuteWorkerBlock. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioDeviceFormatChanged. This symbol was referenced by the managed member Twilio.Voice.iOS.CFunctions.TVOAudioDeviceFormatChanged. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioDeviceReadRenderData. This symbol was referenced by the managed member Twilio.Voice.iOS.CFunctions.TVOAudioDeviceReadRenderData. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioDeviceWriteCaptureData. This symbol was referenced by the managed member Twilio.Voice.iOS.CFunctions.TVOAudioDeviceWriteCaptureData. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioSampleRate16000. This symbol was referenced by the managed member Twilio.Voice.iOS.Constants.TVOAudioSampleRate16000. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioSampleRate24000. This symbol was referenced by the managed member Twilio.Voice.iOS.Constants.TVOAudioSampleRate24000. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioSampleRate32000. This symbol was referenced by the managed member Twilio.Voice.iOS.Constants.TVOAudioSampleRate32000. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioSampleRate44100. This symbol was referenced by the managed member Twilio.Voice.iOS.Constants.TVOAudioSampleRate44100. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioSampleRate48000. This symbol was referenced by the managed member Twilio.Voice.iOS.Constants.TVOAudioSampleRate48000. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioSampleRate8000. This symbol was referenced by the managed member Twilio.Voice.iOS.Constants.TVOAudioSampleRate8000. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioSessionActivated. This symbol was referenced by the managed member Twilio.Voice.iOS.CFunctions.TVOAudioSessionActivated. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _TVOAudioSessionDeactivated. This symbol was referenced by the managed member Twilio.Voice.iOS.CFunctions.TVOAudioSessionDeactivated. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5214: Native linking failed, undefined symbol: _kTVOErrorDomain. This symbol was referenced by the managed member Twilio.Voice.iOS.Constants.kTVOErrorDomain. Please verify that all the necessary frameworks have been referenced and native libraries linked. (MT5214) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/MTOUCH: Error MT5202: Native linking failed. Please review the build log. (MT5202) (Sample)
/Users/User/Developer/TwilioVoiceXamarinIOS/Sample/clang: Error: linker command failed with exit code 1 (use -v to see invocation) (Sample)
jtorvald commented 2 years ago

Not sure, but I guess you have link SDK's enabled and it does not link referenced projects, but it does link included packages? Maybe missing a PreserveAttribute somewhere in the library code? @dkornev any idea?

bmarrelli05 commented 2 years ago

I updated the package from 6.0.2 to 6.3.0 and have the same linking errors. I still have --registrar:static -cxx -gcc_flags under my build arguments and its not working anymore. Any ideas on how to resolve?

mhender24 commented 2 years ago

Same issue, any update on this?