gpt4 book ai didi

ios - iOS 部署目标 'IPHONEOS_DEPLOYMENT_TARGET' 设置为 8.0,在 Flutter 中如何更改最小 IOS Deploying Target

转载 作者:行者123 更新时间:2023-12-02 10:40:08 37 4
gpt4 key购买 nike

我在项目中将所有内容都更改为 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')
为设备构建时遇到错误。

最佳答案

对我有用的是@raffaelli-l-c 和@arhan-reddy-busam 答案的组合。
确保执行以下操作:

  • 设置 MinimumOSVersionios/Flutter/AppFrameworkInfo.plist 中的 9.0
  • 确保取消注释 platform :ios, '9.0'ios/Podfile
  • 确保 ios/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
    在进行生产构建时,以下例程对我有用:
        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

    关于ios - iOS 部署目标 'IPHONEOS_DEPLOYMENT_TARGET' 设置为 8.0,在 Flutter 中如何更改最小 IOS Deploying Target,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63973136/

    37 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com