【问题标题】:The build is failing for IOS in flutterIOS 在颤振中构建失败
【发布时间】:2022-11-15 14:20:08
【问题描述】:
/Users/avinashkasukurthi/Developer/Flutter Projects/zopnote/consumer-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.1.99. (in target 'gRPC-C++' from project 'Pods')
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'gRPC-C++' from project 'Pods')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
Result bundle written to path:
    /var/folders/vv/l96pnk5d49z96x0w400w0r0m0000gn/T/flutter_tools.jlRzPP/flutter_ios_build_temp_dira4jNaQ/temporary_xcresult_bundle

无法为模拟器构建应用程序。 在 iPhone 13 上启动应用程序时出错。

【问题讨论】:

    标签: ios flutter build flutter-build


    【解决方案1】:

    请转到 Podfile 里面检查这一行 platform :ios, '9.0' 并将 9.0 更改为 11.0 或 12.0,如果它的注释行然后取消注释它。 像这样

    编辑

    向下滚动到 Podfile 的末尾,您会发现类似这样的内容

    添加这一行:

    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
    

    【讨论】:

      猜你喜欢
      • 2021-06-06
      • 1970-01-01
      • 2022-01-01
      • 2019-09-25
      • 2020-01-17
      • 2021-12-13
      • 2023-02-22
      相关资源
      最近更新 更多