简体   繁体   English

你需要Xcode来编写iPhone应用程序吗?

[英]Do you need Xcode to program iPhone apps?

I'm interested in making apps for the iphone. 我有兴趣为iPhone制作应用程序。 I was wondering if it were possible to make apps, WITHOUT Xcode. 我想知道是否有可能制作应用程序,没有Xcode。 the only reason is because I'm dirt poor, and can't afford an Apple. 唯一的原因是因为我的土都很穷,而且买不起苹果。

If it's games you're interested in developing, then another option might be to take a look at Unity ( http://unity3d.com/ ). 如果你有兴趣开发游戏,那么另一种选择可能是看看Unity( http://unity3d.com/ )。 This would let you develop on the PC for free in a friendly environment for a beginner. 这将让您在适合初学者的友好环境中免费在PC上进行开发。 If you then develop something that you decide you want to publish on iPhone, then at that point you could invest in a Mac and just rebuild the Unity app for iPhone on that. 如果您随后开发了一些您决定要在iPhone上发布的内容,那么此时您可以投资购买Mac并在其上重建适用于iPhone的Unity应用程序。

Also, Unity lets you write scripts in both C# and Java so you wouldn't have to learn Obj-C. 此外,Unity允许您使用C#和Java编写脚本,因此您不必学习Obj-C。

The short answer is no. 最简洁的答案是不。 The long answer is "not exactly," but you can get started in some ways while you're working on getting access to a Mac you can do the work you'd like to do on. 很长的答案是“不完全”,但是当你正在努力访问Mac时,你可以通过某些方式开始,你可以做你想做的工作。

"XCode" is more or less really two things: “XCode”或多或少是两件事:

(1) an IDE (1)IDE

(2) a toolchain with a C/ObjC/C++ compiler (really a version of gcc) and a big library of apps (2)带有C / ObjC / C ++编译器的工具链(实际上是gcc的一个版本)和一个大的应用程序库

You don't have to use #1 in order to build iPhone Apps, though it's genuinely helpful. 您不必使用#1来构建iPhone应用程序,尽管它真的很有帮助。 You can get by with #2. 你可以用#2来完成。

But without #2, you're going to have a hard time building an App you can sell in the App store. 但如果没有#2,您将很难构建可以在App Store中销售的应用程序。

So, it depends on what your goal is. 所以,这取决于你的目标是什么。

If it really is to build an app and get it out there, the easiest path is probably going to be to find some way to get access to a machine running OS (probably 10.5 and up) you can do development on. 如果它真的要构建一个应用程序并将其发布到那里,最简单的方法可能是找到一些方法来访问运行OS的机器(可能是10.5及以上),你可以进行开发。 That might be talking a friend who has one into letting you spend some scheduled time on it, or it might be working and saving up for a used intel-based Mac mini (probably something you could get for $300), or it might be turning a PC you've got into a Hackintosh (or maybe setting up a Hackintosh VM on the PC if you're sharing it with others who might not want it transformed thusly :). 这可能是在谈论一个让你花费一些预定时间在其上的朋友,或者它可能正在工作并节省使用的基于英特尔的Mac mini(可能是你可以得到的300美元),或者它可能正在转向你已经进入Hackintosh的PC(或者如果你与其他可能不希望它改变的人分享它,可能会在PC上设置一个Hackintosh VM :)。

If your goal is to start learning how to do things while you work out how you're going to do the above, though, the good news is that it's not hard to get a hold of tools that will help you learn the technologies/languages involved in iPhone apps. 如果你的目标是在你弄清楚如何做到这一点的同时开始学习如何做事,那么好消息是,掌握一些能够帮助你学习技术/语言的工具并不难参与iPhone应用程序。 Like I said earlier, Apple's compiler is really just a version of gcc. 就像我之前说的那样,Apple的编译器实际上只是gcc的一个版本。 You can probably install gcc on your machine and write objective C programs with it. 您可以在您的机器上安装gcc并使用它编写目标C程序。 You could also look into GNUStep which could help you get familiar with a lot of the concepts and practices underlying how the Cocoa libraries work for the iPhone and OS X. And you could learn OpenGL ES, which would be great help if you ever end up working on an iPhone game. 您还可以查看GNUStep ,它可以帮助您熟悉Cocoa库如何为iPhone和OS X工作的许多概念和实践。您可以学习OpenGL ES,如果你最终得到它将会很有帮助在iPhone游戏上工作。

Actually You can develop apps without a Mac. 实际上你可以在没有Mac的情况下开发应用程序 You can use a number of languages and tools that enable writing apps for iOS like: 您可以使用多种语言和工具来支持iOS编写应用程序:

