fryette / webview_cookie_manager

MIT License
48 stars 52 forks source link

App fails on flutter build ios #17

Closed jacklovett closed 4 years ago

jacklovett commented 4 years ago

When running flutter build ios i get the following error...


flutter build ios
Building com.orangelv.coerver for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: WE63LT22V5
Running pod install...                                              1.7s
Running Xcode build...                                                  

 └─Compiling, linking and signing...                         1.4s
Xcode build done.                                           32.6s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    /Users/jack.lovett/dev/playerpathway-webview-apps/coerver/ios/Runner/GeneratedPluginRegistrant.m:16:9: fatal error: module 'webview_cookie_manager' not found
    @import webview_cookie_manager;
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    /Users/jack.lovett/dev/playerpathway-webview-apps/coerver/ios/Runner/GeneratedPluginRegistrant.m:16:9: fatal error: module 'webview_cookie_manager' not found
    @import webview_cookie_manager;
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Encountered error while building for device.

flutter run works fine. I am using webview_cookie_manager: ^1.0.3 and i am targeting platform :ios, '11.0' as described in docs. Any ideas?

Here is my flutter doctor output if that helps

flutter doctor   
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.4 19E287, locale en-LV)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.48.1)
[✓] Connected device (1 available)

• No issues found!
fryette commented 4 years ago

Could you please remove pod file and run pod install? More info can be found here https://stackoverflow.com/questions/59362862/flutter-ios-build-failed-pod-files-error

Feel free to reopen the ticket!

jacklovett commented 4 years ago

Why would you close this ticket before receiving any feedback? This does not fix the issue. I had already tried this.

fryette commented 4 years ago

I see you are using it in your custom project. Could you please try to reproduce it with example?

jacklovett commented 4 years ago

I found the problem. I had changed platform :ios to 11.0 as stated in the webview_cookie_manager documentation, but i had not changed the Deployment Info > Target in xcworkspace. Problem solved. Thanks image

fryette commented 4 years ago

@jacklovett Good to know!

alexander-dejeu commented 3 years ago

Had the same issue! 🙈 Thoughts on updating the ReadMe to include a hint around updating the min version in both places?