- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 Android Studio 中运行我的 Flutter 项目,pod 安装顺利,但每次 Xcode 构建最终都会失败,比如先完成整个构建的 20/30 步。
奇怪的事实是 Android Studio 说:
Command PhaseScriptExecution failed with a nonzero exit code
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.2.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.2.99. (in target 'path_provider' 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.2.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.2.99. (in target 'BoringSSL-GRPC' 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.2.99. (in target 'AppAuth' 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.2.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.2.99. (in target 'GTMAppAuth' 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.2.99. (in target 'gRPC-C++' 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.2.99. (in target 'google_sign_in' 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.2.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.2.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.2.99. (in target 'FirebaseFirestore' 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.2.99. (in target 'FirebaseAuth' 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.2.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.2.99. (in target 'firebase_auth' 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.2.99. (in target 'cloud_firestore' 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.2.99. (in target 'gRPC-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.2.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.2.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' 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.2.99. (in target 'GoogleSignIn' 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.2.99. (in target 'leveldb-library' 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.2.99. (in target 'Flutter' 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.2.99. (in target 'abseil' from project 'Pods')
但是当我用 Xcode 打开工作区时,我看到我在 Runner 中的目标有
iOS deployment target 14.0
所以我不明白,它应该设置为 14 但实际上是 8。
Podfile
,
Podfile.lock
和
Pods
通过
flutter run
我更喜欢让 Flutter 在不使用
pod init
的情况下处理 Pod 的生成和安装,
pod install
或编辑
Podfile
.
最佳答案
除了 Akif 所说的之外,这里还有一个运行列表,其中列出了为什么会出现此错误的原因:
MinimumOSversion
至9.0
在 ios/Flutter/AppFrameworkInfo.plist
Runner -> Project -> Runner
设置为 9.0
Deployment Info
在 Runner -> Targets -> Runner
设置为 iOS 9.0
GoogleService-Info.plist
在那里并且是通过 Xcode 添加的(例如,不是通过 Finder 复制/粘贴到目录中)#platform :iOS, '9.0'
在您的 ios/Podfile
中添加一行flutter clean \
&& rm ios/Podfile.lock pubspec.lock \
&& rm -rf ios/Pods ios/Runner.xcworkspace \
&& flutter build ios
关于ios - IPHONEOS_DEPLOYMENT_TARGET 设置为 8.0 Xcode 12 (Flutter),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65008533/
我安装了react-native-maps并开始收到以下警告: warning: The iOS Simulator deployment target'IPHONEOS_DEPLOYMENT_TAR
我安装了react-native-maps并开始收到以下警告: warning: The iOS Simulator deployment target'IPHONEOS_DEPLOYMENT_TAR
我使用这个项目为 iOS 构建 boost:https://github.com/danoli3/ofxiOSBoost/blob/master/scripts/build-libc%2B%2B 我的
我在 Android Studio 中运行我的 Flutter 项目,pod 安装顺利,但每次 Xcode 构建最终都会失败,比如先完成整个构建的 20/30 步。 奇怪的事实是 Android St
我刚拿到最新版本的代码,但遇到了这个编译错误: Ld /Users/alexgenadinik/Library/Developer/Xcode/DerivedData/OnlineMarketing-
我无法在 iOS 模拟器上构建 React Native 应用程序。我一遍又一遍地收到这个错误。这是我的控制台输出 Launching lib/main.dart on iPhone SE (2nd
我无法在 iOS 模拟器上构建 Flutter 应用程序。我一遍又一遍地收到这个错误。我的 flutter 医生很干净。 Launching lib/main.dart on iPhone SE (
我在项目中将所有内容都更改为 9.0,但我在很多 pod 中都遇到了同样的错误。 我尝试做很多不同的事情,但没有任何效果。有谁知道我该如何解决这个问题? warning: The iOS deploy
我是一名优秀的程序员,十分优秀!