Windows 上的 iPhone SDK(替代解决方案)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/928656/
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
iPhone SDK on Windows (alternative solutions)
提问by Cyclone
I know there is no official SDK for Windows, which is very annoying. Is there any way to develop applications on a Windows computer, other than somehow running a Mac OS in VMware? I know you can do it with Xcode, but that is also only for Mac OS X. Google searches have revealed absolutely nothing.
我知道没有用于 Windows 的官方 SDK,这很烦人。除了在 VMware 中以某种方式运行 Mac OS 之外,还有什么方法可以在 Windows 计算机上开发应用程序?我知道你可以用 Xcode 做到这一点,但这也只适用于 Mac OS X。谷歌搜索完全没有透露任何信息。
If I cannot use the SDK or Xcode, is there any way I can just check syntax or something and just make my code in Notepad and save it with the proper extension? I have no idea whether or not I would be able to do that, probably because I have never even tried the SDK and probably never will without buying a Mac.
如果我不能使用 SDK 或 Xcode,有什么办法可以检查语法或其他东西,然后在记事本中制作我的代码并使用正确的扩展名保存它?我不知道我是否能够做到这一点,可能是因为我从未尝试过 SDK,如果不购买 Mac,可能永远不会尝试。
采纳答案by Ryan McGrath
You could easily build an app using PhoneGapor Appcelerators Titanium Mobile.
您可以使用PhoneGap或Appcelerators Titanium Mobile轻松构建应用程序。
Both of these essentially act as a WebKit wrapper, so you can build your application with HTML/CSS/JavaScript. It's a pretty portable solution, too, but you are somewhat limited in what you can make - i.e, no intensive rendering or anything. It really all depends on what you're looking to do.
这两者本质上都充当 WebKit 包装器,因此您可以使用 HTML/CSS/JavaScript 构建您的应用程序。这也是一个非常便携的解决方案,但是您可以制作的内容有些有限 - 即没有密集渲染或任何东西。这真的完全取决于你想要做什么。
回答by Nosredna
I looked into this before buying a Mac Mini. The answer is, essentially, no. You pretty much have to buy a Leopard Mac to do iPhone SDK development for apps that run on non-jailbroken iPhones.
我在购买Mac Mini之前研究过这个。答案基本上是否定的。您几乎必须购买 Leopard Mac 才能为在非越狱 iPhone 上运行的应用程序进行 iPhone SDK 开发。
Not that it's 100% impossible, but it's 99.99% unreasonable. Like changing light bulbs with your feet.
不是 100% 不可能,而是 99.99% 不合理。就像用脚换灯泡一样。
Not only do you have to be in Xcode, but you have to get certificates into the Keychain manager to be able to have Xcode and the iPhone communicate. And you have to set all kinds of setting in Xcode just right.
您不仅必须在Xcode 中,还必须将证书放入 Keychain 管理器中才能让 Xcode 和 iPhone 进行通信。而且你必须在 Xcode 中设置各种设置恰到好处。
回答by Ana Betts
You could do what saurik of Cydia does, and write your code on a PC then build it on the iPhone itself(it is a Mac, technically!) after you jailbreak it. However, you don't get Interface Builder, so you're basically creating UIs in code by hand. It'd also be pretty tough to actually submit your app without a Mac.
你可以像 Cydia 的 saurik 所做的那样,在你越狱后在 PC 上编写代码,然后在 iPhone 本身(从技术上讲,它是 Mac!)构建它。但是,您没有获得 Interface Builder,因此您基本上是在代码中手动创建 UI。在没有 Mac 的情况下实际提交您的应用程序也非常困难。
回答by Taptronic
No, you must have an Intel Mac of some sort. I went to Best Buy and got a 24" iMac with 4G RAM for $1499 using their 18 month no interest promotion. I pay a minimum payment of something like $16 a month. As long as I pay the entire thing off within 18 months - no interest. That was the only way I was getting into iPhone development.
不,您必须拥有某种类型的 Intel Mac。我去百思买买了一台带有 4G 内存的 24 英寸 iMac,使用他们 18 个月的无息促销,价格为 1499 美元。我每月支付的最低付款额为 16 美元。只要我在 18 个月内付清所有费用 - 不兴趣。那是我进入 iPhone 开发的唯一途径。
回答by Jim
There is another solution if you want to develop in C/C++. http://www.DragonFireSDK.comwill allow you to build iPhone applications in Visual Studio on Windows. It's worth a look-see for sure.
如果您想用 C/C++ 进行开发,还有另一种解决方案。 http://www.DragonFireSDK.com将允许您在 Windows 上的 Visual Studio 中构建 iPhone 应用程序。绝对值得一看。
回答by kellogs
No one has brought up the hackintosh. If you have supported hardware it might be the best option.
没有人提出hackintosh。如果您有支持的硬件,它可能是最好的选择。
回答by Ben Gotow
Technically you can write code in a .NET language and use the Mono Framework (http://www.mono-project.com/) to run it on the iPhone. I haven't ever seen someone do this from scratch, but the folks that write the Unity Game Development platform (http://unity3d.com/) use it to make their games iPhone-compatible. The game itself is written in .NET, and then they provide an iPhone shell with the Mono frameworks that allows everything to run on the iPhone. I don't know whether they've contributed all of their modifications to Mono back to the open-source repository, but if you're serious about writing iPhone apps outside the Mac environment, it might be possible.
从技术上讲,您可以使用 .NET 语言编写代码并使用 Mono Framework ( http://www.mono-project.com/) 在 iPhone 上运行它。我从未见过有人从头开始这样做,但是编写 Unity 游戏开发平台 ( http://unity3d.com/) 的人使用它来使他们的游戏与 iPhone 兼容。游戏本身是用 .NET 编写的,然后他们提供了一个带有 Mono 框架的 iPhone 外壳,允许一切都在 iPhone 上运行。我不知道他们是否已经将他们对 Mono 的所有修改都贡献给了开源存储库,但如果您认真地想在 Mac 环境之外编写 iPhone 应用程序,那么这可能是可能的。
That said, I think you could dump weeks into getting that to work, and it might be best to invest in a Mac instead :-)
也就是说,我认为您可以花费数周的时间来让它工作,而最好还是投资购买 Mac :-)
回答by DaveR
This really comes down to how much you value your time. As the other posters have mentioned, there are a couple of ways you can build iPhone apps without a Mac. However, you are jumping through serious hoops, and it'll be much more difficult and take longer than it would with the proper development chain.
这实际上取决于您对时间的重视程度。正如其他海报所提到的,有几种方法可以在没有 Mac 的情况下构建 iPhone 应用程序。但是,您正在跳过严重的障碍,这将比使用适当的开发链困难得多,花费的时间也更长。
You can buy a second-hand Mac Minifor a couple of hundred bucks on eBay. If you're serious about doing iPhone development you'll make this back in saved time very quickly.
您可以在 eBay 上花几百美元购买一台二手Mac Mini。如果您对 iPhone 开发很认真,那么您将很快在节省的时间内将其恢复。
回答by DaveR
There are two ways:
有两种方式:
If you are patient (requires Ubuntu corral pc and Android SDK and some heavy terminal work to get it all set up). See Using the 3.0 SDK without paying for the priviledge.
If you are immoral (requires Mac OS X Leopard and virtualization, both only obtainable through great expense or pirating) - remove space from the following link. htt p://iphonewo rld. codinghut.com /2009/07/using-the-3-0-sdk-without-paying-for-the-priviledge/
如果您有耐心(需要 Ubuntu corral pc 和 Android SDK 以及一些繁重的终端工作才能完成所有设置)。请参阅使用 3.0 SDK 而无需支付特权。
如果您不道德(需要 Mac OS X Leopard 和虚拟化,两者都只能通过高昂的费用或盗版才能获得)- 从以下链接中删除空间。htt p://iphonewo rld. codinghut.com /2009/07/using-the-3-0-sdk-without-paying-for-the-priviledge/
I use the Ubuntu method myself.
我自己使用 Ubuntu 方法。
回答by Mobile Tech.
http://maniacdev.com/2010/01/iphone-development-windows-options-available/
http://maniacdev.com/2010/01/iphone-development-windows-options-available/
check this website they have shown many solutions .
检查这个网站,他们已经展示了许多解决方案。
- Phonegap
- Titanium etc.
- 电话沟
- 钛等