Home Features Docs Blog Support GitHub

Generate Bindings Error


#1

Hello,

I’m walking through my first MOE tutorial and having problems generating bindings to a ListViewController. The operation is met with the following errors:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.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]’)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.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]’)

Is this some kind of incompatibility with iOS 11.1?

Thanks for any pointers!


(Thomas Gallinari) #2

I’ve got the same errors but the console says ‘Build successful’ and the bindings are generated correctly. There has been a reply of the team about this issue, it is under investigation and not considered as blocker:


#3

I can also confirm that I get this error when generating bindings but it doesn’t seem to affect the outcome of the operation. All bindings seem to work normally.


(Roland Vigh - Migeran) #4

Hi!

We released moe-sdk and moe-gradle 1.4.1 version

Best Regards,
Roland


#5

Hi - thanks for the feedback. I have updated the MOE Android Studio plugin to v.1.4.0, however I still get the NSUUID.h errors when generating the bindings. The binding file is indeed created regardless of these errors, however the file that is generated is littered with “Cannot resolve corresponding JNI method” errors.

Can you think of anything else I may be doing wrong?

Thanks!


(Roland Vigh - Migeran) #6

Hi!

Please try with moe-gradle 1.4.1, this plugin use moe-sdk 1.4.1

Best Regards,
Roland


#7

Ah, I see - I was to update the version in the ios module’s build.gradle file. I had been attempting to just update the Android Studio MOE plugin, but once I moved to 1.4.1 in build.gradle the issues went away.

Thanks for your help!


#8

Same here. Updated to 1.4.1 and bindings are generated without errors now. Thanks!