Monobjc / monobjc

Git Repository for the Monobjc Project
http://www.monobjc.net/
17 stars 3 forks source link

Failed to Load Framework AVKit #434

Open mmatulevich opened 9 years ago

mmatulevich commented 9 years ago

When attempting to use the AVKit framework in version Monobjc-6.0.2744.0, the application crashes when calling the method ObjectiveCRuntime.LoadFramework("AVKit"); which throws a Monobjc.ObjectiveCException with the message "Failed to load framework AVKit."

letiemble commented 9 years ago

The AVKit framework is only available as a 64 bits binary:

file /System/Library/Frameworks/AVKit.framework/AVKit

If you try to reference it into a 32 bits application, the loading will fail with the error you have reported.

Are you using it in a 64 bits application ?

mmatulevich commented 9 years ago

Do you have any examples of using the AVKit with Monobjc?  I am using the latest Xamarin Studio and Mono Framework with the MonoDevelop Addin for Monobjc.  I am not quite sure where to make the correct setting(s) to make sure the application is built as 64-bit using the set of tools listed.  Any help or guidance you can provide would be greatly appreciated.  Thank you.  On 06/11/15, Laurent Etiemblenotifications@github.com wrote: The AVKit framework is only available as a 64 bits binary:file /System/Library/Frameworks/AVKit.framework/AVKitIf you try to reference it into a 32 bits application, the loading will fail with the error you have reported.Are you using it in a 64 bits application ?—Reply to this email directly or view it on GitHub.

Supert commented 9 years ago

I have same problem with CorePlot framework. Even DatePlot sample app does not work. There was no /System/Library/Frameworks/CorePlot.framework so I've copied binaries of it. It did not help so I've tried to set project option "Build-Compilier-Platform target" to x86 (as well as to x64) with no luck either. Any help?