Skip to content

iOS 18.2 doesn't get installed #90

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

Open
Tobi696 opened this issue Jan 9, 2025 · 15 comments
Open

iOS 18.2 doesn't get installed #90

Tobi696 opened this issue Jan 9, 2025 · 15 comments

Comments

@Tobi696
Copy link

Tobi696 commented Jan 9, 2025

I use this step with the following configuration in my workflow:
Screenshot 2025-01-09 at 10 23 49

It worked until iOS 16.2 became available, now I get this error:
Screenshot 2025-01-09 at 10 24 29

@lthoedt
Copy link

lthoedt commented Jan 9, 2025

Same. Installing it manually does work but that sucks.

@Tobi696
Copy link
Author

Tobi696 commented Jan 9, 2025

@lthoedt How do you install manually?

@lthoedt
Copy link

lthoedt commented Jan 9, 2025

@lthoedt How do you install manually?

xcodebuild -downloadPlatform iOS -buildVersion 18.2 -exportPath ~/SimulatorRuntimes/
xcodebuild -importPlatform "/Users/runner/SimulatorRuntimes/iphonesimulator_18.2_22C150.dmg"

This works but is quite fragile. You could improve this by extracting the path from the output of the first command.
This is like 8Gb so that sucks to download each time, cache only allows a total of 10Gb so that would leave only 2Gb for other caches.

@aksh1t
Copy link

aksh1t commented Jan 14, 2025

+1 Bumping this. Getting the same error as well. I've temporarily reverted to using Xcode 16.1 as a workaround.

@shivankacker
Copy link

Updating Actions runner to macos-15 solved it for me.

@laurentcabondm
Copy link

Hello. Do we have any updates on this issue? Thanks

@GuilhE
Copy link

GuilhE commented Feb 27, 2025

@lthoedt How do you install manually?

xcodebuild -downloadPlatform iOS -buildVersion 18.2 -exportPath ~/SimulatorRuntimes/
xcodebuild -importPlatform "/Users/runner/SimulatorRuntimes/iphonesimulator_18.2_22C150.dmg"

This works but is quite fragile. You could improve this by extracting the path from the output of the first command. This is like 8Gb so that sucks to download each time, cache only allows a total of 10Gb so that would leave only 2Gb for other caches.

Same problem here, only this approach worked for me.

     - name: Manually download iOS 18.2
       if: env.simulator_cached == 'false'
       run: |
         xcodebuild -downloadPlatform iOS -buildVersion 18.2 -exportPath ~/SimulatorRuntimes/
         xcodebuild -importPlatform "/Users/runner/SimulatorRuntimes/iphonesimulator_18.2_22C150.dmg"

@justSmK
Copy link

justSmK commented Feb 27, 2025

I see this as a GitHub Runner issue. 'macos-15-arm64' has an iOS 18.2 simulator installed, while `macos-14-arm64' does not.

@dejanskledar
Copy link

It appears, setting macos-15 is not 100% resolving the issue, still just randomly got the same issue 🤔

@akshatjain-beam
Copy link

akshatjain-beam commented Mar 6, 2025

Hello, wanted to follow up regarding any updates on this? I am facing the same issue, and was wondering if i can get some help regarding how to fix it.

My workflow file -

name: Daily iOS

on:
  schedule:
    - cron: "30 5 * * 1,3,5" # every Monday, Wednesday, Friday at 5:30 AM
  workflow_dispatch:

jobs:
  ios:
    runs-on: macos-15
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      
      - name: Setup Xcode
        uses: maxim-lobanov/setup-xcode@v1
        with:
          xcode-version: '16.2.0'

      - name: Check Xcode version
        run: /usr/bin/xcodebuild -version

      - name: Setup Flutter
        uses: subosito/flutter-action@v2
        with:
          flutter-version: "3.27.2"
          channel: "stable"
          cache: true

      - name: Get flutter dependencies
        run: flutter pub get

      - name: Install CocoaPods dependencies
        run: |
          pushd ios && pod install --repo-update && popd

      - name: Build Flutter iOS app
        run: |
          flutter build ipa --release -t lib/main_staging.dart --flavor stag --no-codesign

@Kjuly
Copy link

Kjuly commented Mar 6, 2025

@akshatjain-beam As a temporary solution, using Xcode version 16.1 works for me.

Just set xcode-version: '16.1' in your case.

@akshatjain-beam
Copy link

akshatjain-beam commented Mar 7, 2025

@akshatjain-beam As a temporary solution, using Xcode version 16.1 works for me.

Just set xcode-version: '16.1' in your case.

Thank you @Kjuly . Tried with using 16.1 and it worked.

FYI - had to update the runs-on to macos-latest instead of macos-15, and it worked and passed the CI

@mhamann
Copy link

mhamann commented Apr 4, 2025

This is happening consistently for me on both macos-14 and macos-15 with variations of xcode 16.2 and xcode 16.1.

I always get this error:

xcodebuild: error: Unable to find a device matching the provided destination specifier:
		{ platform:iOS Simulator, OS:latest, name:iPhone 15 }
	The requested device could not be found because no available devices matched the request.

@GuilhE
Copy link

GuilhE commented Apr 4, 2025

@akshatjain-beam As a temporary solution, using Xcode version 16.1 works for me.
Just set xcode-version: '16.1' in your case.

Thank you @Kjuly . Tried with using 16.1 and it worked.

FYI - had to update the runs-on to macos-latest instead of macos-15, and it worked and passed the CI

Have you tried with Xcode 16.3.0?
I'm using macos-latest with name: Manually download iOS 18.2. Haven't tried updating to 18.4

@akshatjain-beam
Copy link

Thank you @GuilhE

used ios 17.5, and real device ios 18.0, and it worked.

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

No branches or pull requests