Added Firebase libraries to Xamarin IOS with build error 'Could not extract the native library'

After adding Firebase libraries to Xamarin.IOS project the build fails with the following below. I have tried cleaning the bin and obj directories and rebuilding. Also the Firebase.CoreDiagnostics and Firebase.NanoPB are not reference in the project so I'm not sure why it's being linked

1>(_CompileToNative target) ->
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): warning : Could not extract the native library 'FirebaseMessaging' from '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseMessaging'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): warning : Could not extract the native library 'FirebaseInstanceID' from '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseInstanceID'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): warning : Could not extract the native library 'FirebaseCore' from '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseCore'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): warning : Could not extract the native library 'FirebaseAnalytics' from '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseAnalytics'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): warning : Could not extract the native library 'FirebaseCoreDiagnostics' from '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseCoreDiagnostics'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): warning : Could not extract the native library 'FirebaseNanoPB' from '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseNanoPB'. Please ensure the native library was properly embedded in the managed assembly (if the assembly was built using a binding project, the native library must be included in the project, and its Build Action must be 'ObjcBindingNativeLibrary').
1>
1>
1>"D:\App.Mobile\App.Mobile.iOS\App.Mobile.iOS.csproj" (default target) (1) ->
1>(_CompileToNative target) ->
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): error : Native linking error: clang: error: no such file or directory: '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseMessaging'
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): error : Native linking error: clang: error: no such file or directory: '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseInstanceID'
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): error : Native linking error: clang: error: no such file or directory: '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseCore'
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): error : Native linking error: clang: error: no such file or directory: '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseAnalytics'
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): error : Native linking error: clang: error: no such file or directory: '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseCoreDiagnostics'
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): error : Native linking error: clang: error: no such file or directory: '/Users/User/Library/Caches/Xamarin/mtbs/builds/App.Mobile.iOS/4ce94c92edff1aeecd3fbe7b213b79d9/obj/iPhone/Debug/mtouch-cache/FirebaseNanoPB'
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): error : Native linking failed. Please review the build log.

Answers

Sign In or Register to comment.