Skip to content

[macos-15] iOS build fails on CI due to incorrect SDK targeting #12758

@ShawnYsp

Description

@ShawnYsp

Description

Our iOS application fails to build on the CI/CD pipeline. The build log indicates that it is attempting to use the iOS 18.0 SDK, which is not available on the build runner.
The error log:

Running pod install... 4.9s
Running Xcode build...
Xcode archive done. 3.9s
Failed to build iOS app
Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier:
{ generic:1, platform:iOS }

Ineligible destinations for the "Runner" scheme:
	{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 18.0 is not installed. To use with Xcode, first download and install the platform }

════════════════════════════════════════════════════════════════════════════════
iOS 18.0 is not installed. To download and install the platform, open
Xcode, select Xcode > Settings > Components, and click the GET button for the
required platform.

For more information, please visit:
https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes
════════════════════════════════════════════════════════════════════════════════
Encountered error while archiving for device.

##[error]Bash exited with code '1'.
Finishing: build ios

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

macos 15

Is it regression?

no

Expected behavior

The build was always successfully before 13.Aug

Actual behavior

Failed with error as above

Repro steps

Starting: build ios

Task : Command line
Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version : 2.250.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line

Generating script.
Script contents:
/Users/runner/hostedtoolcache/Flutter/3.27.4/macos/flutter/bin/flutter build ipa

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions