Use triple's isiOS() and isOSDarwin() methods.