用于Linux的Apple iOS IDE?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4995252/
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
Apple iOS IDE for linux?
提问by oopbase
I am interested in getting to know whether there is an IDE to develop for Apple iOS? I am currently learning Objective-C, but I don't have a Macbook or something like that.
我有兴趣了解是否有为 Apple iOS 开发的 IDE?我目前正在学习 Objective-C,但我没有 Macbook 或类似的东西。
So actually I am looking for an "all around" IDE, including:
所以实际上我正在寻找一个“全方位”的 IDE,包括:
- Objective-C compiler
- Objective-C debugger
- Possibilities to test developed apps (like an iPhone emulator)
- Objective-C 编译器
- Objective-C 调试器
- 测试开发的应用程序的可能性(如 iPhone 模拟器)
What else would I need to develop iPhone apps on Ubuntu (if that's possible)?
在 Ubuntu 上开发 iPhone 应用程序还需要什么(如果可能的话)?
Thank you for any suggestions.
谢谢你的任何建议。
采纳答案by Moshe
What you are asking for is neigh impossible. The only solution I could think of to develop on Linux would be to use GCC or Clang to compile Objective-C. There are no Apple Frameworks or simulators, save GnuStep, and that isn't 100% compatible.
你所要求的是几乎不可能的。我能想到的在 Linux 上开发的唯一解决方案是使用 GCC 或 Clang 来编译 Objective-C。除了 GnuStep 之外,没有 Apple 框架或模拟器,这不是 100% 兼容。
There are a few problems.
有几个问题。
The iOS SDK libraries don't exist for Linux.
The simulator does not exist for Linux.
How do you plan to sign your app from Linux?
适用于 Linux 的 iOS SDK 库不存在。
Linux 不存在模拟器。
你打算如何从 Linux 签署你的应用程序?
You could technically use a VM, but that is against the Mac OS X EULA. Another sketchy option is to compile against GNUStep and test on a jailbroken device.
从技术上讲,您可以使用 VM,但这违反了 Mac OS X EULA。另一个粗略的选择是针对 GNUStep 进行编译并在越狱设备上进行测试。
Honestly, your best bet is to break the bank and get a Mac (Mini or Air, now that the MacBook is discontinued. That said, you might consider spending a bit more on a larger screen. It's really hard to write code on just 11 inches of screen.) A few moths of developing may make back your initial investment.
老实说,你最好的办法是花钱买一台 Mac(Mini 或 Air,现在 MacBook 已经停产了。也就是说,你可能会考虑在更大的屏幕上多花一点钱。在 11 上写代码真的很难)英寸的屏幕。)一些开发的飞蛾可能会收回您的初始投资。
Good luck!
祝你好运!
回答by Matt
回答by jsbueno
While probably not producing native looking apps, there are a couple cross-platform multimedia tool-stacks, like the Kivy Project- which supports packaging for iOS - http://kivy.org/docs/guide/packaging-ios.html- This project does use Python as the programming language, not objective C.
虽然可能不会产生原生外观的应用程序,但有一些跨平台的多媒体工具堆栈,例如Kivy Project- 它支持 iOS 打包 - http://kivy.org/docs/guide/packaging-ios.html- 这项目确实使用 Python 作为编程语言,而不是目标 C。