diff --git a/Justfile b/Justfile index 312ec115b9..2fb1708316 100644 --- a/Justfile +++ b/Justfile @@ -1021,8 +1021,9 @@ mobile-build-android: mobile-dev: #!/usr/bin/env bash set -euo pipefail - if ! pgrep -x Simulator &>/dev/null; then - open -a Simulator + # Xcode 27 replaced Simulator.app with DeviceHub.app. + if ! pgrep -x Simulator &>/dev/null && ! pgrep -x DeviceHub &>/dev/null; then + open -a Simulator 2>/dev/null || open -a DeviceHub sleep 3 fi ./scripts/mobile-worktree-overrides.sh diff --git a/mobile/ios/Podfile b/mobile/ios/Podfile index 901ba5aaa1..3c6e476b8b 100644 --- a/mobile/ios/Podfile +++ b/mobile/ios/Podfile @@ -1,4 +1,5 @@ -platform :ios, '16.0' +ios_deployment_target = '16.0' +platform :ios, ios_deployment_target # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' @@ -36,8 +37,17 @@ target 'Runner' do end post_install do |installer| + minimum_ios_version = Gem::Version.new(ios_deployment_target) installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) + # Pods and their resource bundles can retain older podspec deployment + # targets that newer Xcode versions no longer support. + target.build_configurations.each do |config| + deployment_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] + if deployment_target.nil? || Gem::Version.new(deployment_target) < minimum_ios_version + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = ios_deployment_target + end + end end # Flutter creates plugin symlinks during installation, so load the upstream # helper here rather than requiring an existing Pods install at parse time. diff --git a/mobile/ios/Podfile.lock b/mobile/ios/Podfile.lock index e25ae22ac6..fce4d0c6f1 100644 --- a/mobile/ios/Podfile.lock +++ b/mobile/ios/Podfile.lock @@ -227,6 +227,6 @@ SPEC CHECKSUMS: url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b video_player_avfoundation: dd410b52df6d2466a42d28550e33e4146928280a -PODFILE CHECKSUM: 3aac4aa13c3166f951fe137719268b7dc62b9110 +PODFILE CHECKSUM: 11998d8439eb9f4efd90e244a9209463c423d566 -COCOAPODS: 1.16.2 +COCOAPODS: 1.17.0