且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Apple / iPhone开发IDE首选项?

更新时间:2023-12-03 21:39:28

OS X上没有替代IDE可用于编写本机应用程序。但有些人不喜欢Xcode内置编辑器。一个非常受欢迎的选择是 TextMate (非免费,但值得~50美元)。可以将Xcode配置为使用您选择的编辑器来编辑文本文件。免费替代品包括 Emacs OS X的Vim 端口。

There really is no alternative IDE on OS X for writing native applications. Some dislike the Xcode built-in editor, however. One very popular alternative is TextMate (non-free, but well worth the ~$50). Xcode can be configured to use your editor of choice for editing text files. Free alternatives include Emacs and Vim ports for OS X.

当然,您可以在没有Xcode的情况下使用gcc工具链(例如使用Unix之一)像Make这样的构建系统。你也可以在终端命令行使用 xcodebuild 来构建一个Xcode项目而不使用Xcode GUI(你很难配置和管理项目而不用然而,GUI)。结合这两者,人们可以拼凑一个IDE,例如 Eclipse 来构建OS X应用程序。由于Xcode为您处理证书签名等,iPhone会更难,但仍然可能。当然,你会放弃从Xcode获得的所有优秀的Objective-C完成和文档集成。

You can, of course, use the gcc toolchain without Xcode (e.g. using one of the Unix-style build systems such as Make). You can also use xcodebuild at the terminal command line to build an Xcode project without using the Xcode GUI at all (you'd be hard-pressed to configure and manage the project without the GUI, however). Combining these two, one could cobble together an IDE from e.g Eclipse to build an OS X app. iPhone would be harder since Xcode handles certificate signing etc. for you, but still possible. You would loose all of the nice Objective-C completion and documentation integration you get from Xcode, of course.

因此,总而言之,Xcode几乎是唯一的游戏镇。毫无疑问需要一段时间才能习惯来自VS.特别是,代码生成在Cocoa世界中几乎闻所未闻。当您感觉自己在寻找这些工具时,请训练自己尝试不同的方法。 Objective-C的后期绑定与NIB / XIB的强大功能相结合(Interface Builder中生成的捆绑包描述了应用程序的UI; XIB是一种更新的,版本控制友好的基于XML的格式,可自动编译为NIB,来自NextStep天的旧式格式)不需要代码生成。

So, in summary, Xcode is pretty much the only game in town. It will undoubtedly take a while to get used to coming from VS. In particular, code generation is almost unheard of in the Cocoa world. When you feel yourself searching for those kind of tools, train yourself to try a different approach. Objective-C's late-binding combined with the power of NIB/XIB (bundles produced in Interface Builder that describe the UI of an app; XIB is a newer, version-control-friendly XML-based format that is automatically compiled into a NIB, the old-style format from NextStep days) makes code generation unnecessary.

对于非Cocoa / iPhone开发,生态系统自然更大。诺基亚为Qt工具包提供了自己的 IDE ,可用于编写OS X(但不是iPhone)应用程序。 Eclipse 可用于使用任何Java工具包(包括SWT和Qt-Java框架,QtJambi)编写Java应用程序。

For non-Cocoa/iPhone development, the ecosystem is naturally larger. Nokia has their own IDE for the Qt toolkit which can be used to write OS X (but not iPhone) apps. Eclipse can be used to write Java apps using any of the Java toolkits (including SWT and the Qt-Java framework, QtJambi).

对于纯Windows开发人员的熟悉程度,还有 Mono MonoDevelop 可以在OS X上运行,但我是不确定。

For pure Windows-developer familiarity, there's also Mono which runs on OS X. MonoDevelop may run on OS X, but I'm not sure.