我可以在 Vista 上使用 C#.NET 开发 iPhone 应用程序吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/676291/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can I develop iPhone applications using C#.NET on Vista?
提问by egyamado
I'm interested in developing an iPhone application using Visual Studio and C#.NET on Windows Vista.
我对在 Windows Vista 上使用 Visual Studio 和 C#.NET 开发 iPhone 应用程序很感兴趣。
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.
我试图从http://developer.apple.com/iphone/index.action下载 SDK ,但该文件有.dmg
扩展名,我不知道如何打开该文件。
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?
那么,作为 .NET 开发人员,我可以针对 iPhone API 工作和开发吗?是否有使用 .NET 开发的现有应用程序?是否有任何资源或网站可以帮助解决这个问题?
Thanks!
谢谢!
采纳答案by Steven Robbins
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.
一句话,没有。iPhone 有 Mono 支持,但目前是有限的。他们过去曾讨论过编写 Silverlight 应用程序的可能性,其中包含一系列可以作为 iPhone 应用程序静态链接的“iPhone 风格”控件,但这还有一段路要走。
If it's games you're interested in, and you have deep pockets, then UNITYis a Mono based game development platform that supports the iPhone (and runs on Windows)
如果是您感兴趣的游戏,并且您的资金雄厚,那么UNITY是一个基于 Mono 的游戏开发平台,支持 iPhone(并在 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)
如果做不到这一点,请咬紧牙关从 eBay 购买便宜的 Mac。SDK 正式仅支持 Intel Mac,但您可以将其安装在 PPC 上,我还没有遇到问题(我目前在 G5 PowerMac 上运行它)
回答by Ry4an Brase
No, you cannot.
你不能。
回答by overslacked
Sadly, no, you cannot develop standard iPhone apps with C#/.NET.
遗憾的是,不,您不能使用 C#/.NET 开发标准 iPhone 应用程序。
However, I've seen screenshots of mono running on an iPhone, so, someday perhaps ... although, it probably won't be in a legal setup.
但是,我已经看到在 iPhone 上运行单声道的屏幕截图,所以,也许有一天......虽然,它可能不会处于合法设置中。
回答by Andy White
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.
iPhone 不支持 .NET。我不相信有任何兼容性黑客或类似的东西可以在 iPhone 上运行 .NET 应用程序,所以你可能不得不咬紧牙关学习 Objective-C。
I would do a google search for "iPhone development tutorials." There will probably be a bit of a learning curve.
我会在谷歌上搜索“iPhone 开发教程”。可能会有一点学习曲线。
回答by Dave Webb
This similar question asks if iPhone development is possible on Windows.
这个类似的问题询问是否可以在 Windows 上开发 iPhone。
The answer appears to be: only for JailbrokeniPhones.
答案似乎是:仅适用于越狱的iPhone。
回答by Paul Dixon
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.
可以使用Unity在 C# 中为 iPhone 进行开发 。它按照此处所述执行提前编译。然而,Unity 似乎更倾向于开发游戏,而 iPhone SDK 目前需要 Mac OSX。
回答by euphoria83
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.
.dmg 扩展名代表“磁盘映像”,用于 Mac OS X 中的安装文件。Windows Vista 无法识别格式,因此您无法打开它。
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.
此外,您将无法获得在 .NET 框架中开发 iPhone 应用程序所需的库/SDK。您必须下载最新版本的 iPhone SDK,它带有一个 iPhone 模拟器,用于在开发机器上进行测试。用于 iPhone 开发的主要框架是 UIKit。
The best place to start learning about iPhone development is here.
开始学习 iPhone 开发的最佳地点是这里。
回答by Jonas Stawski
UPDATE 7/18/2013:
2013 年 7 月 18 日更新:
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 Windowsand Visual Studio, but you still need a Mac to compile and build. Here'sa blog post on how to use VS for iOS development.
由于此答案已有 3 年历史,因此我想使用当前信息对其进行更新。MonoTouch 已不复存在,因为它现在是Xamarin 的一部分。有了它,您可以使用 C# 和部分 .NET Framework(使用 Mono)开发移动应用程序。您可以使用 Windows和 Visual Studio开发 iOS 应用程序,但您仍然需要一台 Mac 来编译和构建。这是一篇关于如何使用 VS 进行 iOS 开发的博客文章。
ORIGINAL ANSWER
原答案
MonoTouch. You still need a mac and a minimum of $400 (as of this writing)
单触。你仍然需要一台 mac 和至少 400 美元(在撰写本文时)
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.
您可以尝试不需要付费并允许您使用模拟器进行编程的 eval 版本。如果您想在硬件上测试您的应用程序,那么您需要花钱。
回答by wayne
or you could just run mac os on your pc http://oreilly.com/windows/archive/PearPC.htmlcheck it out
或者你可以在你的电脑上运行 mac os http://oreilly.com/windows/archive/PearPC.html检查一下
回答by Dan
yes. monotouch works fine
是的。单点触控工作正常