Raf*_*.C. 113 xcode ios flutter
我在项目中将所有内容更改为 9.0,但在许多 pod 中出现相同的错误。
我尝试做很多不同的事情,但没有任何效果。有谁知道我该如何解决这个问题?
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'GoogleAppMeasurement' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'FirebaseAuth' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'GoogleUtilities' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'vibration' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'nanopb' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'BoringSSL-GRPC' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'gRPC-Core' from project 'Pods')
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is
9.0 to 14.0.99. (in target 'gRPC-C++' from project 'Pods')
Run Code Online (Sandbox Code Playgroud)
为设备构建时遇到错误。
Je *_*ick 141
对我有用的是@raffaelli-lc 和@arhan-reddy-busam 答案的组合。
确保您执行以下操作:
MinimumOSVersion为 9.0 英寸ios/Flutter/AppFrameworkInfo.plistplatform :ios, '9.0'在ios/Podfileios/Podfile包含以下安装后脚本: post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
Run Code Online (Sandbox Code Playgroud)
在进行生产构建时,以下例程对我有用:
flutter clean \
&& rm ios/Podfile.lock pubspec.lock \
&& rm -rf ios/Pods ios/Runner.xcworkspace \
&& flutter build ios --build-name=1.0.0 --build-number=1 --release --dart-define=MY_APP_ENV=prod
Run Code Online (Sandbox Code Playgroud)
Raf*_*.C. 49
我用这段代码解决了,谢谢!在 PodFile 的末尾
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
Run Code Online (Sandbox Code Playgroud)
小智 15
这是因为 XCode 12 只支持构建 iOS 目标版本 9 - 14。不幸的是,flutter 设置的默认 iOS 目标是 8。但是您应该能够使用 XCode 更改 ios/Runner.xcworkspace 文件中的目标。请参阅flutter 文档部分“查看 Xcode 项目设置”-> 标题“部署目标:”。
您也可以尝试更新扑1.22 beta测试版,支持iOS的14和12的XCode(如注意这里)
inz*_*nzo 13
转到 Pods 并为您使用的每个框架更改 iOS 版本,如我的屏幕截图所示
我尝试了很多方法,但似乎解决了这个问题的是:
flutter pub cache repair
Run Code Online (Sandbox Code Playgroud)
https://dart.dev/tools/pub/cmd/pub-cache
| 归档时间: |
|
| 查看次数: |
59761 次 |
| 最近记录: |