21

I’m interested in developing an iPhone application using Visual Studio and C#.NET on Windows Vista.

I tried to download the SDK from http://developer.apple.com/iphone/index.action, but the file has a .dmg extension and I don’t know how to open that file.

So can I as .NET developer work and develop against iPhone APIs? And are there any existing applications which haven been developed using .NET? Are there any resources or web sites can help in that matter?

Thanks!

Community
  • 1
  • 1
egyamado
  • 1,111
  • 4
  • 23
  • 44
  • The accepted answer doesn't take Xamarin into account which has been released recently. See tomfanning's answer. – oldwizard Feb 24 '13 at 11:35

12 Answers12

24

In a word, no. There is Mono support for the iPhone, but it's currently limited. They have spoken in the past about the possibility of writing a Silverlight app, with a series of "iPhone style" controls that could be statically linked as an iPhone app, but that's some way off.

If it's games you're interested in, and you have deep pockets, then UNITY is a Mono based game development platform that supports the iPhone (and runs on Windows)

Failing that, bite the bullet and get a cheap Mac from EBay. Officially only Intel Macs are supported for the SDK, but you can get it to install on PPC ones and I've yet to have a problem with that (I'm running it on a G5 PowerMac at the moment)

Richard Szalay
  • 83,269
  • 19
  • 178
  • 237
Steven Robbins
  • 26,441
  • 7
  • 76
  • 90
10

UPDATE 7/18/2013:

Since this answer is 3 years old I would like to update it with current information. MonoTouch is no more because it is now part of Xamarin. With it you can develop mobile applications using C# and parts of the .NET Framework (using Mono). You can develop iOS apps using Windows and Visual Studio, but you still need a Mac to compile and build. Here's a blog post on how to use VS for iOS development.

ORIGINAL ANSWER

MonoTouch. You still need a mac and a minimum of $400 (as of this writing)

You can try the eval version which doesn't require you to pay and allows you program using the simulator. If you want to test your app on the hardware then you need to pocket the money.

Jonas Stawski
  • 6,682
  • 6
  • 61
  • 106
  • Be interesting to see how this plays out: http://techcrunch.com/2010/04/08/adobe-flash-apple-sdk/ – TrueWill Apr 12 '10 at 17:08
  • According to Miguel de Icaza, this doesn't affect MonoTouch. There have been plenty of apps approved in the iPhone SDK since the new agreement – Jonas Stawski Oct 09 '10 at 18:08
3

yes. monotouch works fine

Dan
  • 31
  • 1
3

Current answer to this question is yes, with MonoTouch from Novell using MonoDevelop on a Mac computer, but bear in mind that Novell laid off the Mono/MonoTouch guys, who are right now in the middle of setting up a startup to replace MonoTouch with a new product called Xamarin, due for release this summer.

January 2013

Xamarin came through with MonoTouch and Mono for Android quite a while ago now, both of which are great products, if somewhat expensive for the enthusiast.

tomfanning
  • 9,552
  • 4
  • 50
  • 78
3

No, you cannot.

Ry4an Brase
  • 78,112
  • 7
  • 148
  • 169
2

This similar question asks if iPhone development is possible on Windows.

The answer appears to be: only for Jailbroken iPhones.

Community
  • 1
  • 1
David Webb
  • 190,537
  • 57
  • 313
  • 299
2

It is possible to develop for the iPhone in C# using Unity. It performs ahead of time compilation as described here. However, Unity seems more aimed at developing games and the iPhone SDK currently requires Mac OSX.

Paul Dixon
  • 4,201
  • 7
  • 28
  • 27
2

No, you cannot.

The .dmg extension stands for "disk image" and is used for installation files in Mac OS X. Windows Vista won't understand the format and hence you cannot open it.

Also, you won't get the libraries/SDK needed for developing iPhone apps in a .NET framework. You will have to download the latest version of iPhone SDK which comes with an iPhone emulator for testing on the development machine. The main framework used for iPhone development is the UIKit.

The best place to start learning about iPhone development is here.

euphoria83
  • 14,768
  • 17
  • 63
  • 73
1

or you could just run mac os on your pc http://oreilly.com/windows/archive/PearPC.html check it out

wayne
  • 11
  • 1
1

MonoTouch runs on Mac.. For windows you can look at DragonFireSDK. Currently for game development, it allows developing iPhone applications in Visual Studio 2010 using C++ .Net.

http://www.dragonfiresdk.com

Daniel Bardi
  • 352
  • 4
  • 7
1

Sadly, no, you cannot develop standard iPhone apps with C#/.NET.

However, I've seen screenshots of mono running on an iPhone, so, someday perhaps ... although, it probably won't be in a legal setup.

overslacked
  • 4,127
  • 24
  • 28
1

The iPhone does not support .NET. I don't believe there are any compatibility hacks or anything like that to run .NET apps on an iPhone, so you might have to bite the bullet and learn Objective-C.

I would do a google search for "iPhone development tutorials." There will probably be a bit of a learning curve.

Andy White
  • 86,444
  • 48
  • 176
  • 211
  • Unfortunately, there isn't a great iPhone IDE on windows. There are supposedly Eclipse/Aptana plugins for iPhone dev, but I'm not sure. You might be best off looking for a cheap Mac to do iPhone dev. – Andy White Mar 24 '09 at 06:18