You're holding it wrong. You're not supposed to code for Apple products using C++. You're supposed to use Swift

(only half joking)