(iOS) Fix/refactor iOS major version detection