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:
ERROR [launcher:MobileSafari]: No device found for sdk 12.1 with name iPhone 5s)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
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)

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: