xcode: improve Xcode 14 compatibility
These are the first steps towards Xcode 14 support. Failing tests with the Xcode generator:
The following tests FAILED:
102 - Framework (Failed)
114 - BuildDepends (Failed)
512 - RunCMake.XcodeProject (Failed)
Backport: release
Edited by Brad King