Will there be support for iOS 11 SDK?

caldriancaldrian Christoph AldrianATMember

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?

Tagged:

Best Answer

Answers

  • JonahHulselmansJonahHulselmans Jonah Hulselmans USMember ✭✭
    edited September 27

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

  • Davidclark.5003Davidclark.5003 David clark USMember

    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?

    Dave

    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 Moritz Pflaum USMember

    I'm having the same issue!

  • MarcPellMarcPell Marc Pell USMember

    Me too!

  • LinnKristinLinnKristin Linn Kristin 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.

    So,
    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 delor tshimanga USUniversity

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

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

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

Sign In or Register to comment.