Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS 14 with Xcode 16.2 missing iOS 18.2 SDK #11335

Open
2 of 16 tasks
lardieri opened this issue Jan 8, 2025 · 5 comments
Open
2 of 16 tasks

macOS 14 with Xcode 16.2 missing iOS 18.2 SDK #11335

lardieri opened this issue Jan 8, 2025 · 5 comments

Comments

@lardieri
Copy link

lardieri commented Jan 8, 2025

Description

macOS 14 (Intel) worker machines with Xcode 16.2 installed are missing the iOS 18.2 SDK. Unknown if this affects Arm64 workers.

This causes the following error during the Xcode archive step:

2025-01-08T22:06:35.5044390Z xcodebuild: error: Unable to find a destination matching the provided destination specifier:
2025-01-08T22:06:35.5162020Z { generic:1, platform:iOS }
2025-01-08T22:06:35.5182120Z
2025-01-08T22:06:35.5184510Z Ineligible destinations for the "***********" scheme:
2025-01-08T22:06:35.5187250Z { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 18.2 is not installed. To use with Xcode, first download and install the platform }
2025-01-08T22:06:35.5578370Z ##[error]Error: /usr/bin/xcodebuild failed with return code: 70

Relevant YAML

  pool:
    vmImage: 'macOS-14'
  
  - task: Xcode@5
    displayName: Archive
    inputs:
      actions: 'archive'
      args: '-destination generic/platform=iOS -archivePath $(Pipeline.Workspace)/$(archiveName).xcarchive -verbose'
      configuration: '$(build-configuration)'
      packageApp: false
      scheme: '$(build-scheme)'
      sdk:
      xcodeVersion: '16'
      xcWorkspacePath: '*.xcworkspace'

Platforms affected

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

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • 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

2025-01-08T22:03:43.6644350Z ##[section]Starting: Initialize job
2025-01-08T22:03:43.6646710Z Agent name: 'Hosted Agent'
2025-01-08T22:03:43.6647170Z Agent machine name: 'Mac-1736371874433'
2025-01-08T22:03:43.6647410Z Current agent version: '3.248.0'
2025-01-08T22:03:43.6675680Z ##[group]Operating System
2025-01-08T22:03:43.6675890Z macOS
2025-01-08T22:03:43.6676020Z 14.7.2
2025-01-08T22:03:43.6676150Z 23H311
2025-01-08T22:03:43.6676290Z ##[endgroup]
2025-01-08T22:03:43.6676460Z ##[group]Runner Image
2025-01-08T22:03:43.6676640Z Image: macos-14
2025-01-08T22:03:43.6676810Z Version: 20250106.587

Is it regression?

Yes

Expected behavior

Build completes successfully, as it does on Xcode 16.1

Actual behavior

Error: iOS 18.2 is not installed. To use with Xcode, first download and install the platform

Repro steps

  1. Create a pipeline that archives an iOS app to prepare it for upload to App Store.
  2. Run this pipeline on a macOS 14 worker with Xcode 16.2
@sureshe456
Copy link
Contributor

Hi @lardieri We began our weekly deployment of macOS 14 and macOS 14-arm64 images on Monday. The current Xcode version, 16.2 Release Candidate along with iOS 18.2 SDK, is expected to be available within 1–2 days. We will provide an update here once the VM rollout is complete. Thank you for your patience.

@Baza207
Copy link

Baza207 commented Jan 9, 2025

@sureshe456 That might be the case, but it doesn't seem to include any simulators with the 18.2 version. Only ones for 18.1, as per the docs as of today at least. https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md

The SDK for 18.2 is included, but no simulators use it for macOS-14 or macOS-14-arm64. 😞

PR Referene: #11315

image

@egg-r
Copy link

egg-r commented Jan 9, 2025

I'm running into this issue as well on the new 20250106.587 macos-14 image while attempting to use xcode 16.2. I'm given errors that no destinations could be found for the scheme when using 16.2, but 16.1 works fine. I'm not specifying destinations. Seems the 16.2 SDK is good, but the simulators are missing.

Error:

xcodebuild: error: Found no destinations for the scheme 'My Scheme name' and action clean.

