Bug 13112 - Binding third party library dependent on another native library fails to build binding project
Summary: Binding third party library dependent on another native library fails to buil...
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 6.3.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-07-09 01:55 UTC by Prashant Cholachagudda
Modified: 2016-05-24 19:27 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Prashant Cholachagudda 2013-07-09 01:55:59 UTC
Binding third party library dependent on another native library fails to build binding project with bellow error 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -Wl,-no_pie -miphoneos-version-min=5.0 -gdwarf-2 -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/XValidator.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.Json.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.Xml.Linq.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/iPhone.Models.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.Core.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/FareInspector.exe.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/MonoTouch.Dialog-1.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/monotouch.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/RestSharp.MonoTouch.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.Xml.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/Mono.Security.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/mscorlib.dll.armv7.o /Users/leoduran/Documents/dev/njt-poc2/FareInspector/obj/iPhone/Debug/mtouch-cache/main.armv7.cache.iCHNlrUD2EA9IrgG3Xy+BpJbe80=.o /Users/leoduran/Documents/dev/njt-poc2/FareInspector/obj/iPhone/Debug/mtouch-cache/registrar.armv7.cache.1kuchNc5lYk0AILs2y4+5pD11xA=.o -o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/FareInspector -framework CFNetwork -framework Foundation -framework UIKit -framework QuartzCore -framework CoreGraphics -framework ExternalAccessory, -framework GrabbaDriver -lz -liconv -u _mono_pmip -u _monotouch_create_managed_ref -u _monotouch_release_managed_ref -u _monotouch_IntPtr_objc_msgSend_IntPtr -u _monotouch_IntPtr_objc_msgSendSuper_IntPtr -u _CloseZStream -u _CreateZStream -u _Flush -u _ReadZStream -u _WriteZStream -lmono-2.0 -lmonotouch-debug -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -force_load /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/libxValidator.a -lz -lsqlite3
Process exited with code 1, command:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -Wl,-no_pie -miphoneos-version-min=5.0 -gdwarf-2 -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/XValidator.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.Json.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.Xml.Linq.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/iPhone.Models.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.Core.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/FareInspector.exe.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/MonoTouch.Dialog-1.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/monotouch.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/RestSharp.MonoTouch.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/System.Xml.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/Mono.Security.dll.armv7.o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/mscorlib.dll.armv7.o /Users/leoduran/Documents/dev/njt-poc2/FareInspector/obj/iPhone/Debug/mtouch-cache/main.armv7.cache.iCHNlrUD2EA9IrgG3Xy+BpJbe80=.o /Users/leoduran/Documents/dev/njt-poc2/FareInspector/obj/iPhone/Debug/mtouch-cache/registrar.armv7.cache.1kuchNc5lYk0AILs2y4+5pD11xA=.o -o /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/FareInspector -framework CFNetwork -framework Foundation -framework UIKit -framework QuartzCore -framework CoreGraphics -framework ExternalAccessory, -framework GrabbaDriver -lz -liconv -u _mono_pmip -u _monotouch_create_managed_ref -u _monotouch_release_managed_ref -u _monotouch_IntPtr_objc_msgSend_IntPtr -u _monotouch_IntPtr_objc_msgSendSuper_IntPtr -u _CloseZStream -u _CreateZStream -u _Flush -u _ReadZStream -u _WriteZStream -lmono-2.0 -lmonotouch-debug -L/Developer/MonoTouch/SDKs/MonoTouch.iphoneos.sdk/usr/lib -force_load /var/folders/mn/nkswym0d33sbzystrxq4lzlc0000gp/T/tmp51ea67ad.tmp/libxValidator.a -lz -lsqlite3
ld: framework not found GrabbaDriver
collect2: ld returned 1 exit status

error MT5202: Native linking failed. Please review the build log.
Comment 2 Sebastien Pouliot 2013-07-09 11:24:31 UTC
Prashant, that's normal (i.e. not a bug). 

The log shows a reference to a 3rd party framework* (GrabbaDriver) but it does not provide any details to the native linker to find it. As such the native linker tells you "ld: framework not found GrabbaDriver"

* Since it's not a framework that is part of the iOS SDK it can't be found automagically.

If you have trouble resolving this then please attach a complete, self-contained test case to the bug report.

note: the desk attachment is incomplete, it does not contain the framework (I doubt it's 29 bytes), has no test case (just bindings).
Comment 4 sharat 2013-10-01 16:27:48 UTC
Thanks, I think adding the AudioToolbox framework fixed it!
Comment 5 Sebastien Pouliot 2016-05-24 19:27:05 UTC
Last comment makes it sound like it's working.

If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!