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.

55 comments:

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

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

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

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

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

    ReplyDelete
  6. 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

    ReplyDelete
  7. 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

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

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

    Sniper King App

    ReplyDelete
  10. 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.

    ReplyDelete
  11. Nice info bro..!.......:)

    More information Vist our site: unity game creation

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

    ReplyDelete
  13. 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!

    ReplyDelete
  14. Do you have fortnite hack internet at home? Do you want to make your children happy? You can ask them to play Online car games.

    ReplyDelete
  15. As an avid retro-gamer, for quite a long time I've been particularly interested in the history of video video games. To be more specific, a subject that I am very passionate about is "Which was the first video game ever made?"... So, I started an exhaustive investigation on this subject (and making this article the first one in a series of articles that will cover in detail all video gaming history). The question was: Which was the first video game ever made?

    ReplyDelete
  16. As an avid retro-gamer, for quite a long time I've been particularly interested in the history of video games. To be more specific, a subject that I am very passionate about is "Which was the first video game ever made?"... So, I started an exhaustive investigation on this subject (and making this article the first one in a series of articles that will cover Minecraft Y8 detail all video gaming history). The question was: Which was the first video game ever made?

    ReplyDelete
  17. Gaming is one of the productive activities that ensure the personal developments of individuals for them to impact favorably on the development of their societies. Unfortunately, this creatively designed applications better known as electronic or video games that function on consoles such as X-box and play station on computers, mobile devices, and other electronic gadgets have been negatively branded as evil by some critics. There is the urgent need to offer a convincing reply Metroid Prime Hunters Review these unfair critics who dwell solely on the unkempt disadvantages of gaming to plunge its whole benefits into disrepute.

    ReplyDelete
  18. Video games have unquestionably become more ambitious and impressive in recent years. When you look at the likes of The Last Of Us, it's impossible to overstate just how far video games have come since people were playing Pong forty-odd years ago. But for https://freepsncodesnow.net/ the innovations within the medium, and for all the new fangled ideas and increasingly elaborate control schemes, there's something to be said for how much more straight forward things were in the games we played as kids.

    ReplyDelete
  19. Call of Duty is regarded as a consolized shooter that is developed, optimized, and played most on the mainstream Xbox 360 and PS3 consoles. They are released on PC, and began their life on the PC, but lately they have been getting the short end have a peek at these guys the stick. Modern Warfare 2 was a huge step back from Call of Duty 4: Modern Warfare where it included Matchmaking and P2P (peer to peer) rather than dedicated

    ReplyDelete
  20. Every gamer goes through the process of buying a new video game - playing it to boredom or completion and then moving onto the next game. For some, the retail value of 40 pounds (60 dollars) for most new video games makes moving onto the next game a tricky task, making gaming an expensive hobby! This article will discuss several methods of buying/getting new video games available to gamers and consider Pennsylvania Sportsbooks video game swapping sites represent the best possible value to a gamer when moving onto a new video game.

    ReplyDelete
  21. Why didnt I think about this? I hear exactly what youre saying and Im so happy that I came across your blog. You really know what youre talking about, and you made me feel like I should learn more about this. Thanks for this; Im officially a huge fan of your blog Gaming Hack

    ReplyDelete
  22. Immigration Lawyers… [...]here are some links to sites that we link to because we think they are worth visiting[...]… Run Subway Fun Race 3D Review

    ReplyDelete
  23. The world of video games is creative beyond imagination; quite literally so! The PlayStation, Game Boy or even a smartphone is like a portal that opens into an astonishing universe. But what is most astonishing is that irrespective of country, creed, colour or language, gamers the world over are playing the same games. https://spelhacks.info/pokemon-go-hack-coins-fake-gps-hack/

    ReplyDelete
  24. While there are tons of games out there that are graphically rich and meant to take advantage of your computers hardware to render realistic characters, environment and special effects, not a lot of us have the money to spend on gaming rigs to even be able to play these games. Fortunately though, there are also games that have been developed that you can play within your browser, making use of flash which doesn't need quite as much video processing power for you to play. Run Subway Fun Race 3D Review

    ReplyDelete
  25. Video game testing is critical for some reasons. Games are naturally unpredictable, blending numerous stimulation classes into a consistent and agreeable intelligent experience. The primary selling purpose of games is that the medium itself is brilliant. http://63.250.38.187/jurusqq/

    ReplyDelete
  26. How do I become a video game tester? This is one of the questions people ask me everyday. They see me testing video games for programmers and they want to know how I do. I've written this article specifically for it so you too can benefit from this coolest job most people want to do. Learn to become a video game tester through this article. Bandar Murahqq

    ReplyDelete
  27. Thanks for sharing a useful information. All tips useful for iphone game app developers.

    ReplyDelete
  28. During a Games session, it is good to play a wide range of different types of games. If you have been running around lots, then it might be good to get the kids into a circle (with or without chairs depending on the game you wish to play) and trying the following 31 games ideas! 파워볼사이트

    ReplyDelete
  29. Video games are designed to entertain players and give missions to complete all throughout the game. It is normally made to challenge players, and allow every player achieve small accomplishments that will give them the urge to continue playing. May it be small or big achievements, those achievements are somehow the driving force of players to keep on playing video games. เกมไพ่ป๊อกเด้ง

    ReplyDelete
  30. The things have changed alot over the years but the only legacy that has continued is the legit and trustworthy service for runescape gold swap from ZedRS.

    ReplyDelete
  31. Every gamer goes through the process of buying a new video game - playing it to boredom or completion and then moving onto the next game. For some, the retail value of 40 pounds (60 dollars) for most new video games makes moving onto the next game a tricky task, making gaming an expensive hobby! This article will discuss several methods of buying/getting new video games available to gamers and consider whether video game swapping sites represent the best possible value to a gamer when moving onto a new video game. 메이저 토토사이트

    ReplyDelete
  32. webgirls.pl When it comes to combating yeast infections, patients often have their function cut out for these people. This is because candida albicans can readily become persistent and on-going. Knowing that, on this page, we are going to existing a variety of some of the finest confirmed candida remedy and elimination suggestions about.

    ReplyDelete
  33. https://gameeffect.xyz Many individuals have cherished the overall game of baseball for years. You can find fans around the world, from dedicated very little-leaguers to die-tough spectators. This article has tips to prove how satisfying baseball actually is.

    ReplyDelete
  34. https://gamezoom.xyz Finding a exercise spouse can substantially increase your muscle mass-creating final results. Your spouse can be quite a valuable way to obtain determination for sticking with your workout program, and driving anyone to optimize your endeavours while you exercise. Using a reputable companion to determine with can also help keep you secure because you will usually have got a spotter.

    ReplyDelete
  35. ビットカジノ 暗号通貨 You see them on publications as well as on Tv set, individuals who look like their hands and thighs will explode as his or her muscles are so large! There is absolutely no need to have that you should consider your body to this degree should you don't want to, since the straightforward methods on this page will help you construct muscle tissue in a wholesome approach.

    ReplyDelete
  36. hank you , this is really useful information towards my assessment.areenadesign

    ReplyDelete
  37. This is so impressive.. Vape Daze

    ReplyDelete
  38. This is absolute magic for you!
    difference between hajj and umrah

    ReplyDelete