Image details:

Agent name: 'Hosted Agent'
Agent machine name: 'Mac-1736363096916'
Current agent version: '3.248.0'
Operating System
Runner Image
Runner Image Provisioner
Current image version: '20250106.587'

@mattbroussard
Copy link

mattbroussard commented Jan 10, 2025

I see similar to @egg-r trying to use a simulator (iPad Pro (12.9-inch) (6th generation),OS=17.4) listed in the readme with Xcode 16.2:

Starting: Xcode Test
==============================================================================
Task         : Xcode
Description  : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.
Version      : 5.248.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/xcode
==============================================================================
/usr/bin/xcodebuild -version
Xcode 16.2
Build version 16C5032a

/usr/bin/xcodebuild -configuration Debug -workspace /Users/runner/work/1/s/redacted/redacted.xcworkspace -scheme redacted -destination platform=iOS Simulator,name=iPad Pro (12.9-inch) (6th generation),OS=17.4 test | /usr/local/lib/ruby/gems/3.0.0/bin/xcpretty -r junit --no-color
2025-01-09 16:21:12.178 xcodebuild[4157:19704] Writing error result bundle to /var/folders/yt/jqvvrm9s62n08xh_3v5x9zwr0000gn/T/ResultBundle_2025-09-01_16-21-0012.xcresult
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
		{ platform:iOS Simulator, OS:17.4, name:iPad Pro (12.9-inch) (6th generation) }

	Ineligible destinations for the "redacted" scheme:
		{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 18.2 is not installed. To use with Xcode, first download and install the platform }
##[error]Error: /usr/bin/xcodebuild failed with return code: 70

My runner today used image version 20250109.625. The same things works ok with Xcode 16.1. I'm using Azure DevOps Pipelines which shares the same runner images.

@haniewais
Copy link

haniewais commented Jan 10, 2025

We are having similar issues, iOS, we can see that iOS 18.2 SDK is now available on macOS14 runner.
Our build works, however the UI Test don't launch the iOS 18.2 simulator.

[Failed] UI Test Run

