25 June 2011

Developing iPhone Games with Unity on Windows

Unity is a fantastic multi-platform game maker. One of the most special things about it is that it is able to create games for the iPhone that can be submitted to the App Store. The problem is that this can only be done on a Macintosh machine.

The beauty of Unity is that the project files are saved in Unity's format that is later built for the platform (iPhone). The files can be transferred from a Windows machine to a Macintosh and then built for iOS.

If you're familiar with virtual machines, you probably know where I am going with this. A virtual machine will allow you to run a almost fully functional version of OS X on your Windows computer. So you can build a game with the free version of Unity on Windows, transfer the project files to Unity Pro on the virtual machine, build the project for iOS, test out on your own iPhone, send to Apple.

Visualized, this looks like:

Jus FYI, to build to an iPhone, the VM (virtual machine) needs to have Xcode installed but don't worry, we'll go over everything.

1. Install the VM on your Windows computer: http://techexxpert.blogspot.com/2010/12/how-to-virtualize-os-x-on-windows-7.html 

2. Now update the virutalized machine to OS X 10.6.7: http://techexxpert.blogspot.com/2011/04/updating-virtualized-os-x-1067.html

3. Install VMware Tools on the VM. This allows you to transfer files back and forth from the Windows machine. At the same time, it will allow you to go full resolution and enable sound on the VM: http://techexxpert.blogspot.com/2011/02/change-resolution-of-vmware-system.html

3. Now you'll need to install Xcode on to the VM: (you've already done steps 1 and 2): http://ipodtoucher55.blogspot.com/2010/12/installing-ios-sdk-and-xcode-on-windows.html

4. On your Windows machine and in the VM, download and install Unity: http://unity3d.com/unity/download/

5. Develop a game on your Windows edition of Unity. For now, I made a simple sphere with an animation. (Anything will work.)

6. Using VMware tools, transfer all the project files from Windows into the VM.

7. In the VM, open the project with in Unity.

8. Click File then Build Settings. Select iOS and click Build and Run.

9. The project will build create Xcode files in the project files. Open the .xcodeproj file.

10. Connect your device to your computer. In the bottom right of VMware Player, you should see an iPod icon. Right click the icon and click Connect. Make sure that your device is charging. If it is not, disconnect and reconnect. If that does not work, you will need to restart your VM.

11. Click the Organizer button to make sure that your device has connected correctly (green dot next to name).

12. In Xcode, you will need to change some build settings so that you can add it to your device. On the left side, click on the Unity-Project. In the middle column, click Unity-Project again. Click Build Settings in the center column. Make sure the settings look like the image below.

13. Do the same for Unity-iPhone targets, follow the image below.

14. In the drop down box next to Run, change to the first device next to Unity-iPhone. (This is your physical device).