- Python
- PhoneGap
- Appcelerator
- Mono
- Unity3D
- Unreal Engine

These all can export to iOS. 这些都可以导出到iOS。

The only step that requires a Mac is publishing to the app store. 需要Mac的唯一步骤是发布到应用商店。 But You can use any Mac for that, so You can publish from a friend's/neighbour's or actually anyone's Mac. 但你可以使用任何Mac,所以你可以从朋友/邻居或实际上任何人的Mac发布。 That is the last step when You're sure everything is running perfectly. 这是你确定一切运行完美的最后一步。 Perhaps Your application will earn You Your own Mac. 也许您的应用程序将为您赢得自己的Mac。

Also there are a number of publishing service providers in the internet (which don't cost nearly as much as a Mac). 互联网上也有许多出版服务提供商(其成本几乎与Mac不同)。 I don't remember any particular one at the moment, but I'm sure if You search You will find many. 我现在不记得任何一个特别的人了,但我确定如果你搜索你会找到很多。 Good luck! 祝好运!

Yes it's possible to develop applications for the mac/ipad/iphone without Xcode and without a mac/ipad/iphone.I own a imac,an ipad,and and a mac book pro.I tried to develop in xcode. 是的,可以在没有Xcode和没有mac / ipad / iphone的情况下为mac / ipad / iphone开发应用程序。我拥有一个imac,一个ipad和一个mac book pro.I试图在xcode中开发。

After some quick search on the internet I found this http://www.gnustep.org/ . 在互联网上快速搜索后,我发现了这个http://www.gnustep.org/ This is a framework you can use to develop in the objective C language,using GCC (the GNU compiler).There are other tools you can use,like GNU STEP Application project:this seems to be a sort of IDE (I didn't test it yet). 这是一个框架,你可以用目标C语言开发,使用GCC(GNU编译器)。你可以使用其他工具,比如GNU STEP Application项目:这似乎是一种IDE(我没有测试它)。

Yes and no. 是的,不是。 You can use alternative SDK's but they can be a pain to use and don't offer the publish/signing capabilities that Xcode does. 您可以使用替代SDK,但它们可能很难使用,并且不提供Xcode所做的发布/签名功能。

Unfortunately, although there are 'alternatives' (phonegap, mono touch, etc.) I believe you ultimately need Xcode and its tools to package/sign/publish your applications. 不幸的是,尽管存在“替代品”(手机带,单声道触摸等),但我相信您最终需要Xcode及其工具来打包/签署/发布您的应用程序。

If you are really motivated though, you can look about ways of installing Mac OS X on a PC, though that is beyond the scope of this website. 如果您真的很有动力,可以在PC上查看安装Mac OS X的方法,但这超出了本网站的范围。

Though Xcode itself is free it does require an Intel based Mac running Snow Leopard. 虽然Xcode本身是免费的,但它需要运行Snow Leopard的基于Intel的Mac。 You have 2 options: 你有2个选择:

  • Buy a refurbished Mac Pro or Mac mini from Apple website. 从Apple网站购买翻新的Mac Pro或Mac mini They are not that expensive. 它们并不贵。 You can use non-Apple peripherals with them to bring down the cost. 您可以使用非Apple外围设备来降低成本。 And you will not be disappointed with quality. 而且你不会对质量感到失望。
  • Use Hackintosh to run the OS X on other Intel platform. 使用Hackintosh在其他Intel平台上运行OS X. Its hacky, difficult (carshes) and illegal. 它的hacky,困难(carhes)和非法。

Update: 更新:

For Objective C you can refer a pretty good documentation of Objective C language at iPhone developer portal . 对于Objective C,您可以在iPhone开发人员门户网站上引用一个非常好的Objective C语言文档。 There are many other documents like memory management and human interface guidelines which should help you get started. 还有许多其他文档,如内存管理人机界面指南 ,可以帮助您入门。

Once you have developed the familiarity with Objective C, you can then browse through various programming guides on iPhone development centre. 熟悉Objective C后,您可以浏览iPhone开发中心的各种编程指南。 If you want to follow a systematic approach, you may refer to "Beginning iPhone Development" book which I found pretty good. 如果你想采用一种系统的方法,你可以参考我发现非常好的“开始iPhone开发”一书。

In short, you need a mac. 简而言之,你需要一个mac。 There a number of screwed up ways to do this without a mac, but for all intents and purposes you need a mac. 有许多搞砸的方法可以在没有mac的情况下做到这一点,但是对于所有意图和目的,你需要一个mac。 A mac mini you can buy used for $300 on ebay will do the trick. 你可以在ebay上以300美元的价格购买的mac mini可以解决这个问题。 You don't need a powerful machine. 您不需要功能强大的机器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM