Closed evertonfoz closed 5 years ago
@evertonfoz Supports iOS8 and above. The same applies to other Plugins.
can you help me on how to fix to avoid the mistake i went through?
Look this errors at the end
/Users/evertoncoimbradearaujo/flutter/.pub-cache/hosted/pub.dartlang.org/image_downloader-0.18.1/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 /Users/evertoncoimbradearaujo/flutter/.pub-cache/hosted/pub.dartlang.org/image_downloader-0.18.1/ios/Classes/ImageDownloaderPlugin.m:2:
/Users/evertoncoimbradearaujo/desin/build/ios/Debug-iphonesimulator/image_downloader/image_downloader.framework/Headers/ImageDownloaderPlugin.h:3:12: note: previous definition is here
@interface ImageDownloaderPlugin : NSObject
I created a flutter project from scratch, inserted image_downloader: ^ 0.18.1 in pubspec.yaml, I got the get packages and when executing the following error is displayed
Launching lib / main.dart on iPhone Xʀ in debug mode ... Running pod install ... Running Xcode build ... Xcode build done. 19.6s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED
Xcode's output: ↳ warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.4.99. (in target 'Flutter') 1 error generated. note: Using new build systemnote: Planning buildnote: Constructing build description
Without its component, build occurs without warnings and errors.
Please, can you help me?
The problem was solved adding use_frameworks! in podfile...thanks
@evertonfoz Was use_frameworks!
supposed to be described by default, but wasn't it?
Exactly. When creating a Flutter project this statement was not included. But I believe it's some problem in my environment. I think it would be interesting for you to put in your documentation the need for it.
I wrote it on the wiki just in case. https://github.com/ko2ic/image_downloader/wiki#in-case-of-build-failed-with-simulator-deployment-target-is-set-to-70-warning
Hello how are you? When I install image_downloader 0.18.1, I get several warnings and an error as follows:
Launching lib/main.dart on iPhone Xʀ in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 145,6s
Failed to build iOS app
Error output from Xcode build:
↳
Xcode's output:
↳
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
Can you help me please?
Thanks