Platform Dependent Compilation iOS vs iPhone

Ok so this may be a stupid question but I can’t find the answer for it. In the documentation on this subject, it only shows #if UNITY_IPHONE, but in the editor/monodevelop I noticed #if UNITY_IOS is in there too.

Now my question is, does #if UNITY_IPHONE cover the iPad as well or is that what #if UNITY_IOS is for? If the iPhone compilation does cover both what is the iOS compilation for? I am trying to build a game for iPhone and iPad but i am not sure which compilation to use for them.


According to the documentation, UNITY_IPHONE is deprecated and recommends to use UNITY_IOS, but basically they are the same.

UNITY_IPHONE is Deprecated. Use UNITY_IOS instead.

lines 19-22