Starting: Build XCTestRun:
==============================================================================
Task         : Xcode
Description  : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.
2025-01-10T01:18:37.7489800Z { platform:iOS Simulator, OS:18.1, name:iPhone 16 }
2025-01-10T01:18:37.7490530Z { platform:iOS Simulator, OS:18.2, name:iPhone 16 }
2025-01-10T01:18:37.7491210Z { platform:iOS Simulator, OS:18.1, name:iPhone 16 Plus }
2025-01-10T01:18:37.7491850Z { platform:iOS Simulator, OS:18.2, name:iPhone 16 Plus }
2025-01-10T01:18:37.7492490Z { platform:iOS Simulator, OS:18.1, name:iPhone 16 Pro }
2025-01-10T01:18:37.7493120Z { platform:iOS Simulator, OS:18.2, name:iPhone 16 Pro }
**2025-01-10T01:18:37.7494140Z { platform:iOS Simulator, OS:18.1, name:iPhone 16 Pro Max }**
2025-01-10T01:18:37.7494800Z { platform:iOS Simulator, OS:18.2, name:iPhone 16 Pro Max }
2025-01-10T01:18:37.7495640Z { platform:iOS Simulator, OS:17.0.1, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7496550Z { platform:iOS Simulator, OS:17.2, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7497310Z { platform:iOS Simulator, OS:17.4, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7498020Z { platform:iOS Simulator, OS:17.5, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7498740Z { platform:iOS Simulator, OS:18.1, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7499480Z { platform:iOS Simulator, OS:18.2, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7500640Z Prepare packages
2025-01-10T01:18:37.7500840Z 
2025-01-10T01:18:37.7501790Z Run pre-actions
2025-01-10T01:18:37.7501900Z 
Version      : 5.248.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/xcode
==============================================================================
/usr/bin/xcodebuild -version
Xcode 16.2
Build version 16C5032a

/usr/bin/xcodebuild -sdk iphonesimulator -configuration Debug -workspace /Users/runner/work/1/s/app.xcworkspace -scheme iOS_UI -destination platform=iOS Simulator,name=iPhone 16 Pro Max,OS=18.2 build-for-testing -enableCodeCoverage YES -derivedDataPath /Users/runner/work/1 -quiet OTHER_SWIFT_FLAGS=$(inherited) -D RUNNING_ON_AGENT_POOL CODE_SIGN_STYLE=Automatic | /usr/local/lib/ruby/gems/3.0.0/bin/xcpretty -r junit --no-color
2025-01-10 01:10:33.441 xcodebuild[6686:30399] Writing error result bundle to /var/folders/_x/_5q5hnr968v4xx/T/ResultBundle_2025-10-01_01-10-0033.xcresult
xcodebuild: error: Unable to find a device matching the provided destination specifier:
		{ platform:iOS Simulator, OS:18.2, name:iPhone 16 Pro Max }

	The requested device could not be found because no available devices matched the request.

	Ineligible destinations for the "iOS_UI" scheme:
		{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 18.2 is not installed. To use with Xcode, first download and install the platform }
##[error]Error: /usr/bin/xcodebuild failed with return code: 70
Finishing: Build XCTestRun

[Successful] Build using the same config, Xcode 16.2, iOS 18.2:

==============================================================================
2025-01-10T01:18:04.1035110Z Task         : Xcode
2025-01-10T01:18:04.1035210Z Description  : Build, test, or archive an Xcode workspace on macOS. Optionally package an app.
2025-01-10T01:18:04.1035450Z Version      : 5.248.1
2025-01-10T01:18:04.1035550Z Author       : Microsoft Corporation
2025-01-10T01:18:04.1035710Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/xcode
2025-01-10T01:18:04.1035890Z ==============================================================================
2025-01-10T01:18:04.4316060Z [command]/usr/bin/xcodebuild -version
2025-01-10T01:18:05.7259090Z Xcode 16.2
2025-01-10T01:18:05.7266980Z Build version 16C5032a
2025-01-10T01:18:07.2944960Z Build settings from command line:
2025-01-10T01:18:07.3948230Z     SDKROOT = iphoneos18.2
2025-01-10T01:18:07.4951100Z 
.
.
2025-01-10T01:18:35.2604860Z --- xcodebuild: WARNING: Using the first of multiple matching destinations:
2025-01-10T01:18:35.2689060Z { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
2025-01-10T01:18:35.3135650Z { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }

we can see the simulator available in the list:

2025-01-10T01:18:37.7489800Z { platform:iOS Simulator, OS:18.1, name:iPhone 16 }
2025-01-10T01:18:37.7490530Z { platform:iOS Simulator, OS:18.2, name:iPhone 16 }
2025-01-10T01:18:37.7491210Z { platform:iOS Simulator, OS:18.1, name:iPhone 16 Plus }
2025-01-10T01:18:37.7491850Z { platform:iOS Simulator, OS:18.2, name:iPhone 16 Plus }
2025-01-10T01:18:37.7492490Z { platform:iOS Simulator, OS:18.1, name:iPhone 16 Pro }
2025-01-10T01:18:37.7493120Z { platform:iOS Simulator, OS:18.2, name:iPhone 16 Pro }
2025-01-10T01:18:37.7494140Z { platform:iOS Simulator, OS:18.1, name:iPhone 16 Pro Max }
**2025-01-10T01:18:37.7494800Z { platform:iOS Simulator, OS:18.2, name:iPhone 16 Pro Max }**
2025-01-10T01:18:37.7495640Z { platform:iOS Simulator, OS:17.0.1, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7496550Z { platform:iOS Simulator, OS:17.2, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7497310Z { platform:iOS Simulator, OS:17.4, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7498020Z { platform:iOS Simulator, OS:17.5, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7498740Z { platform:iOS Simulator, OS:18.1, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7499480Z { platform:iOS Simulator, OS:18.2, name:iPhone SE (3rd generation) }
2025-01-10T01:18:37.7500640Z Prepare packages
2025-01-10T01:18:37.7500840Z 
2025-01-10T01:18:37.7501790Z Run pre-actions
2025-01-10T01:18:37.7501900Z 
.
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants