Skip to content

[CI] Installing Xcode 26.0 sometimes fails when installing simulator #170355

Closed

Description

@vashworth

https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20macos_repo_checks/8770/overview
https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20ios_platform_tests_shard_2%20stable/36/overview

[P1939 08:05:03.743 client.go:1874 I] [fetch] Fetched infra_internal/ios/xcode/ios_runtime_dmg:9q0UOvMk02S3iQbg5VaxY5QU7aSBWpV9a68ZeTUtSJoC in 36.6s
[P1939 08:05:03.745 deployer.go:303 I] [unzip] Deploying infra_internal/ios/xcode/ios_runtime_dmg:9q0UOvMk02S3iQbg5VaxY5QU7aSBWpV9a68ZeTUtSJoC into /Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17a5241e/tmp319045406(/)
[P1939 08:05:03.746 reader.go:400 I] [unzip] Extracting (3 files left):     0.0/10018.7 MB (  0%)
[P1939 08:05:17.185 reader.go:424 I] [unzip] Extracting (1 files left): 10018.7/10018.7 MB (100%, 745.52 MB/s)
[P1939 08:05:17.186 reader.go:424 I] [unzip] Extracting (0 files left): 10018.7/10018.7 MB (100%, 745.52 MB/s)
[P1939 08:05:17.187 deployer.go:388 I] [unzip] Moving files to their final destination...
[P1939 08:05:17.187 deployer.go:403 I] [unzip] Cleaning up...
[P1939 08:05:17.187 deployer.go:409 I] [unzip] Deployed infra_internal/ios/xcode/ios_runtime_dmg:9q0UOvMk02S3iQbg5VaxY5QU7aSBWpV9a68ZeTUtSJoC in 13.4s
[P1939 08:05:17.188 client.go:2190 I] All changes applied.
[E 2025-06-10 08:06:12] error: failed to add runtime dmg /Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17a5241e/tmp319045406/iOSSimulatorRuntime_Cryptex.dmg to Xcode: failed to add runtime dmg to Xcode: exit status 5

failed to add runtime dmg /Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17a5241e/tmp319045406/iOSSimulatorRuntime_Cryptex.dmg to Xcode: failed to add runtime dmg to Xcode: exit status 5
goroutine 1 [running]:
main.installAndAddRuntimeDMG.addRuntimeDMG.func1()
	go.chromium.org/infra/cmd/mac_toolchain/install.go:408 +0x2d8
main.RunWithXcodeSelect({0x1029d4d80, 0x14000277e00}, {0x16dafb20e, 0x3b}, 0x1400039f630)
	go.chromium.org/infra/cmd/mac_toolchain/install.go:243 +0xe8
main.addRuntimeDMG(...)
	go.chromium.org/infra/cmd/mac_toolchain/install.go:404
main.installAndAddRuntimeDMG({0x1029d4d80, 0x14000277e00}, {{0x1400000e4b8, 0x8}, {0x16dafb1f9, 0x8}, {0x14000023280, 0x3e}, {0x16dafb25f, 0x18}, ...}, ...)
	go.chromium.org/infra/cmd/mac_toolchain/install.go:493 +0x2a8
main.installXcode({0x1029d4d80, 0x14000277e00}, {{0x16dafb1f9, 0x8}, {0x16dafb20e, 0x3b}, {0x1027bcd7a, 0x2d}, {0x16dafb25f, 0x18}, ...})
	go.chromium.org/infra/cmd/mac_toolchain/install.go:757 +0xd10
main.(*installRun).Run(0x14000304b60, {0x1029d6988?, 0x14000219360?}, {0x1029d2040?, 0x14000304b60?, 0x1029cf2a8?}, 0x14000114020?)
	go.chromium.org/infra/cmd/mac_toolchain/main.go:319 +0x500
github.com/maruel/subcommands.Run({0x1029d6988, 0x14000219360}, {0x0, 0x0, 0x0})
	github.com/maruel/[email protected]/subcommands.go:395 +0x400
main.main()
	go.chromium.org/infra/cmd/mac_toolchain/main.go:906 +0x228

We'll probably need to look into what mac_toolchain is doing: https://chromium.googlesource.com/infra/infra/+/refs/heads/main/go/src/infra/cmd/mac_toolchain

Activity

  1. added
    fyi-infraFor the attention of Infrastructure team
    team-iosOwned by iOS platform team
    on Jun 10, 2025
  2. added
    P1High-priority issues at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Jun 12, 2025
  3. flutter-triage-bot commented on Oct 29, 2025

    @flutter-triage-bot

    This issue is marked P1 but has had no recent status updates.

    The P1 label indicates high-priority issues that are at the top of the work list. This is the highest priority level a bug can have if it isn't affecting a top-tier customer or breaking the build. Bugs marked P1 are generally actively being worked on unless the assignee is dealing with a P0 bug (or another P1 bug). Issues at this level should be resolved in a matter of months and should have monthly updates on GitHub.

    Please consider where this bug really falls in our current priorities, and label it or assign it accordingly. This allows people to have a clearer picture of what work is actually planned. Thanks!

  4. added
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    and removed
    P1High-priority issues at the top of the work list
    on Oct 30, 2025
  5. okorohelijah commented on Jan 14, 2026

    @okorohelijah
    Contributor

    The problem seems to be coming from the mac_toolchain/install.go file but to confirm we could either add a log to addRuntimeDMGWithRetry , ssh to the bot to see the verbose error, or if there is a way to view the simctl logs in CoreSimulator.log

  6. okorohelijah commented on Aug 5, 2026

    @okorohelijah
    Contributor

    I dont think this reproduces on Xcode 26.2 which the CI is currently on

  7. github-actions commented on Aug 19, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions