Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

C2FTW

macrumors newbie
Original poster
Aug 7, 2010
2
0
Hey all,

I didn't see this in any stickies, so please point me at another thread if necessary.

I work on a PC and I want to develop some apps for the iPhone. I'm wondering about what's the best way to code for a mac on my box. I've thought about dual booting but I'd rather not go that direction. Are there any specific OS emulators or IDEs that are good for this? Any advice would be great.
 

C2FTW

macrumors newbie
Original poster
Aug 7, 2010
2
0
what about virtualization

I know that recent mac OS's have been ported to the Win32/x86 architecture. I'm looking around on the VMware forums for confirmation, but this would make sense, no?
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
I know that recent mac OS's have been ported to the Win32/x86 architecture. I'm looking around on the VMware forums for confirmation, but this would make sense, no?

Win32 is Windows. It has nothing to do with the architecture of the hardware. Mac OS has not been ported to anything to do with Win32. The EULA of Mac OS prohibits running on anything but an Apple produced Mac (including virtualisation).
 

xStep

macrumors 68020
Jan 28, 2003
2,031
143
Less lost in L.A.
As mentioned, you can create a Hackintosh or you may be able to use a virtual machine to run OS X on. A copy of OS X is USD$129 and there is at lease one free VM. An internet search will come up with the solutions.

There are no emulators.

Apple has discouraged third party IDEs and limited language use via their developer user agreement.

I believe that to post an app to the App Store requires the use of XCode. In turn that requires OS X.

You could buy a used Mac to keep the entry price low. Just keep in mind that it must be an Intel based Mac. The older PPC Macs do not support iOS development.
 

Don Kosak

macrumors 6502a
Mar 12, 2010
860
4
Hilo, Hawaii
Just buy the cheapest Mac Mini (new or used).

If you buy used, make sure it's got an Intel CPU.

Use your PC Keyboard and Monitor. You can get fancy and buy a $20 KVM (keyboard/video/monitor) switch to switch between your PC and Mac.

You can probably find a Mac Mini for the price of a Netbook if you look on ebay, craigs list. And even new, they're pretty cheap.
 

Giuly

macrumors 68040
A copy of OS X is USD$129 and there is at lease one free VM.
Well, my 10.6.3 DVD was 29€ at the mall.
I guess you refer to VirtualBox. It only runs Mac OS X Server, and for that your $129 wouldn't be enough.

