Making the switch to iPhone

Hi guys,
Sorry this is a bit of a long winded question but I have recently made a Unity game in my PC and am thinking about buying a mac and making it for iPhone as well. There are a few things I need to know in order to see if it will actually work:

What licenses will I need? (will I need the Unity Pro licence or IOS Pro licence?)

My game is coded in Javascript, will that work on ios?

The .exe file for my game is about 6.5 mb and the data file is about 30 mb, will this be too big to run on the iPhone once converted?

Is there anything else that may stop my PC game working on the iPhone?

Thanks in advance for any response and sorry my question was so long.

  1. You will need Unity and at least an IOS standard license - it depends what features your game uses as to whether you need iOS Pro.
  2. JavaScript works on IOS - but there can be problems if you haven’t use #pragma strict at the top of each file and then dealt with actually defining all of your variables etc.
  3. The size of the executable is fine for iPhone - less than 50Mb will download over 3G (though I guess there is no guarantee your exe won’t get a bit bigger on iPhone - especially if you build graphics for all of the different possible resolutions).
  4. Anything you have used that causes the application to do a JIT (Just In Time) compile will crash the iphone - see (2) above for one possible source. Dynamically emitting code yourself, downloading code from an external source will also be a no-no.

You will also have to consider the difference that a touch screen input makes and consider the image effects/shaders/textures/models as many of the iOS devices are less powerful than a normal computer and may cause the game to run slowly. Some effects etc are not available on iOS. iOS in Unity 3 does not support real time shadows. There are probably a few more things!