mxcl / xcodebuild

A continuously resilient `xcodebuild` “GitHub Action”. Also it’s the best.
The Unlicense
304 stars 25 forks source link

Running tests using stable Xcode selects beta simulator #113

Open NachoSoto opened 1 month ago

NachoSoto commented 1 month ago

From the docs:

We figure out the the simulator destination for you automatically. Stop specifying fragile strings like platform=iphonesimulator,os=14.5,name=iPhone 12 that will break when Xcode updates next week.

Which is a great feature... however, this:

- uses: mxcl/xcodebuild@v3
  with:
    platform: iOS
    xcode: '~16.0'
    action: test
    configuration: 'debug'

Should not run on an iOS 18.1 beta simulator just because it's installed.

mxcl commented 1 month ago

I think here Xcode itself is selecting that simulator, we don’t adjust anything that is not specified. This is kinda an unwritten rule on our behavior. Possibly that should change but needs discussion.

I would have to check that though. Been a long time since I was in the code. Pretty sure though that we don’t even know your project is an iOS project and don’t specify anything.