0

I have a flutter project and it runs perfectly on Android. But when it comes to running on ios or archive through Xcode, it always comes to the problem flutter.h not found. I occur this problem in my past project but all of them could be solved with different methods on the internet.

These are all the methods I had tried:

error: 'Flutter/Flutter.h' file not found when flutter run on iOS

https://fluttercorner.com/error-flutter-flutter-h-file-not-found-when-flutter-run-on-ios/

This is the flutter doctor -v:

    zekaichong@ZeKais-MacBook-Air flutkit % flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 11.5.1 20G80 darwin-arm, locale en-AU)
    • Flutter version 2.8.1 at /Users/zekaichong/Downloads/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (7 days ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/zekaichong/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.61.0)
    • VS Code at /Users/zekaichong/Documents/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.110

• No issues found!

Xcode: Xcode

Elegalaxy
  • 1
  • 4

0 Answers0