Android Project to iOS Project

Hello guys.
I was wondering if there are some issues converting an android project to ios.
When I started this project, it was a standalone project. When I decided to convert to Android, some of my code was incorrect, and more stuff.
When I build the project to test, there was also other errors, as MovieTexture which is not available on mobiles.
What kind of issues may be when I convert my project to ios?
Thanks. bye!

In terms of how to write your code both Android and iOS are mostly the same. There might be differences depending on the license you have (e.g. if you have Android Pro but only iOS basic), of course. But other than that there are not too many differences, apart from those which are platform dependant like e.g. iPhone.generation which is - what a suprise - not available on Android.

So basically you just need to make sure that …

  • your application is able to handle the different aspect ratios well (Android mostly is 16:9 whereas e.g. iPad is 4:3)
  • you adjust any platform dependant code (#if UNITY_ANDROID)
  • you adjust platform dependant class code you wrote yourself
  • your third party plugins are available on iOS as well - or possibly need to be exchanged

These are the basic steps in general, there might be more if you start looking at the details, but most of the work is done directly by Unity while reimporting all the assets.

Just as an example: I am currently working on a project which is set to Android platform and I am constantly building to my Nexus 7. However from time to time I switch a project copy over to an iOS build and put that on the devices. There are no further steps involved.

Thanks for the perfect answer, this is really usefull. See you. Good bye!

Hi Glockenbeat,

do you have any differences with with build sizes?

I am also porting my android game to iOS and the size differences are huge (Android :16MB, iOS: 65MB).

Do you know what could be the cause of this?