Skip to content

IOS error on start: 'Flutter/Flutter.h' file not found #17943

@romaluca

Description

@romaluca

With android emulator i have no problems, but with ios emulator, if i try to start my app i receive this error:

Launching lib/main.dart on iPhone 6s in debug mode...
Xcode build done.
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
In file included from /Users/luca/.pub-cache/hosted/pub.dartlang.org/share-0.5.0/ios/Classes/SharePlugin.m:5:
/Users/luca/.pub-cache/hosted/pub.dartlang.org/share-0.5.0/ios/Classes/SharePlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/luca/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.0/ios/Classes/PathProviderPlugin.m:5:
/Users/luca/.pub-cache/hosted/pub.dartlang.org/path_provider-0.4.0/ios/Classes/PathProviderPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
Could not build the application for the simulator.
Error launching application on iPhone 6s.
Exited (sigterm)

the flutter doctor is:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v0.4.6-pre.27, on Mac OS X 10.13.4 17E202, locale it-IT)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3.1)
[✓] Android Studio (version 3.1)
[✓] VS Code (version 1.23.1)
[✓] Connected devices (1 available)

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    packageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions