actions / runner-images

GitHub Actions runner images
MIT License
10.24k stars 3.08k forks source link

macos - multiple device simulator warning #11036

Open salvatoreboemia opened 6 hours ago

salvatoreboemia commented 6 hours ago

Description

Hi I'm using this command to build

run: |
        echo "Building project manually..."
        xcodebuild -workspace MyApp.xcworkspace \
        -scheme MyApp \
        -destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=18.1" \
        build | xcbeautify --renderer github-actions

But I got this warning

Screenshot 2024-11-25 at 15 29 01

Why there are 2 simulator with same os and same model?

How I can remove this warning?

Thanks

Platforms affected

Runner images affected

Image version and build link

macos 14 and 15 arm64

Is it regression?

yes

Expected behavior

no warning

Actual behavior

warning

Repro steps

run xcodebuild command

erik-bershel commented 6 hours ago

Hey @salvatoreboemia!

Please, provide more info. 🙇

salvatoreboemia commented 5 hours ago

Hey @salvatoreboemia!

Please, provide more info. 🙇

* When this happened for the first time? Which exact image version it was with?

* We need the full workflow code to test other steps if the source of the issue.

It seems to have always happened

it's only 1 warning but I would like to understand how to remove it

I opened the workflows from 1 month ago to today

Here are some logs on runners

Current runner version: '2.320.0'
Operating System
  macOS
  14.7
  23H124
Runner Image
  Image: macos-14-arm64
  Version: 20241022.361
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20241022.361/images/macos/macos-14-arm64-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20241022.361
Current runner version: '2.320.0'
Operating System
  macOS
  14.7.1
  23H222
Runner Image
  Image: macos-14-arm64
  Version: 20241119.509
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20241119.509/images/macos/macos-14-arm64-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20241119.509
Current runner version: '2.320.0'
Operating System
  macOS
  14.7.1
  23H222
Runner Image
  Image: macos-14-arm64
  Version: 20241119.509
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20241119.509/images/macos/macos-14-arm64-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20241119.509
Current runner version: '2.320.0'
Operating System
  macOS
  14.7
  23H124
Runner Image
  Image: macos-14-arm64
  Version: 20241022.361
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20241022.361/images/macos/macos-14-arm64-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20241022.361
Runner Image Provisioner
  2.0.384.1+6d6c56aa16f1b9c7dd7935df5d63980397e44def

Thanks @erik-bershel

erik-bershel commented 5 hours ago

Hmmmmm. 🤔 I'm starting to think the problem is somewhere in the workflow code. We have a duplicate check during the build. Of course, it might be buggy. We'll check the runner and come back later...

salvatoreboemia commented 4 hours ago

Hmmmmm. 🤔 I'm starting to think the problem is somewhere in the workflow code. We have a duplicate check during the build. Of course, it might be buggy. We'll check the runner and come back later...

Hi @erik-bershel

Here are some main steps of my worflfow


runs-on: ${{ (matrix.language == 'swift' && 'macos-14-xlarge') }}

    - name: Set Xcode version
      run: |
        echo "Setting Xcode version..."
        sudo xcode-select -s /Applications/Xcode_15.4.app

    - name: Checkout repository
      uses: actions/checkout@v4

    - name: Initialize CodeQL
      uses: github/codeql-action/init@v3
     .....
     .....
      shell: bash
      run: |
        echo "Building project manually..."
        xcodebuild -workspace MyApp.xcworkspace \
        -scheme MyApp \
        -destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=18.1" \
        build | xcbeautify --renderer github-actions

That's it

erik-bershel commented 3 hours ago

Yeah, it doesn't look like any step creates additional simulators. It's strange - we'll look into it.