filestack / filestack-ios

Official iOS SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
MIT License
55 stars 36 forks source link

Conflicting nullability specifier on return types, '_Nullable' conflicts with existing specifier 'nonnull' #8

Closed desmochai closed 7 years ago

desmochai commented 7 years ago

Swift compiler warning in:

Is this warning related to Xcode 8 updates in nullability declaration check? Any thoughts?

seantanly commented 7 years ago

@pJes2 I'm encountering the a/m warning too when compiling for Swift 3 on Xcode 8.2 for FSSecurity.h and FSWatermark.h.

https://github.com/filestack/filestack-ios/blob/master/Filestack/Shared/Options/FSSecurity.h#L22

https://github.com/filestack/filestack-ios/blob/master/Filestack/Shared/Transformations/FSWatermark.h#L42

Changing

- (instancetype _Nullable)init NS_UNAVAILABLE;

to

- (instancetype _Null_unspecified)init NS_UNAVAILABLE;

fixes the warning.

Would appreciate if a new version is released to fix the warnings. Thanks!

pJes2 commented 7 years ago

please update to 0.3.5, should be fine.

seantanly commented 7 years ago

@pJes2 I have updated to version 0.3.5 and the warnings are gone. Thanks!

pJes2 commented 7 years ago

closing