Exclude iOS related methods from compilation on other platforms