Forum Xamarin.iOS

BTOUCH : error BI1079: bgen: Do not know how to make a signature for Google.MobileAds.GADAdSize*

Motoko89Motoko89 USMember ✭✭

Here is the definition in Objective-C:

      #define GAD_BOXABLE __attribute__((objc_boxable))

      typedef struct GAD_BOXABLE GADAdSize GADAdSize;

      struct GAD_BOXABLE GADAdSize {
          CGSize size;
          NSUInteger flags;
      };

Here is what Objectvie Sharpie give me:

[Static]
interface AdSizeConstants
{
    // extern const GADAdSize kGADAdSizeBanner __attribute__((visibility("default")));
    [Field("kGADAdSizeBanner", "__Internal")]
    GADAdSize Banner { get; }
}

[StructLayout(LayoutKind.Sequential)]
public struct GADAdSize
{
    private CGSize size;

    private nuint flags;
}

Could someone please give me some pointers to how to fix this?

Sign In or Register to comment.