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 117 forks source link

IOS build error #2

Closed iwasnothing closed 5 years ago

iwasnothing commented 5 years ago

flutter/.pub-cache/hosted/pub.dartlang.org/image_downloader-0.9.1/ios/Classes/ImageDownloaderPlugin.m:2:9: fatal error: 'image_downloader/image_downloader-Swift.h' file not found

import <image_downloader/image_downloader-Swift.h>

        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

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

ko2ic commented 5 years ago

I have confirmed that it works correctly on iPhone XR. I think that it works if your ios/Pofile is the same as below. If not, please change, delete Podfile.lock and try again.

https://github.com/flutter/flutter/blob/master/packages/flutter_tools/templates/cocoapods/Podfile-swift

And Could you paste the result of flutter doctor -v?

ko2ic commented 5 years ago

It is closed because there are no reports from other users. Please make another issue if the same problem comes up.

ImaginationRoom commented 5 years ago

We have this problem as well.

Here is the error.

Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET shared_preferences OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/user1/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_downloader-0.11.2/ios/Classes/ImageDownloaderPlugin.m:2:9: fatal error: 'image_downloader/image_downloader-Swift.h' file not found
    #import <image_downloader/image_downloader-Swift.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.

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

We tried to build it on both the simulator and real device, getting the same error. This happened last week and we saw this issue, so we didn't bother to raise another issue.

Today we downloaded the latest built from Mar. 11, still having the same issue.

ko2ic commented 5 years ago

12