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