Change deprecated method calls to new ones. Guard iOS version dependant functionality behind availability checks.
(cherry picked from commit 82b30f36cb)
82b30f36cb
Last step of the migration from Travis/AppVeyor to GitHub Actions. `werror=yes` should be enabled once outstanding warnings have been fixed.