我听说如果你想开发iPhone应用程序,你需要一台Mac电脑。这是真的吗?
有可能使用Linux开发iPhone应用程序吗?如果是,我需要什么,我从哪里下载必要的工具?
我听说如果你想开发iPhone应用程序,你需要一台Mac电脑。这是真的吗?
有可能使用Linux开发iPhone应用程序吗?如果是,我需要什么,我从哪里下载必要的工具?
当前回答
你得去找麦克。有几个可用的工具链(如win-chain)实际上可以让你在windows上编写和构建iphone应用程序。有几个相关的教程可以在Windows上构建Objective C代码。但有一个问题,因此开发的应用程序只能在越狱手机上运行。
我们已经看到了一些克服这一障碍并将其推向App Store的方法,但随着苹果不断更新sdk,工具链也需要定期更新。总是化妆是件麻烦事。如果你想准备好应用程序,你也可以从arcapps得到帮助,它以合理的价格推出应用程序。 IPhone应用开发
其他回答
到目前为止,这似乎是真的。苹果提供的唯一SDK仅针对macOS环境。我一直对此感到不安,但我现在正在考虑买一台mac电脑,只是为了开发iPhone。我真的不喜欢他们正在做的事情,我希望有一个好的SDK出现在其他环境中,比如Linux和Windows。
关于SDK的障碍:
The iPhone SDK and free software: not a match Apple's recently released a software development kit (SDK) for the iPhone, but if you were hoping to port or develop original open source software with it, the news isn't good. Code signing and nondisclosure conditions make free software a no-go. The SDK itself is a free download, with which you can write programs and run them on a software simulator. But in order to actually release software you've written, you must enroll in the iPhone Developer Program -- a step separate from downloading the SDK, and one that requires Apple's approval.
我认为他们认为只有macOS用户才能为他们的手机编写程序是相当精英的,而且如果你想发布你的东西,你需要购买100美元的许可证,这真的让业余程序员更加困难。不过,如果这是你需要做的,我打算跳过他们的圈子;我真的很想在我的iPhone上开发一些东西。
我所知道的在iPhone Linux上进行开发的唯一方法是安装Vmware,并在虚拟机中运行OS X。尽管如此,这样做还是有一些“法律”问题。据报道,OS X服务器可以虚拟化,但就开发故事而言,我不知道。
如果你是认真的,那就是我要调查的。
祝你好运。
有一个叫做Rhodes的框架。
The concept is based on Ruby on Rails and you develop your mobile app in Ruby and HTML, and you can write your code in a Linux environment. You can then create an account at Rhohub, where you add the code (through GitHub), and it allows you to compile it for iPhone, Blackberry, Android, Windows Mobile and Symbian, all off the same code. You don't have to code in Objective-C for iPhone, nor Java for Android, etc. It does the conversions for you. All you need to do is stick to the Rules for creating an iPhone application (or the Phone's you want to develop for) so it can be accepted at iTunes (or the equivalent market).
这将允许你将应用程序添加到iTunes中。
然而,我还没有找到任何模拟器,这意味着要测试你的应用,你需要把它放在iPhone上,这是一项任务。
我正在使用这个选项,因为我想为所有手机创建应用程序,我已经使用Ruby on Rails。如果你只是想为iPhone开发一款应用,那就投资Mac吧。
希望这能有所帮助。
曾经有一个项目专门解决这个缺陷:iphone-dev
iPhone开发项目的目标是创建一个免费的、可移植的、高质量的工具链,以支持苹果iPhone和其他基于ARM/Darwin平台的嵌入式设备的开发。
我曾尝试将cocos2d-iphone移植到GNUstep,这样你就可以基于cocos2d开发游戏了。但是对于发布,你需要一个mac. cocos2d-GNUstep。