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

Failed to build iOS app - 'flutter_webview_plugin/FlutterWebviewPlugin.h' file not found #41

Closed
john-compass opened this issue Feb 26, 2018 · 2 comments

Comments

@john-compass
Copy link

john-compass commented Feb 26, 2018

Hi, I've recently integrated this plugin into my working Flutter project and attempted to build a preview for Android (which seems to work fine), and iOS which returned an error of the following:

Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/flutterprojects/myapp/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'flutter_webview_plugin/FlutterWebviewPlugin.h' file not found
#import <flutter_webview_plugin/FlutterWebviewPlugin.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

I could use some advice to know if the error I am seeing is by design on my part.

@john-compass john-compass changed the title Failed to build iOS app Failed to build iOS app - 'flutter_webview_plugin/FlutterWebviewPlugin.h' file not found Feb 26, 2018
@lejard-h
Copy link
Collaborator

@john-compass
Hello, if you fixed the problem yourself, could you share the solution here for other people having the same problem ?

@brianmaxon
Copy link

The solution seems to be making sure that when you created the flutter project, you did not select the Swift iOS option. See this issue flutter/flutter#15152 for details.

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