Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 7, 2010, 03:53 PM   #1
C2FTW
macrumors newbie
 
Join Date: Aug 2010
Coding for iPhone in Windows

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 is offline   0 Reply With Quote
Old Aug 7, 2010, 03:54 PM   #2
miles01110
macrumors 604
 
miles01110's Avatar
 
Join Date: Jul 2006
Location: The Ivory Tower (I'm not coming down)
The only way you might get it to work is with a hackintosh, otherwise you're SOL.
__________________
Got a problem? Check here first.
miles01110 is offline   0 Reply With Quote
Old Aug 7, 2010, 04:18 PM   #3
C2FTW
Thread Starter
macrumors newbie
 
Join Date: Aug 2010
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?
C2FTW is offline   0 Reply With Quote
Old Aug 7, 2010, 04:26 PM   #4
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by C2FTW View Post
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).
robbieduncan is offline   0 Reply With Quote
Old Aug 7, 2010, 06:24 PM   #5
xStep
macrumors 68000
 
Join Date: Jan 2003
Location: 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.
xStep is offline   0 Reply With Quote
Old Aug 8, 2010, 04:48 PM   #6
Don Kosak
macrumors 6502a
 
Join Date: Mar 2010
Location: 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.
Don Kosak is offline   0 Reply With Quote
Old Aug 8, 2010, 06:58 PM   #7
Giuly
macrumors 68040
 
Giuly's Avatar
 
Join Date: Oct 2009
Location: That depends whether you ask for timezone, state of mind or GPS coordinates.
Quote:
Originally Posted by xStep View Post
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.
Giuly is online now   0 Reply With Quote
Old Aug 8, 2010, 08:00 PM   #8
Cromulent
macrumors 603
 
Cromulent's Avatar
 
Join Date: Oct 2006
Location: The Land of Hope and Glory
Quote:
Originally Posted by Giuly View Post
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.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development
Last.fm Profile | Extreme Metal Reviews
MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3
Cromulent is offline   0 Reply With Quote
Old Aug 8, 2010, 10:35 PM   #9
xStep
macrumors 68000
 
Join Date: Jan 2003
Location: 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.
xStep is offline   0 Reply With Quote
Old Aug 9, 2010, 01:37 PM   #10
mlts22
macrumors 6502
 
Join Date: Oct 2008
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.
mlts22 is offline   0 Reply With Quote
Old Aug 9, 2010, 08:49 PM   #11
xStep
macrumors 68000
 
Join Date: Jan 2003
Location: Less lost in L.A.
Quote:
Originally Posted by mlts22 View Post
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. Well, for now.
xStep is offline   0 Reply With Quote
Old Aug 10, 2010, 11:43 AM   #12
mlts22
macrumors 6502
 
Join Date: Oct 2008
Quote:
Originally Posted by xStep View Post
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. 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.
mlts22 is offline   0 Reply With Quote
Old Aug 10, 2010, 02:10 PM   #13
xStep
macrumors 68000
 
Join Date: Jan 2003
Location: Less lost in L.A.
Quote:
Originally Posted by mlts22 View Post
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.
xStep is offline   0 Reply With Quote
Old Aug 10, 2010, 02:14 PM   #14
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by xStep View Post
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.
robbieduncan is offline   0 Reply With Quote
Old Aug 10, 2010, 05:35 PM   #15
ranguvar
macrumors 6502
 
Join Date: Sep 2009
Quote:
Originally Posted by robbieduncan View Post
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
ranguvar is offline   0 Reply With Quote
Old Aug 10, 2010, 11:26 PM   #16
ctyhntr
macrumors 6502
 
Join Date: Jul 2010
Quote:
Originally Posted by C2FTW View Post
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)?"
http://forums.macrumors.com/forumdisplay.php?f=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.
ctyhntr is offline   0 Reply With Quote
Old Aug 11, 2010, 03:22 AM   #17
xStep
macrumors 68000
 
Join Date: Jan 2003
Location: Less lost in L.A.
Quote:
Originally Posted by ctyhntr View Post
If you have a Mac, you can download XCode for free.
And if you don't have the bandwidth to download the multi gigabyte file, then a slightly older version is available on the OS X install DVD.
xStep is offline   0 Reply With Quote
Old Aug 11, 2010, 04:22 AM   #18
LastLine
macrumors 65816
 
Join Date: Aug 2005
Quote:
Originally Posted by xStep View Post
And if you don't have the bandwidth to download the multi gigabyte file, then a slightly older version is available on the OS X install DVD.
With outdated SDK's sadly.
LastLine is offline   0 Reply With Quote
Old Aug 12, 2010, 07:05 AM   #19
ianray
macrumors 6502
 
Join Date: Jun 2010
Location: @
Quote:
Originally Posted by C2FTW View Post
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
__________________
My App Store Apps: Dashometer, Exinf, Score&Grade
ianray is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhone: Is anyone here good with coding? AndrewR23 Jailbreaks and iOS Hacks 3 Mar 21, 2014 05:20 PM
Want to try Coding. gomattgo MacBook Pro 6 Feb 23, 2014 08:15 PM
Coding for Security ghanderman MacBook Pro 2 Apr 20, 2013 05:43 AM
Windows Phone programming for iOS programmers (and iOS coding tips) Part I Menneisyys2 iPhone/iPad Programming 5 Jan 9, 2013 07:03 PM
can we aceess sms database file in iphone though coding? manga iPhone 0 Oct 3, 2012 08:49 AM

Forum Jump

All times are GMT -5. The time now is 01:00 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC