xcodebuild icon indicating copy to clipboard operation
xcodebuild copied to clipboard

Running tests using stable Xcode selects beta simulator

Open NachoSoto opened this issue 1 year ago • 1 comments

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.

NachoSoto avatar Sep 23 '24 16:09 NachoSoto

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.

mxcl avatar Sep 25 '24 12:09 mxcl