cometchat-go / xamarin-forms-chat-sdk-demo

CometChat Demo App for Xamarin Forms
6 stars 4 forks source link

Native linking failed for xamarin.ios project #20

Open prakash-malodiya opened 5 years ago

prakash-malodiya commented 5 years ago

I am using xamarin.forms 3.4.0.1008975 in one of my project created using visual studio 2017 in windows os. I had installed cometchat package for both android and ios project as per your given steps for setup. It is worked for android but getting errors for ios project when I build ios project. I am using xamarin.ios sdk 12.2 version and xcode 10.2.1.

Please find list of errors while building the xamarin.ios project:

2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _FIRLogBasic. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _FIRLogError. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _FIRLogWarning. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _GULIsLoggableLevel. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _GULLogBasic. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _GULLogError. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _GULLogInfo. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _GULLogWarning. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _GULSetLoggerLevel. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5211: Native linking failed, undefined Objective-C class: FIRApp. The symbol '_OBJCCLASS$_FIRApp' could not be found in any of the libraries or frameworks linked with your application. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5211: Native linking failed, undefined Objective-C class: FIROptions. The symbol '_OBJCCLASS$_FIROptions' could not be found in any of the libraries or frameworks linked with your application. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5211: Native linking failed, undefined Objective-C class: GULAppDelegateSwizzler. The symbol '_OBJCCLASS$_GULAppDelegateSwizzler' could not be found in any of the libraries or frameworks linked with your application. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5211: Native linking failed, undefined Objective-C class: GULAppEnvironmentUtil. The symbol '_OBJCCLASS$_GULAppEnvironmentUtil' could not be found in any of the libraries or frameworks linked with your application. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5211: Native linking failed, undefined Objective-C class: GULMutableDictionary. The symbol '_OBJCCLASS$_GULMutableDictionary' could not be found in any of the libraries or frameworks linked with your application. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5211: Native linking failed, undefined Objective-C class: GULNetwork. The symbol '_OBJCCLASS$_GULNetwork' could not be found in any of the libraries or frameworks linked with your application. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5211: Native linking failed, undefined Objective-C class: GULSwizzler. The symbol '_OBJCCLASS$_GULSwizzler' could not be found in any of the libraries or frameworks linked with your application. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRAppDiagnosticsConfigurationTypeKey. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRAppDiagnosticsErrorKey. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRAppDiagnosticsFIRAppKey. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRAppDiagnosticsNotification. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRAppDiagnosticsSDKNameKey. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRAppDiagnosticsSDKVersionKey. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRLoggerAnalytics. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRLoggerCore. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceAdMob. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceAuth. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceAuthUI. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceCrash. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceDatabase. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceDynamicLinks. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceFirestore. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceFunctions. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceInvites. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceMeasurement. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceMessaging. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServicePerformance. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceRemoteConfig. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kFIRServiceStorage. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kGGLServiceAnalytics. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kGGLServiceSignIn. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusCodeCannotAcceptTraffic. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusCodeNotFound. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusCodeNotModified. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusCodeUnavailable. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusNoContent. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5210: Native linking failed, undefined symbol: _kGULNetworkHTTPStatusOK. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5201: Native linking failed. Please review the build log and the user flags provided to gcc: -ObjC -ObjC -lc++ -lsqlite3 -lz -ObjC -lc++ -lsqlite3 -lz 2> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error MT5202: Native linking failed. Please review the build log. 2>

vikrantwadate commented 5 years ago

Hello,

We have tested the Xamarin.iOS SDK v7.38.0 using our GitHub sample app and it is working fine. We suggest you run our GitHub sample app and test the same using the link below :

https://github.com/CometChat/xamarin-forms-chat-sdk-demo

Please make sure you add your API and LICENSE key in the MainPage.xaml.cs file of our sample app before testing.

If you are still facing the issue then you can book a session with us using the link below :

https://www.cometchat.com/schedule-session/

Thanks.