百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#58555·反应-内在

iOS: updateOSDeploymentTarget 会跳过资源捆绑目标,因此 Xcode 27 会以"部署目标 ... 支持的范围为 15.0"的错误终止构建。

作者: sahad0创建于 2026年9月16日更新于 2026年9月16日
标签Needs: Author FeedbackNeeds: Repro

def self.updateOSDeploymentTarget(installer) min_version = Helpers::Constants.min_ios_version_supported installer.target_installation_results.pod_target_installation_results .each do |pod_name, target_installation_result| targets = [target_installation_result.native_target] + target_installation_result.resource_bundle_targets targets.each do |target| target.build_configurations.each do |config| old_iphone_deploy_target = config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] ? config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] : min_version config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = [min_version.to_f, old_iphone_deploy_target.to_f].max.to_s end end end end end

内容来源: react/react-native

查看 GitHub 原文在 GitHub 查看讨论