Will there be support for iOS 11 SDK?

Whenever I try to create a binding of an Objective-C Framework with iphoneos11.0 sdk the parsing of the header files fails.
Will there be an update to Objective Sharpie with a fix for that?


Best Answer


  • JonahHulselmansJonahHulselmans USMember ✭✭
    edited September 2017

    I'm having the same problem. When will there be an update of objective sharpie @abock ?

  • I have the same problem i think. I am getting error. I am a new to using sharpie but this looks like an error parsing a sdk header?


    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:128:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h:26:49: error: nullability specifier
    '_Nullable' cannot be applied to non-pointer type 'uuid_t' (aka 'unsigned char [16]')

    • (instancetype)initWithUUIDBytes:(const uuid_t _Nullable)bytes;
      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h:29:30: error: nullability specifier
      '_Nonnull' cannot be applied to non-pointer type 'uuid_t' (aka 'unsigned char [16]')

    • (void)getUUIDBytes:(uuid_t _Nonnull)uuid;

  • MoritzPflaumMoritzPflaum USMember

    I'm having the same issue!

  • MarcPellMarcPell USMember

    Me too!

  • LinnKristinLinnKristin NOUniversity ✭✭

    Are you passing framework or header file ? When I passed a framework as an argument it failed, but when I did *.h I sort of got it working.

    sharpie bind -framework iSMP.framework -sdk iphoneos11.0
    gave the same errors as above and no files, but

    sharpie bind -output payex -namespace payex -sdk iphoneos11.0 *.h

    still gave me errors, but produced the ApiDefinitions.cs
    and StructsAndEnums.cs

  • delortshimangadelortshimanga USUniversity

    I am having the same issue but I was able to find the following changes since ios 11 release

    Modified -[NSUUID initWithUUIDBytes:]
    From IOS 10 - (nonnull instancetype)initWithUUIDBytes:(const uuid_t)bytes
    To IOS 11 - (nonnull instancetype)initWithUUIDBytes:(nullable uuid_t)bytes

    Modified -[NSUUID getUUIDBytes:]
    From IOS 10 - (void)getUUIDBytes:(uuid_t)uuid
    To IOS 11 - (void)getUUIDBytes:(nonnull uuid_t)uuid

Sign In or Register to comment.