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

Native Linking Error on iOS Binding library

$
0
0

I'm not quite sure how to troubleshoot this and was hoping for some insights. I've got a Xamarin Forms solution that uses an iOS binding library I created from a 3rd party. I got new files and was able to bind it and create a dll. The only thing different was this time I had to use Xcode 9.4.1. When I brought the dll back into my xamarin forms solution I get the errors below by running against an iOS simulator with the following Additional mtouch arguments
--registrar:static --gcc_flags -stdlib=libc++ -v -v -v -v

In the iOS binding library my native reference libMyChart.a has the following settings:
Force Load: True

Frameworks: WebKit HealthKit CoreGraphics Foundation UIKit CoreLocation MediaPlayer SystemConfiguration MobileCoreServices QuartzCore EventKitUI EventKit OpenGLES AudioToolbox CoreVideo CoreMedia AVFoundation Security CoreText CFNetwork

Linker Flags: -ObjC -lstdc++ -lxml2

Smart Link: True

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(786,3): error : Native linking error: framework not found /Users/dwighthyde/Library/Caches/Xamarin/mtbs/builds/UCH.MHC.Mobile.iOS/36e1d1f4518f8e9cd999de204f2e866f/obj/iPhoneSimulator/Debug/mtouch-cache/x86_64/registrar.o
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 and the user flags provided to gcc: -stdlib=libc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/dwighthyde/Library/Caches/Xamarin/mtbs/builds/UCH.MHC.Mobile.iOS/36e1d1f4518f8e9cd999de204f2e866f/obj/iPhoneSimulator/Debug/Entitlements.xcent
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.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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