现在它无法启动,并出现以下代码...
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 42,0s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
In file included from /Users/patrickmeyer/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.m:5:
/Users/patrickmeyer/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'share' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'GoogleDataTransport' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'shared_preferences' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'Firebase' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'GoogleUtilities' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'GoogleAppMeasurement' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'firebase_core' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'FirebaseCore' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'FirebaseCoreDiagnostics' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'firebase_admob' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'nanopb' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'Flutter' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
Flutter doctor检查结果看起来良好...
[✓] Flutter (稳定通道, 版本号 1.22.5, 运行在 Mac OS X 10.15.7 19H114 darwin-x64, 地区 de-DE) • Flutter 版本号为 1.22.5,安装位置为 /Users/patrickmeyer/Developer/flutter • Framework 版本 7891006299(13 天前),2020-12-10 11:54:40 -0800 • Engine 版本 ae90085a84 • Dart 版本 2.10.4
[✓] Android 工具链 - 用于开发 Android 设备 (Android SDK 版本号 29.0.3) • Android SDK 安装位置为 /Users/patrickmeyer/Library/Android/sdk • 平台版本号为 android-29,构建工具版本号为 29.0.3 • Java 二进制文件位于:/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java 版本为 OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • 所有的 Android 许可证均已接受。
[✓] Xcode - 用于开发 iOS 和 macOS 应用程序 (Xcode 12.3) • Xcode 安装位置为 /Applications/Xcode.app/Contents/Developer • Xcode 版本号为 12.3,构建版本号为 12C33 • CocoaPods 版本号为 1.10.0
[✓] Android Studio (版本号 4.1) • Android Studio 安装位置为 /Applications/Android Studio.app/Contents • 已安装 Flutter 插件 • Dart 插件版本号为 201.9306 • Java 版本为 OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] 连接设备 (1 台可用设备) • iPhone 12 Pro Max (移动设备) • 11ACA273-A0C3-405D-993A-A9AF9057887C • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (模拟器)
• 没有发现任何问题!