iPhone Development Environment (from scratch)

后端 未结 5 1730
悲哀的现实
悲哀的现实 2020-12-12 17:29

I\'ve developed on Windows and .NET for my whole career so forgive my ignorance on this one.

What would be the steps to setup an iPhone development environment from

相关标签:
5条回答
  • 2020-12-12 17:54
    1. You have to have an Intel mac1 and an iPhone (or iPod Touch)
    2. You need to apply to the iPhone developer program to run your program on your iPhone. You just need to register on the site to download the SDK and run things in the simulator.
    3. Once accepted to the developer program or registered, download the iPhone SDK which includes XCode (the mac development environment). XCode comes on your OS install disks but it will be an old version and won't have the iPhone libraries.
    4. Learn objective C.
    5. Follow some iPhone specific tutorials or Stanford's online iPhone class.

    <sarcasm> Read more in this Guardian article about how you can quit your job and make $20k a day from your iPhone app </sarcasm>

    Footnotes: 1. Is it just the iPhone simulator that is restricted to Intel only Mac's?

    0 讨论(0)
  • 2020-12-12 17:55

    I've been playing around for the last couple of months, so from recent experience...

    You need a Mac, an iPhone or iPod touch, and an enrolment on Apple's development program.

    The Mac is going to cost - cheapest approach would be a Mac Mini - and has to be an Intel one if you're thinking of second hand. Ditto the iPhone or iPod touch are investment - and the device has to be tethered to the Mac and designated a development device so there may be some risk with using an iPhone with a subscription (I chickened and brought a touch for development)

    XCode - the development environment and the iPhone SDK are a free download. The documentation is excellent and there's lot of examples. Even the video tutorials are pretty good for a high level overview.

    I'm really starting to like Objective C. Having a substantial C background in the past, but never having really made it past basic journeyman with C++, its thin wrapper approach over C looks weird at first, but appreciation really grows with use. If you know C then it's little more than the usual 'pick up a new language/SDK' challenge. If you don't know C or at not comfortable with the use of pointers, memory allocation and so forth then it could be a substantial learning curve and overshadow any hardware investment.

    0 讨论(0)
  • 2020-12-12 17:58

    One thing people keep leaving out: If you buy a used Mac, make sure it's an Intel Mac, not PPC. The iPhone SDK doesn't officially run on PPC hardware.

    0 讨论(0)
  • 2020-12-12 18:03

    Just a sidenote regarding the "need a Mac" point. I've just bought one for unrelated development work and tried to fetch the iPhone SDK out of curiosity. No luck: all I've got is Tiger (OS X 10.4) on a PPC Mac while Apple says I need 10.5.5 on Intel for the version currently dowloadable.

    0 讨论(0)
  • 2020-12-12 18:05

    What michaelpryor said, plus get a good book. I found it impossible to approach iphone programming without one. The one I used was from the Pragmatic Programmers.

    By the way, if you want to cut costs, a mac mini or entry level macbook is fine for development. Get it with the minimum amount of memory and upgrade it to at least 2G memory yourself, as this is significantly cheaper than apple memory prices. With either one you should be able to reuse your existing screen, keyboard, mouse, usb disks, etc.

    If you're going the mac mini route, you may want to hold off until the new models are in store, as rumours are they are going to announce a significant upgrade this week.

    Oh and you don't need to download XCode, it comes on the install disks. Just download the SDK.

    Last but not least, it may be stating the obvious, but you need an iphone device to test on. You can use the simulator in the SDK, but you still need to try it on a device. You can also use 'ad hoc distribution' to have friends with devices try your app out.

    Good luck.

    0 讨论(0)
提交回复
热议问题