Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I have got C# .Net based applications. Is there any way I can run these applications for Apple IOS. I don’t have resources to develop all applications from scratch.

Many Thanks, Ni

share|improve this question
up vote 8 down vote accepted

First of all, you can not just run your existing .NET programs unmodified on the iOS platform.

The .NET runtime does not work on iOS, nor will it (in relation to current app guidelines regarding runtime compilation). Mono has the same fate and will not run on the iOS platform.

Your only option is to get the code compiled to native iOS executables, and this will involve 3rd party tools.

One of those is the MonoTouch product. It is not free.

Note that this is not a technical limitation. The .NET runtime could run on the iOS platform if Microsoft, or Mono made it for that platform, but Apple does not allow such runtimes (the ones that download/execute not-yet-100%-compiled code) on their platform at all.

This is the same problem that prevents Flash from executing on the platform. The way Flash has gone to solve this is to compile the Flash programs to native iOS executables.

share|improve this answer

You can use the tools made by the mono project.

These will not support all of the MS namespaces (non of the windows specific ones, such as WMI) and your application code needs to be written to be cross platform (so using Path.Combine for directory paths instead of concatenations).

Try the MoMA tools to see if your code is cross platform and get recommendations for fixing it if it is not.

share|improve this answer
    
Thanks Oded. Yes I had look at that option earlier. However, It is not free. Is there any other option available? – Nirali Sep 26 '11 at 10:13
    
@Nirali - What do you mean it is not free? It is an open source project and is definitely free for Macs. Yes, you do need to purchase the environment (MonoTouch) for the iPhone/iPad but for a Mac, it's free. – Oded Sep 26 '11 at 10:14
    
And mono works with any iPhone without jailbreaking it? – Eric Herlitz Sep 26 '11 at 10:15
    
@Trikks - Where is the iPhone mentioned in the question? – Oded Sep 26 '11 at 10:16
    
If you need to create IOS apps, MonoTouch is the answer. But still not free – Frederiek Sep 26 '11 at 10:20

Take a look at Xamarin for IOS. Integrates nicely with Visual Studio otherwise you can use its own IDE.

You can also reference .net assemblies. Hope this helps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.