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

Sebastien Pouliot sebastien at xamarin.com
Mon Dec 19 08:53:53 EST 2011


Hello Walt,

Older (beta) releases of XCode did not ship CoreBluetooth and this has
affected a few people in the past.

Please verify that you have the latest XCode 4.2 installed.

e.g. 4C199 on Snow Leopard and 4D199 on Lion

Sebastien

On Sun, Dec 18, 2011 at 12:59 PM, Walter Szewelanczyk
<walterszewelanczyk at gmail.com> wrote:
> Thanks Jeff,
>
> I have tried what you suggested and several different variations of the
> arguments but basically it all seems to come down to the same issue, the
> system can't seem to find the CoreBluetooth library.  Isn't this supported
> as of version 5?
>
> Walt
>
>
> On Thu, Dec 15, 2011 at 11:14 AM, Jeff Stedfast <jeff at xamarin.com> wrote:
>>
>> Hi Walt,
>>
>> This is a very good question and unfortunately I do not have an answer for
>> it :-(
>>
>> All I can suggest is that you try reordering the arguments like this:
>>
>> -v -v -v -cxx -gcc_flags "-framework ExternalAccessory -framework
>> Security -F${ProjectDir}/Lib -framework WFConnector -ObjC
>>  -lstdc++ -all_load"
>>
>> Also, you might try dropping -all_load? Do you need that?
>>
>> If you find out, could you post a follow-up? Meanwhile, I've added a
>> feature request for our LinkWithAttribute to be aware of framework libraries
>> as well.
>>
>> Jeff
>>
>>
>> On Tue, Dec 13, 2011 at 5:56 AM, retlaW <walterszewelanczyk at gmail.com>
>> wrote:
>>>
>>> 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.
>>> _______________________________________________
>>> MonoTouch mailing list
>>> MonoTouch at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
>>
>
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>


More information about the MonoTouch mailing list