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

'flutter_inappbrowser/flutter_inappbrowser-Swift.h' file not found #130

Closed
shijianzhong opened this issue Jul 17, 2019 · 15 comments
Closed
Labels

Comments

@shijianzhong
Copy link

ng/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappbrowser-1.2.1/ios/Cl
asses/InAppBrowserFlutterPlugin.m:19:9: fatal error:
'flutter_inappbrowser/flutter_inappbrowser-Swift.h' file not found
#import <flutter_inappbrowser/flutter_inappbrowser-Swift.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

@akshatjagga
Copy link

akshatjagga commented Aug 5, 2019

Hi @shijianzhong,

Did you find how to fix his?

Thanks

@pichillilorenzo
Copy link
Owner

Try to clean the project and install the latest version of this plugin. Also, this plugin changed its name to flutter_inappwebview. The current latest version now is 2.1.0+1. So, you can change your dependency influtter_inappwebview: ^2.1.0+1.

@dudizimber
Copy link

dudizimber commented Feb 10, 2020

I have the same problem...

/Users/Admin/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-2.0.1+1/ios/Classes/InAppWebViewFlutterPlugin.m:19:9: fatal error: 'flutter_inappwebview-Swift.h' file not found
#import <flutter_inappwebview-Swift.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

flutter_inappwebview: ^2.0.1+1
Xcode 11.3

@andre-arsenault
Copy link

I'm having the same problem:

/Users/andre/Development/flutter/.pub-cache/git/flutter_inappwebview-9c7ac0da8f01ceb40430da58397bdb31968ca5b1/ios/Classes/InAppWebViewFlutterPlugin.m:19:9: fatal error: 'flutter_inappwebview/flutter_inappwebview-Swift.h' file not found
#import <flutter_inappwebview/flutter_inappwebview-Swift.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

I am using this plugin (direct from master) as a work-around for this issue, as mentioned here. This solves the Android crash, but now I can't build on iOS!

My Flutter project is Swift-based for iOS.

Any solutions out there?

This was referenced Jul 6, 2020
@VeeTsien
Copy link

VeeTsien commented Jul 7, 2020

Same issue here. This is the error message from Xcode 11.2:

/Users/veratsien/Development/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-4.0.0+4/ios/Classes/InAppWebViewFlutterPlugin.m:19:9: 'flutter_inappwebview/flutter_inappwebview-Swift.h' file not found

Any troubleshooting we can try out?

@MeshkaniMohammad
Copy link

same here

@SimonRijn
Copy link

Same here

1 similar comment
@LailaiMaster
Copy link

Same here

@LailaiMaster
Copy link

LailaiMaster commented Jul 22, 2020

I solved
1.your project/ios/Podfile use_frameworks! ,run .
`target 'Runner' do
use_frameworks!
use_modular_headers!

#Flutter Pod`

If this problem occurs:
"target has transitive dependencies that include statically linked binaries"
2.find this library,pod/xxx.podspec ,add “s.static_framework=true”

A new Flutter plugin.
DESC
s.homepage = 'http://lllgm.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => '527639282@qq.com' }
s.source = { :path => '.' }
s.source_files = 'Classes//*'
s.public_header_files = 'Classes/
/*.h'
s.dependency 'Flutter'
s.dependency 'AlipaySDK-iOS'
s.platform = :ios, '8.0'
s.static_framework=true #add it

@VeeTsien
Copy link

VeeTsien commented Jul 22, 2020

Adding use_frameworks! and use_modular_headers! worked!!!

Thank you thank you thank you!!! @LailaiMaster

(Although being able to build on iOS has brought some UI problems into daylight 😂 More bugs to fix)

@LailaiMaster
Copy link

@VeeTsien No thanks 😁

@llama95
Copy link

llama95 commented Feb 19, 2021

@LailaiMaster first step worked for me thanks :)

@AAChartModel
Copy link

Add use_frameworks! into your Podfile , Just like this.

image

That's all. Thanks @LailaiMaster

Copy link

github-actions bot commented Oct 7, 2024

This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.

@github-actions github-actions bot added the stale label Oct 7, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests