Warnings when building
warning: unused variable 'fileName' [-Wunused-variable] NSString *fileName = [[fileArgument lastPathComponent] stringByDeletingPathExtension];
warning: category is implementing a method which will also be implemented by its primary class [-Wobjc-protocol-method-implementation] - (CGImageRef)newBorderMask:(NSUInteger)borderSize size:(CGSize)size {
method 'newBorderMask:size:' declared here - (CGImageRef)newBorderMask:(NSUInteger)borderSize size:(CGSize)size;
warning: enumeration values 'UIImageOrientationUp' and 'UIImageOrientationUpMirrored' not handled in switch [-Wswitch] switch (self.imageOrientation) { ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:151:13: note: add missing switch cases switch (self.imageOrientation) { ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:171:13: warning: 4 enumeration values not handled in switch: 'UIImageOrientationUp', 'UIImageOrientationDown', 'UIImageOrientationLeft'... [-Wswitch] switch (self.imageOrientation) { ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:171:13: note: add missing switch cases switch (self.imageOrientation) { ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:110:1: warning: category is implementing a method which will also be implemented by its primary class [-Wobjc-protocol-method-implementation] - (UIImage *)resizedImage:(CGSize)newSize ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:12:1: note: method 'resizedImage:transform:drawTransposed:interpolationQuality:' declared here - (UIImage *)resizedImage:(CGSize)newSize ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:148:1: warning: category is implementing a method which will also be implemented by its primary class [-Wobjc-protocol-method-implementation] - (CGAffineTransform)transformForOrientation:(CGSize)newSize { ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:16:1: note: method 'transformForOrientation:' declared here - (CGAffineTransform)transformForOrientation:(CGSize)newSize; ^ 4 warnings generated. /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+RoundedCorner.m:60:1: warning: category isimplementing a method which will also be implemented by its primary class [-Wobjc-protocol-method-implementation] - (void)addRoundedRectToPath:(CGRect)rect context:(CGContextRef)context ovalWidth:(CGFloat)ovalWidth ovalHeight:(CGFloat)ovalHeight { ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+RoundedCorner.m:11:1: note: method 'addRoundedRectToPath:context:ovalWidth:ovalHeight:' declared here - (void)addRoundedRectToPath:(CGRect)rect context:(CGContextRef)context ovalWidth:(CGFloat)ovalWidth ovalHeight:(CGFloat)ovalHeight; ^ 1 warning generated. /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/FlutterNativeImagePlugin.m:93:19: warning: unused variable 'fileName' [-Wunused-variable] NSString *fileName = [[fileArgument lastPathComponent] stringByDeletingPathExtension]; ^ 1 warning generated. /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Alpha.m:97:1: warning: category is implementing a method which will also be implemented by its primary class [-Wobjc-protocol-method-implementation] - (CGImageRef)newBorderMask:(NSUInteger)borderSize size:(CGSize)size { ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Alpha.m:10:1: note: method 'newBorderMask:size:' declared here - (CGImageRef)newBorderMask:(NSUInteger)borderSize size:(CGSize)size; ^ 1 warning generated. /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:96:99: warning: enum values with underlying type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat] [NSException raise:NSInvalidArgumentException format:@"Unsupported content mode: %d", contentMode]; ~~ ^~~~~~~~~~~ %ld (long) /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:151:13: warning: enumeration values 'UIImageOrientationUp' and 'UIImageOrientationUpMirrored' not handled in switch [-Wswitch] switch (self.imageOrientation) { ^ /Users/peterlum/dev/flutter/.pub-cache/git/flutter_native_image-570cafee663b360c27be9a002d15bda020332f5b/ios/Classes/UIImage+Resize.m:151:13: note: add missing switch cases switch (self.imageOrientation) { ^ /Classes/UIImage+Resize.m:171:13: warning: 4 enumeration values not handled in switch: 'UIImageOrientationUp', 'UIImageOrientationDown', 'UIImageOrientationLeft'... [-Wswitch] switch (self.imageOrientation) { ^ Classes/UIImage+Resize.m:171:13: note: add missing switch cases switch (self.imageOrientation) { ^ Classes/UIImage+Resize.m:110:1: warning: category is implementing a method which will also be implemented by its primary class [-Wobjc-protocol-method-implementation] - (UIImage *)resizedImage:(CGSize)newSize ^ Classes/UIImage+Resize.m:12:1: note: method 'resizedImage:transform:drawTransposed:interpolationQuality:' declared here - (UIImage *)resizedImage:(CGSize)newSize
And many, many others ...
Thanks for reporting the issue. Right now I don't have a mac available and no time to work on it. Might be something someone else can work on.. just solving the warnings..