Description
I worked on MacOS, with the IDE of vscode, and I want build the code running on ios emulator of IPhone 11 Pro Max.
I have Execute the commands :
`lutter channel master
flutter upgrade
flutter channel stable
flutter upgrade`
flutter config --enable-ios
flutter create .
and then ,I execute the command :
flutter run
but it failed , the results are as follow:
To see a detailed report, use the --untranslated-messages-file
option in the tool to generate a JSON format file containing
all messages that need to be translated.
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 1.7s
**Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
In file included from /Users/mfch/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider-1.6.27/ios/Classes/FLTPathProviderPlugin.m:5:
/Users/mfch/flutter/.pub-cache/hosted/pub.flutter-io.cn/path_provider-1.6.27/ios/Classes/FLTPathProviderPlugin.h:5:9: fatal error: 'Flutter/Flutter.h'
file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/mfch/flutter/.pub-cache/hosted/pub.flutter-io.cn/package_info-0.4.3+2/ios/Classes/FLTPackageInfoPlugin.m:5:
/Users/mfch/flutter/.pub-cache/hosted/pub.flutter-io.cn/package_info-0.4.3+2/ios/Classes/FLTPackageInfoPlugin.h:5:9: fatal error: 'Flutter/Flutter.h'
file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description**
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.