Virtual-environments: vmImage 'macOS-10.14': support for 'iPhone 5s' running iOS 12

Created on 14 Apr 2020  路  3Comments  路  Source: actions/virtual-environments

Describe the bug
The html2canvas project uses Azure Pipelines to build and test across multiple operating systems and browsers (e.g. Safari on iPhone 5s running iOS 12).

As announced in a recent Azure DevOps blog post (and duplicate post?), the vmImage macOS-10.13 is now unavailable and https://github.com/niklasvh/html2canvas/pull/2204 is an attempt to upgrade to a more recent vmImage.

The documentation for macOS-10.14 seems to indicate that iPhone 5s on iOS 12 should still be a supported simulator.

During builds of html2canvas against macOS-10.14, iPhone 5s is not found as a supported device for iOS 12:

  1. https://github.com/niklasvh/html2canvas/pull/2204/commits/40d3689c0e1c91aa0bf28f09d965cfa7395f1286 : log ref (ERROR [launcher:MobileSafari]: No device found for sdk 12.1 with name iPhone 5s)
  2. https://github.com/niklasvh/html2canvas/pull/2204/commits/409e24cac005cce0a1f42f95d4bfd4ef4a352145 : log ref (ERROR [launcher:MobileSafari]: No device found for sdk 12.1 with name iPhone 5s )

Question
Is vmImage macOS-10.14 still supported and if so does it contain simulator support for iPhone 5s on iOS 12?

Area for Triage: Apple

Question, Bug, or Feature?: Question

Virtual environments affected

  • [x] macOS 10.14
  • [ ] macOS 10.15
Apple macOS question

All 3 comments

Hello @jayaddison!
What version of Xcode do you use?
I have looked at azure-pipelines yml files in html2canvas and it looks like the default one is used.
Default Xcode is different for macos-10.13 and macos-10.14 images. Xcode 10.1 is default one on macos-10.13 and Xcode 11.3.1 is default one on macos-10.14.
So based on documentation that you have shared, 12.1 sdk is available only for Xcode 10.1 (second column)
image

Solution:
We need to switch back to Xcode 10.1(it is still available on macos-10.14 image).
You should add the following step to your pipeline:

- script: sudo xcode-select -s "/Applications/Xcode_10.1.app"
  displayName: 'Switch Xcode'

Could you please try and let me know if it works for you?

We need to switch back to Xcode 10.1(it is still available on macos-10.14 image).
...
Could you please try and let me know if it works for you?

Thanks for the swift response @maxim-lobanov!

After some typical battles with YAML, this should be running in a moment.

Edit: this build failed as a result of omitting the suggested sudo step. I'll try adding this, although we'll have to see whether the build user is able to elevate their privileges.

The build for iOS Simulator Safari 12 has succeeded after the suggested changes. Thanks @maxim-lobanov! :tada:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shivammathur picture shivammathur  路  3Comments

ethomson picture ethomson  路  4Comments

zackijack picture zackijack  路  3Comments

matthewfeickert picture matthewfeickert  路  3Comments

shogo82148 picture shogo82148  路  3Comments