15.Press Run. The app will be built and in a few moments afterwards, the app will appear on the home screen of your device.


  1. Does this work using Windows 7 64-bits?

  2. This is really interesting! I wonder what is the system requirement once you are going to install the VMWare?

  3. This is amazing! You are the greatest hero in the world haha

  4. Now im stuck on the installing xcode part. It crashes and says "Incorrect kernal IP" all over the screen in black.

  5. will it work with unity free version without apple license

  6. As Christmas is approaching, people are crazy about cheap swtor credits since lots of online credits suppliers are cutting price to celebrate this big holiday. But except for low price, you should take account safety into consideration. Then where should players go for swtor credits
    Come on! There may be world ending in 2012 as mentioned in mayan prophecy. Hurry to seize the rest of the year and enjoy yourself in swtor playing. Need swtor credits, just buy swtor creditsonline

  7. Congratulations! Diablohome accept a new payment method - Paysafecard. Pay cash for your online purchase of diablo 3 gold and other diablo products, quickly, simply, and safely, with which no bank account or credit card needed, personal details not required.
    DiabloHome is dedicated to enable all customers to enjoy the preferential price. Additionally, just like our brand name says “DiabloHome”, DiabloHome aims to provide all customers with a pleasant shopping journey at home. DiabloHome is your home to get Diablo 3 gold, Diablo 3 items and so on.
    tags: buy diablo 3 gold cheap diablo 3 gold diablo gold

  8. If ifs and ands were pots and pans there'd be no work for tinkers . runescape gold It is best to be on the safe side. However, i agree with what you want to express here and wait for more sharing later. You make my day today runescape gold for sale ! Thanks so much for your love to all. rs gold /
    buy rs gold / cheap rs gold

  9. As a professional Diablo 3 provider, CheapDiablo keeps providing customers the best service in past years. Since Diablo 3 patch 1.0.7 has been available on PTR, most players choose to experience the new patch now. To show our thanks for the support of our customers in past days and embrace the new patch with all Diablo 3 players, we decide to give a great benefit for our customers on our facebook! From January 21 to January 30, 2013 PST, we will have totally 150000K free Diablo 3 gold giveaway for our facebook top fans!
    tags:buy diablo3 gold , cheap diablo3 gold ,
    cheapest diablo gold ,
    diablo 3 gold cheap

    The CheapDiablo Team

  10. With patch 1.0.7 coming soon, the price of cheap diablo 3 gold will definitely rise. Players are currently hurry to accumulate cheap diablo 3 gold . Now, a good news for all diablo iii players: Diablohome Free 100000K D3 Gold Giveaway for Newsletter Subscribers begins. Hurry to snap free diablo 3 gold.
    More tags : D3 Gold Diablo 3 Gold buy D3 Gold

  11. Storing loads of Diablo 3 gold,Diablo 3 items as well as Diablo 3 accounts, Diablocheap is a professional site that you can

    trust. For a long time, we are always commit ourselves to supply customers what they need most. With many advantages of

    products and service, warmly welcome you to come to Diablocheap to have a experience!
    more tags:Diablo 3 gold,
    buy diablo gold,
    buy diablo 3 gold,
    runescape gold

  12. thank you for all the things learned from here and congratulations for the good work. buying runescape accounts

  13. I was reading this post.It is very interesting and I hope you will be sharing more informative post in future.Thanks

    iPhone Games

  14. It takes strength to resist temptations and distractions Diablo iii Power Leveling, it takes strength to do what is right D3 PowerLeveling, it takes strength to do al these things. And all the while, these are the very things that build even more strength D3 Power Leveling.

  15. It takes strength to do al these things. And all the while, these are the very things that build even more strength sell Guild Wars 2 Gold, it takes strength to resist temptations and distractions sell Guild Wars 2 Gold, It takes strength to build for the future Diablo 3 Gold.

  16. A bumblebee if dropped into an open tumbler will be there until it dies, unless it is taken out aion gold, it never sees the means of escape at the top, but persists in trying to find some way out through the sides near the bottom aion gold, It will seek a way where none exists, until it completely destroys itself aion kinah.

  17. Life is not measured by the number of breaths we take scarlet blade gold, but by the moments that take our breath away scarlet blade gold. I have a simple philosophy: Fill what's empty scarlet blade gold.

  18. That is really cool. Thanks for finding it. Some really good ideas there, this is going to be a real time sink. I am a china tour lover,You can learn more: China tour operator | China tour packages | China city travel

  19. This is amazing! thank you for all the things learned from here. Keep it up.

    Sniper King App

  20. Buy & sell new and used iPhones.
    Wide selection of new and used iPhones for sale.
    More at here

  21. Your article is very informative and way you use the images to describe the whole process is really remarkable and i think this is suggestible for the user of Game Development.

  22. I'm learning mandarin because I believe it's the only way to really learn about China.When I was searching for a place to learning to speak Chinese, I called several schools. Hanbridge was the best because they had excellent teachers and a very friendly and welcoming spirit . I really appreciate the opportunity to learn here and would recommend Hanbridge to others.

  23. Nice info bro..!.......:)

    More information Vist our site: unity game creation

  24. Nice info and much informative article... Thanks for sharing your views and ideas. iPhone Application Developers

  25. Virtualization truly has many uses and it's just one of them, too bad it's even necessary in this scenario, apple just tried and failed to be overprotective about it's market share, resulting in more trouble for developers, slower game production times and in turn, less revenue to them from the app store. I'd rather get some rs 3 gold for sale, will be easily usable on phones as well as developers are making a mobile port!