BUT: You want to develop for the iPhone -> Means you want to put something on the App Store -> Means you want to earn money.
I guess the first rule in life is "If you want to earn, you got to spend first". Or in other words, just get any Intel MacMini for little money. To develop for the iPhone, you have to work on a Mac, and IMHO this is an advantage. If you start using Mac OS X, you begin to see things different, because things are handled a bit different (Don't let us start the Windows 7 vs. Snow Leopard thing here, we're close to 10.7 and I haven't heard of Windows 8 yet). Those little differences condensate into your development, and this is what we love so much on our iPhone.

Also, if you don't have a Mac, you may want to spend those $200-300 for a MacMini and try it out. If you don't like it, you can still resell it. Macs don't loose their value as fast as PCs.
 

Cromulent

macrumors 604
Oct 2, 2006
6,802
1,096
The Land of Hope and Glory
I guess the first rule in life is "If you want to earn, you got to spend first".

You've got to speculate to accumulate.

Oh and the only reason Snow Leopard was so cheap was because it was an upgrade version. If you want a new copy that will install without Leopard already being installed it is the normal price.
 

xStep

macrumors 68020
Jan 28, 2003
2,031
143
Less lost in L.A.
Oh, right. I forgot about the messy $29 and $169 versions. There is no $129 version currently. If you are upgrading specifically from Leopard, then you are entitled by Apple to buy the $29 box. If you are upgrading from pre-Leopard, you are suppose to buy the more expensive box which includes the iLife set. Never mind that you may have already purchased that set.

Anyway, the $29 box installs just fine on a Mac without Leopard. As for the VM installs, the OP will have to do his own detailed research.

As far as I know, VirtualBox doesn't limit which version of OS X you install, server or client. It is the other two major brands that take that action. And they also limit you to a Mac box running OS X.
 

mlts22

macrumors 6502a
Oct 28, 2008
540
35
This *may* not be an issue, but in theory, someone writing apps on a Hackintosh might be in trouble for violating copyright laws, similar to someone writing a commercial application on a pirated commercial compiler.

I doubt Apple would sue an app developer into the ground, but legally, they can.

Just to get in the door, I second the Mac Mini suggestion for a low end machine. Alternatively, you can use the dual-HDD Mac Mini (plus an external DVD drive) as a development machine, so one HDD failure won't take out your build tree.
 

xStep

macrumors 68020
Jan 28, 2003
2,031
143
Less lost in L.A.
This *may* not be an issue, but in theory, someone writing apps on a Hackintosh might be in trouble for violating copyright laws, similar to someone writing a commercial application on a pirated commercial compiler.

I doubt Apple would sue an app developer into the ground, but legally, they can.

I far as I know, there isn't any completed case to suggest that installing a paid for copy of OS X on non Apple hardware brakes any law. There has been plenty of argument either way and Apple is involved in such a lawsuit with Psystar Corporation. Even so, I wonder if that case would affect individuals building their own Hackintosh.

Admittedly, the above doesn't affect me directly because both of my OS X machines are Apple Macs. :D Well, for now. ;)
 

mlts22

macrumors 6502a
Oct 28, 2008
540
35
I far as I know, there isn't any completed case to suggest that installing a paid for copy of OS X on non Apple hardware brakes any law. There has been plenty of argument either way and Apple is involved in such a lawsuit with Psystar Corporation. Even so, I wonder if that case would affect individuals building their own Hackintosh.

Admittedly, the above doesn't affect me directly because both of my OS X machines are Apple Macs. :D Well, for now. ;)

Sometimes I wish Apple would give discounts for app developers for Macs. Since Apple is making money from them from the App Store, might as well toss a bone to the devs and offer equipment at some sort of discount, discount dependent on how much revenue the app has made.
 

xStep

macrumors 68020
Jan 28, 2003
2,031
143
Less lost in L.A.
Sometimes I wish Apple would give discounts for app developers for Macs. Since Apple is making money from them from the App Store, might as well toss a bone to the devs and offer equipment at some sort of discount, discount dependent on how much revenue the app has made.

They did. I don't know if the offer was limited to Mac developers and excluded iPhone developers. As far as I know, that program has been discontinued and people who are still on it, can still order a Mac (and some other hardware) at a discount.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
They did. I don't know if the offer was limited to Mac developers and excluded iPhone developers. As far as I know, that program has been discontinued and people who are still on it, can still order a Mac (and some other hardware) at a discount.

It was Mac only and the program was a lot more expensive than the iPhone one.
 

ranguvar

macrumors 6502
Sep 18, 2009
318
2
It was Mac only and the program was a lot more expensive than the iPhone one.

Yeah, I remember Chris Pirillo getting a Mac Pro and a Apple Developer premium license for less than the Mac Pro would have cost without the dev license :)
 

ctyhntr

macrumors 6502
Jul 21, 2010
301
0
Hey all,

I didn't see this in any stickies, so please point me at another thread if necessary.


To get you started, here is the sticky titled "How do I get started programming on the Mac (or iPhone)?"
https://forums.macrumors.com/forums/135/


I work on a PC and I want to develop some apps for the iPhone. I'm wondering about what's the best way to code for a mac on my box. I've thought about dual booting but I'd rather not go that direction. Are there any specific OS emulators or IDEs that are good for this? Any advice would be great.

As others commented, Apple strongly discourage 3rd party development tools, especially for the iPhone. XCode for the MacOS is comparable to Microsoft's Visual Studio. If you have a Mac, you can download XCode for free.
 

ianray

macrumors 6502
Jun 22, 2010
452
0
@
I work on a PC and I want to develop some apps for the iPhone. I'm wondering about what's the best way to code for a mac on my box.

Before Apple released the official SDK, there was an unofficial SDK made by the jailbreak community. For your own purposes only it might be possible to resurrect the unofficial SDK command-line tools to develop and deploy an App.

However, it would be a lot easier to just buy a Mac :D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.