您如何设置 Eclipse 以进行 iPhone 开发(而不是 Xcode)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/207785/
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
How do you setup Eclipse to work on iPhone development (instead of Xcode)?
提问by Robert Gould
Although I've been getting more and more familiar with Xcode while developing for the iPhone, there are times I just wished I had a better IDE, something like Eclipse.
虽然我在为 iPhone 开发时越来越熟悉 Xcode,但有时我只是希望我有一个更好的 IDE,比如 Eclipse。
So I was wondering does anyone know how to migrate iPhone projects to Eclipse, and if it's worth it?
所以我想知道有没有人知道如何将 iPhone 项目迁移到 Eclipse,是否值得?
采纳答案by Rob Drimmie
XCode largely uses standard Unix tools for a lot of its work. iPhone applications are compiled using GCC 4.0, it uses gdb for debugging, so it should be possible to set up Eclipse to at least compile applications.
XCode 在很多工作中主要使用标准的 Unix 工具。iPhone 应用程序是使用 GCC 4.0 编译的,它使用 gdb 进行调试,因此应该可以设置 Eclipse 以至少编译应用程序。
If you look in the Build section of the Project Info pane (select the project, hit the Info button in XCode, choose the Build tab from the top) you can see many of the options.
如果您查看“项目信息”窗格的“构建”部分(选择项目,点击 XCode 中的“信息”按钮,从顶部选择“构建”选项卡),您可以看到许多选项。
I'm not sure what is required to copy a file to the simulator and attach a debugger to do a test run, it might not be worthwhile to jump through all the hoops and Apple may require an XCode generated build to accept an app into the App Store.
我不确定将文件复制到模拟器并附加调试器以进行测试运行需要什么,跳过所有这些可能不值得,Apple 可能需要 XCode 生成的构建来接受应用程序应用商店。
It may be the case that for regular code editing you can work reasonably well in Eclipse, then switch to XCode for interactive debugging.
可能的情况是,对于常规代码编辑,您可以在 Eclipse 中正常工作,然后切换到 XCode 进行交互式调试。
Most of the existing Eclipse plugins seem to be oriented towards developer iPhone-aware web applications, so I'm not sure if you'll get any help there.
大多数现有的 Eclipse 插件似乎都是面向开发人员的 iPhone 感知 Web 应用程序,所以我不确定您是否会在那里得到任何帮助。
回答by user28515
As far as I know you cant use Eclipse or any other IDE to develop for iPhone. Apple only supports XCode and this wont change in the future. So I think you have to get used to XCode.
据我所知,您不能使用 Eclipse 或任何其他 IDE 为 iPhone 进行开发。Apple 仅支持 XCode,这在未来不会改变。所以我认为你必须习惯 XCode。
回答by YvesLeBorg
Late in the game, but you might want to kick the tires with JetBrains's AppCode, eventually a full feature drop-in replacement for xCode ... and very similar to IntelliJ (GUI, work flows, etc...). Still Early Adopter as of now, it performs some tasks rather well. I still use xCode for configuring the build options and targeting the device, but that will eventually be taken care of.
在游戏后期,但您可能想要使用 JetBrains 的 AppCode 来解决问题,最终是 xCode 的全功能替代品……与 IntelliJ 非常相似(GUI、工作流程等……)。到目前为止,它仍然是早期采用者,它可以很好地执行一些任务。我仍然使用 xCode 来配置构建选项和定位设备,但这最终会得到处理。
regards
问候
回答by MadyZaid
There's cross compiling that give you ability to develop IPhone apps on eclipse http://www.youtube.com/watch?v=TG-NIt2O5J8
交叉编译使您能够在 eclipse http://www.youtube.com/watch?v=TG-NIt2O5J8上开发 iPhone 应用程序
回答by Dayakar
There are no plugins that support Apple IOS application development in Eclipse but on windows, you can develop using Adobe CS5. This is one of the powerful tool from Adobe in which you can develop .ipa applications on windows but you need some stuff to be ready before you start developing IOS applications using Adobe CS5
Eclipse 中没有支持 Apple IOS 应用程序开发的插件,但在 Windows 上,您可以使用 Adobe CS5 进行开发。这是 Adobe 的强大工具之一,您可以在其中开发 Windows 上的 .ipa 应用程序,但在开始使用 Adobe CS5 开发 IOS 应用程序之前,您需要准备一些东西