CMakeIOSInstallCombined should avoid using VALID_ARCHS with Xcode 12+
Apple has deprecated use of the VALID_ARCHS
Xcode project setting as of Xcode 12. In its place, a new EXCLUDED_ARCHS
setting has been introduced which appears to be essentially the inverse of that. This setting becomes important for building iOS apps on Apple Silicon hosts because the simulator is no longer a different architecture to the device (both are arm64). It looks like one has to exclude the arm64 architecture for simulator builds. The following references may be useful in helping to identify any changes required:
- https://stackoverflow.com/a/63405201/1938798 (this one has feedback from Apple)
- https://stackoverflow.com/a/63955114/1938798
At the moment, the CMakeIOSInstallCombined module appears to be relying on VALID_ARCHS
to work, so it likely is going to have problems with Xcode 12+.
Cc: @gusc @gjasny @brad.king