Issue building a Binding Project - Messaging.g.cs

JohnNolanJohnNolan USMember

Hi there,

I am attempting to use an external Objective-C library SWRevealViewController based on the native library by John Lluch here.

Unfortunately, I am unable to build the SWRevealViewControllerBinding project in Visual Studio as the Messaging.g.cs fails (it ends mid DllImport)! Output of Messaging.g.cs:

// // Auto-generated from generator.cs, do not edit // // We keep references to objects, so warning 414 is expected
`#pragma warning disable 414`
using System; using System.Drawing; using System.Diagnostics; using System.ComponentModel; using System.Threading.Tasks; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using UIKit; using GLKit; using Metal; using MapKit; using ModelIO; using Security; using SceneKit; using CoreVideo; using CoreMedia; using QuickLook; using Foundation; using CoreMotion; using ObjCRuntime; using AddressBook; using CoreGraphics; using CoreLocation; using AVFoundation; using NewsstandKit; using CoreAnimation; using CoreFoundation;
namespace ApiDefinition { partial class Messaging { static internal System.Reflection.Assembly this_assembly = typeof (Messaging).Assembly;

    const string LIBOBJC_DYLIB = "/usr/lib/libobjc.dylib";

    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static IntPtr IntPtr_objc_msgSend (IntPtr receiever, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static IntPtr IntPtr_objc_msgSendSuper (IntPtr receiever, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static IntPtr IntPtr_objc_msgSend_IntPtr (IntPtr receiever, IntPtr selector, IntPtr arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static IntPtr IntPtr_objc_msgSendSuper_IntPtr (IntPtr receiever, IntPtr selector, IntPtr arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static void void_objc_msgSend_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static void void_objc_msgSendSuper_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static int int_objc_msgSend (IntPtr receiver, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static int int_objc_msgSendSuper (IntPtr receiver, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static void void_objc_msgSend_int (IntPtr receiver, IntPtr selector, int arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static void void_objc_msgSendSuper_int (IntPtr receiver, IntPtr selector, int arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static float float_objc_msgSend (IntPtr receiver, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static float float_objc_msgSendSuper (IntPtr receiver, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static void void_objc_msgSend_float (IntPtr receiver, IntPtr selector, float arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static void void_objc_msgSendSuper_float (IntPtr receiver, IntPtr selector, float arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static bool bool_objc_msgSend (IntPtr receiver, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static bool bool_objc_msgSendSuper (IntPtr receiver, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static void void_objc_msgSend_bool (IntPtr receiver, IntPtr selector, bool arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static void void_objc_msgSendSuper_bool (IntPtr receiver, IntPtr selector, bool arg1);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static global::System.Double Double_objc_msgSend (IntPtr receiver, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
    public extern static global::System.Double Double_objc_msgSendSuper (IntPtr receiver, IntPtr selector);
    [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
    public extern static void vo` -- end of file!

Please can you confirm whether the error in the auto generated code above is caused at framework level - if not, any ideas why I can't build the attached project?

Thanks

John

Sign In or Register to comment.