入门 iPhone 开发问题
我的许多家人和朋友问我是否可以在 iPhone 或 iPod touch 上开发应用程序。我总是给出的答案是“当然,如果我能得到我需要的一切。”我和很多朋友讨论过这个问题,我们相信,如果我们能开发出便宜又有趣的游戏,让一百万人花一美元购买它们,并且每个月左右这样做,就能赚到不少钱。不足以退休,但足以让其值得。
所以我的问题相当模糊,为各种答案留下了很大的空间:
在 iPhone 上开发需要什么?
我的印象是您需要一台 Mac,并且需要 MacOS。您无法摆脱硬盘分区和安装 MacOS 的困扰吗?或者运行虚拟机并安装MacOS?我主要是一名 Windows 开发人员,拥有丰富的 Linux 经验。
为 iPhone 开发需要购买什么?我需要下载什么?你能说出几本书的名字吗?我应该从哪里开始?我鼓励你分享你的经历,你必须克服的障碍,你认为很难但最终变得容易的事情?
I have been asked by many of my family and friends if I could develop applications on the iPhone or iPod touch. The answer I always gave was "sure, if I could get everything I needed." I have discussed this with many friends and we believe that if we can crank out cheap-o fun games and get a million people to buy them for a buck, and do this every month or so, a good bit of money could be made. Not enough to retire, but enough to make it worth while.
So my question is quite vague and leaves a lot of room for a variety of answers:
What does it take to develop on the iPhone?
I was under the impression that you needed a Mac, and needed MacOS. You can't get away with partitioning your hard drive and installing MacOS? Or run a virtual machine and install MacOS? I am primarily a windows developer with a lot of linux experience.
What do I need to buy to develop for the iPhone? What do I need to download? Can you name a few books? Where should I begin? I encourage you to share your experiences, hurdles you had to overcome, things that you thought would be hard that ended up to be easy?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您需要的一切都可以在这里找到:http://developer.apple.com/iphone/
Everything you'll need can be found here: http://developer.apple.com/iphone/
实际上,您不需要MacOS 来开发应用程序。如果你想通过苹果应用商店出售它们,那么你需要一个 hackintosh/VM/朋友来进行最终的代码签名(在 OSX 中),并且你需要支付 99 美元(并且年满 18 岁,这样你就可以签署他们的应用程序)法律合同)成为 Apple Dev 计划的一部分。如果你打算走这条路,我建议你买一台 Mac。 (我在一台相当不错的 HP 笔记本电脑上运行 MacOS 有一段时间了,但最近买了一台 Macbook,发现这种体验更加愉快)。
但是,还有一条替代路线。
您可以使用开放工具链并交叉编译(甚至在 iPhone 上编译)您想要的任何应用程序,并通过 Cydia 或 RockYourPhone 商店销售它们。如果您打算制作不使用任何非 Apple 批准的 API 的游戏,那么通过这些替代商店进行销售不会为您带来同样广泛的受众。不过,您可以编写任何您想要的代码,并且不受限制地访问 iPhone(因为它已越狱),然后在这些商店中出售(他们可以在几个小时内将您的应用程序准备好出售)。很多人可能想知道越狱设备的应用程序的利润可能有多大,我很高兴地说它非常好。 (我制作了一个名为 Multifl0w 的应用程序,一个卡片式多任务处理界面)。
如果您想开始免费制作自己的应用程序,我在这里写了一篇简短的博客文章(适用于任何可以 SSH 的操作系统)(红色药丸):http://blog.aaronash.com/?p=15
否则,去苹果营地参加派对(蓝色药丸):http://developer.apple.com/iphone/
祝你好运!
You actually don't need MacOS to develop apps. If you want to sell them through the Apple App store then you'll need a hackintosh/VM/friend for the final code signing (in OSX), and you'll need to pay the $99 (and be 18 so you can sign their legal contract) to be a part of the Apple Dev program. If you're going to go this route I would recommend getting a mac. (I ran MacOS on a pretty good HP laptop for a while, but recently got a Macbook and find the experience much more enjoyable).
But, there is an alternate route.
You can use the Open Toolchain and cross-compile (or even compile on the iPhone) whatever Apps you want, and sell them through either the Cydia or RockYourPhone stores. If you intended on making games that won't use any non-Apple-approved APIs, selling through these alternate stores would not give you nearly as wide of an audience. However, you can write whatever code you want with unrestricted access to the iPhone (because it's jailbroken) and sell it on these stores (and they can have your app ready for sale within a few hours). A lot of people may be wondering how profitable an app for jailbroken devices could possibly be, and I'm happy to say that it's been pretty darn good. (I made an app called Multifl0w, a cards-style multitasking interface).
If you want to get started making your own apps for free, I wrote a quick blog post here (Works on any OS that can SSH) (red pill): http://blog.aaronash.com/?p=15
Otherwise, go party at the Apple camp (blue pill): http://developer.apple.com/iphone/
Good luck!
查看这篇优秀文章:
http://www.codeproject.com/ KB/mobile/wm_iphone_android_market.aspx#GettingStarted-iPhone
check out this excellent article:
http://www.codeproject.com/KB/mobile/wm_iphone_android_market.aspx#GettingStarted-iPhone
如果您可以让 Mac OS X 在某种 VM 中运行(注意:它需要是一个像基于 Intel 的 Mac 一样运行的 VM,而不是旧的 PowerPC),那么这足以让您开始使用 iPhone编程。您可以使用免费的开发者帐户从此处(iPhone 开发中心)获取 SDK。同一页面上有一个注册链接。
我相信你必须先付费才能成为注册开发人员,然后才能真正分发任何东西,但这只需要 99 美元,而且你可以等到东西运行起来。
就书籍和其他东西而言。那太浪费了。浏览斯坦福课程以及 Apple 提供的文档和示例你。这应该足以获得一个重要的开始。然后,只有当你看起来取得了足够的进步来保证它时,才需要为书籍和额外的东西付费。
因此,要回答您的问题,您需要拥有的唯一东西是 OS X 以及在 Intel Mac 或类似 OS X 的虚拟机上运行它的某种方式。其他一切你都可以免费获得。
If you can get the Mac OS X to run in some kind of VM (Note: it would need to be a VM that acted like an Intel based Mac, not the older PowerPC) then that would be enough for you to get started with iPhone programming. You could get the SDK from here (iPhone Dev Center) using a free developer account. There is a link on that same page to sign up for one.
I believe you would have to pay to become a registered developer before you could actually distribute anything but that's only $99 and you could wait until you've got something running.
As far as books and other stuff goes. That's a waste. Go through the Stanford course and the documentation and examples that Apple gives you. That should be enough to get a significant start. Then pay money for books and extras only if it seems like you're making enough progress to warrant it.
So, to answer your question, the only thing you need to have is OS X and some way to run it on an Intel Mac or a VM that will act like one. Everything else you could get for free.