fluttercandies / flutter_image_compress

flutter image compress
MIT License
636 stars 214 forks source link

iOS build error (fatal error: module 'flutter_image_compress' not found ) #188

Closed john990 closed 2 years ago

john990 commented 3 years ago

flutter_image_compress: ^1.1.0 Flutter (Channel stable, 2.2.2)

when run flutter build ios found this error:

/Users/kai/Developer/workspace/quick_scanner/ios/Runner/GeneratedPluginRegistrant.m:34:9: fatal error: module
    'flutter_image_compress' not found
    @import flutter_image_compress;
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    1 error generated.

I have tried flutter clean, pod install --repo-update, Doesn't work.

#182 also doesn't work. Has anyone encountered a similar problem?

AryashDubey commented 2 years ago

Yeah I have encoutered the same issue have you got any fixes?

Thanks in advance!

john990 commented 2 years ago

No, maybe someone else has a solution? This is really frustrating.

taoshotaro commented 2 years ago

Changing General > Deployment Info > iOS 9 in Xcode project might work. I changed mine to iOS 12.0 which is same as my Podfile deployment target, and it worked.

AryashDubey commented 2 years ago

If you are using firebase then just try deleting the googleinfo.plist or just ensure that the file is correctly placed. That fixed the issue for me.

john990 commented 2 years ago

Changing General > Deployment Info > iOS 9 in Xcode project might work. I changed mine to iOS 12.0 which is same as my Podfile deployment target, and it worked.

Cool, You are right!!

kalsariyac commented 2 years ago

Changing General > Deployment Info > iOS 9 in Xcode project might work. I changed mine to iOS 12.0 which is same as my Podfile deployment target, and it worked.

Yup, It's worked for me.