Search code examples
iphoneiosxcodexcode4

Xcode 3 and Xcode 4, what's the difference?


I want to start developing Games for apple iPhone and iPads but I have some related questions. I have mac running MAC OS X Leopard 10.5.5. So only supported version of Xcode for Leopard 10.5.5 is Xcode 3 so I want to know:

Is it ok to start to develop in Xcode 3? Will it work on all iPhones and iPad versions? Or should I have to buy new mac running Lion to install Xcode 4 and develop App on that?

What are the drawbacks of using Xcode 3?


Solution

  • Is it ok to start to develop in Xcode 3?

    It's ok, but in Xcode 3 you cannot take advantage of many of the new features in Xcode 4 like ARC and storyboards. Additionally, Xcode 3 does not support the latest version of Objective-C; it supports Objective-C 2.0, which lacks many new features being introduced with the release of iOS 6.

    Will it work on all iPhones and iPad versions?

    No. Using Xcode 3, you can only develop applications for older devices, I believe every iOS version below 4.0 (not sure).

    Or should I have to buy new mac running Lion to install Xcode 4 and develop App on that?

    I recommend that you buy a new mac running Lion to install Xcode 4 in order to stay up to date with the latest features of Objective-C and Xcode, so as not to be left behind when competing developers utilize the latest features of the phone to create a better all-around user experience.

    What are the drawbacks of using Xcode 3?

    • In Xcode 3, Xcode and Interface Builder are separate, as oppose to Xcode 4, where they are integrated.
    • Xcode 3 does not support storyboards which greatly eases the process of designing your interface.
    • Xcode 3 does not support ARC, which simplifies greatly memory management.
    • Xcode 4 has a new feature called the Assistant Editor which complements the file you're working on. For example, if you're - working on the header file for a class called "MyClass", the assistant editor will display the implementation file.
    • Xcode 4 has much better autocompletion than Xcode 3; it supports the new "Fix-It" feature which will not only point out errors in your code, but provide solutions to fix these errors.
    • Xcode 4 works with Git to provide powerful source control management.

    For more info on the differences between Xcode 3 and Xcode 4, see here: http://developer.apple.com/library/mac/#documentation/IDEs/Conceptual/Xcode4TransitionGuide/Introduction/Introduction.html

    Hope this helps!