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?
Just released: https://forums.xamarin.com/discussion/104800/objective-sharpie-3-4
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 ')
(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 ')
I'm having the same issue!
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
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
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies