Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App fails on flutter build ios #17

Closed
jacklovett opened this issue Aug 26, 2020 · 6 comments
Closed

App fails on flutter build ios #17

jacklovett opened this issue Aug 26, 2020 · 6 comments

Comments

@jacklovett
Copy link

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
Copy link
Owner

fryette commented Aug 27, 2020

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!

@fryette fryette closed this as completed Aug 27, 2020
@jacklovett
Copy link
Author

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

@fryette
Copy link
Owner

fryette commented Aug 28, 2020

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

@fryette fryette reopened this Aug 28, 2020
@jacklovett
Copy link
Author

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
Copy link
Owner

fryette commented Aug 28, 2020

@jacklovett Good to know!

@alexander-dejeu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants