[MonoTouch] Binding to Static Framework and using Core.Bluetooth

retlaW walterszewelanczyk at gmail.com
Tue Dec 13 05:56:33 EST 2011


I had previously tried to get the Wahoo Fitness ANT+ api working with
Monotouch but it appeared to have the dreaded THUMB issue.  Now that 5.1.1
is supposed to resolve that I went to try again.  Previously the API was
distributed as a static lib (.a file) but it is now a static framework.  I
have not seen any official docs on how to bind to a static framework.

I have seen another post that referes to using -F{Dir containing the
framework} and using -framework {static framework name}.  I guess I am
wondering if this is correct?

I am getting errors while building that appear to be related to the fact
that the static framework requires CoreBluetooth.  If I link SDK files only
with no build options to reference CoreBluetooth I get errors that some
symbols are missing.  If I try to include a -framework or -weak_framework
with CoreBluetooth I get an error that it can't find CoreBluetooth.  If I
dont link any assemblies I still get ld: framework not found CoreBluetooth.
This message shows up even though I do not reference the CoreBluetooth in my
build options which are as follows :
-v -v -v -cxx -gcc_flags "-F${ProjectDir}/Lib -framework WFConnector 
-framework ExternalAccessory    -framework Security  -ObjC  -lstdc++
-all_load "   

The framework I am trying to bind is the WFConnector.framework. Reading the
5.0 changes it appears that CoreBluetooth should be available, but it may
have something to do with me not setting up the WFConnector.framework
correctly. 

Any thoughts on this would be greatly appreciated.

Walt

--
View this message in context: http://monotouch.2284126.n4.nabble.com/Binding-to-Static-Framework-and-using-Core-Bluetooth-tp4190028p4190028.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list