ko2ic / image_downloader

Flutter plugin that downloads images and movies on the Internet and saves to Photo Library on iOS or specified directory on Android.
https://pub.dartlang.org/packages/image_downloader#-readme-tab-
MIT License
92 stars 115 forks source link

error: definition of 'ImageDownloaderPlugin' must be imported from module 'image_downloader.ImageDownloaderPlugin' before it is required #67

Open JigneshWorld opened 4 years ago

JigneshWorld commented 4 years ago
Launching lib/main.dart on iPhone 11 in debug mode...
Running pod install...
Running Xcode build...
Xcode build done.                                            4.2s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET wakelock OF PROJECT Pods WITH CONFIGURATION Debug ===
    /user/.pub-cache/hosted/pub.dartlang.org/image_downloader-0.19.2/ios/Classes/ImageDownloaderPlugin.m:4:17: error: definition of 'ImageDownloaderPlugin' must be imported from module 'image_downloader.ImageDownloaderPlugin' before it is required
    @implementation ImageDownloaderPlugin
                    ^
    In module 'image_downloader' imported from /user/.pub-cache/hosted/pub.dartlang.org/image_downloader-0.19.2/ios/Classes/ImageDownloaderPlugin.m:2:
    /user/project/build/ios/Debug-iphonesimulator/image_downloader/image_downloader.framework/Headers/ImageDownloaderPlugin.h:3:12: note: previous definition is here
    @interface ImageDownloaderPlugin : NSObject<FlutterPlugin>
               ^
    1 error generated.

Could not build the application for the simulator.
Error launching application on iPhone 11.