-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[webview_flutter_wkwebview] 'Flutter/Flutter.h' file not found Xcode 15 #135099
Comments
I have same problem with url_laucnher package. After |
I think the problem is in my Podfile. Here guy has same problem |
I did all the things on the internet and nothing worked! I even downgraded to xcode 14.3.1 but didn't work. |
@chanjungkim I'm downgraded to Xcode 14.3.1, then deleted:
Removed all Xcode files from my computer (Caches, Virtual devices and other) run:
|
hi, i receive this error flutter.h not found, xcode15 ios 17
my podfile:
|
I also use Minimal sample code// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
void main() => runApp(const MaterialApp(home: WebViewExample()));
class WebViewExample extends StatefulWidget {
const WebViewExample({super.key});
@override
State<WebViewExample> createState() => _WebViewExampleState();
}
class _WebViewExampleState extends State<WebViewExample> {
late final WebViewController controller;
@override
void initState() {
super.initState();
// #docregion webview_controller
controller = WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..setBackgroundColor(const Color(0x00000000))
..setNavigationDelegate(
NavigationDelegate(
onProgress: (int progress) {
// Update loading bar.
},
onPageStarted: (String url) {},
onPageFinished: (String url) {},
onWebResourceError: (WebResourceError error) {},
onNavigationRequest: (NavigationRequest request) {
if (request.url.startsWith('https://www.youtube.com/')) {
return NavigationDecision.prevent;
}
return NavigationDecision.navigate;
},
),
)
..loadRequest(Uri.parse('https://google.com/'));
// #enddocregion webview_controller
}
// #docregion webview_widget
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Flutter Simple Example')),
body: WebViewWidget(controller: controller),
);
}
// #enddocregion webview_widget
} Can you try running this sample on new project or plugin example to see if you can replicate the issue? |
@Auramel have you resolve? |
@huycozy hi, for firebase we have chenge the podfile for the bug DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead. I think the problem is here, can you try to add firebase and change the podfile. |
@stoppimyse no, I deleted Xcode 15 and installed Xcode 14.3.1 |
i've resolve usinng this podfile configuration
|
@huycozy yes, I create new project and it running on Xcode 15. But! I replaced my ios folder from new flutter project and it not working. |
@Auramel I can reproduce this issue with your initial Podfile configuration but I notice it's missing Also, regarding #135099 (comment), there is a related topic at flutterfire repository: firebase/flutterfire#11614. It's cocoapods issue and looks like you are attempting to solve it with workaround, right? @Auramel @chanjungkim Please try the podfile configuration above and confirm this. |
With this, I got : |
My Podfile configuration I found in Google. Ok, I will try. I deleted Xcode 15, I'll have to download it again. |
Flutter should inject a workaround for the |
@Auramel Please do not post pictures of text; they are much harder to read, and they aren't searchable. It's also not clear to me how that is related to this issue. It's not the same error, and it's not even from a Flutter-team-provided plugin. Does this mean you no longer have an issue with |
were you able to resolve this? I updated my podfile and am getting the same error that you mentioned. |
Issue is still open. Upgraded Cocoapods to v1.13.0 and the fix mentioned above is not needed anymore. Then with pod install there is the error 'Flutter/Flutter.h' file not found on all pods. Below is Podfile: `# Uncomment this line to define a global platform for your project CocoaPods analytics sends network stats synchronously affecting flutter build latency.ENV['COCOAPODS_DISABLE_STATS'] = 'true' project 'Runner', { def flutter_root File.foreach(generated_xcode_build_settings_path) do |line| require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do flutter_install_all_ios_pods File.dirname(File.realpath(FILE)) inherit! :search_paths#end post_install do |installer| |
Solution: |
In my case the issue was actually related to Cocoapods being installed via brew & older version via gem also. Completely deleted brew and updated to the latest fix via gem and Flutter/Flutter.h was there to be imported again. |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
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, including the output of |
I'm upgraded on Xcode 15 and has this problem on build
![image](https://private-user-images.githubusercontent.com/5775873/269192915-1c061865-7495-4990-b411-98ab84b6da84.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIwMzU0NjAsIm5iZiI6MTcyMjAzNTE2MCwicGF0aCI6Ii81Nzc1ODczLzI2OTE5MjkxNS0xYzA2MTg2NS03NDk1LTQ5OTAtYjQxMS05OGFiODRiNmRhODQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjZUMjMwNjAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjZmNzNhZTcxZDA2MGFhZGEwNzUxOGIzMGNjZTRmNmNlNmUzZTk3OWNlNThkMDc0YmQ2ZDgzOTY3MWYxNzQ3NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.-A3GGbQwsc8ZkKHPQxm_sO5GrfsyTEJbfeC3XNj0-8g)
I update Podfile before because I have error on build
DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead
Podfile
I make flutter flutter pub get and flutter pub upgrade
I use mac os on m1, Ventura 13.5.2
flutter doctor -v
The text was updated successfully, but these errors were encountered: