Since we are new to MAC, We have had a very tough time to setup the iphone SDK on our Intel based MAC machine. It is always a best practice to share what you have learnt. Hence this article has born.
The Fourth beta version of the iPhone SDK includes Xcode IDE, iPhone simulator with Open GL ES support, Interface Builder, Instruments, frameworks and samples. The file size of the SDK around 1.37 GB. iPhone SDK will run on Intel-based Macs running Mac OS X v10.5.2 and later. We have given the step by step installation for the newbies.
Make Sure that you have installed the iTunes 7.6.1 before installing the iPhone SDK,if fails the Xcode IDE (used to developing the application for iPhone or iPod) will crash.
1. Download the iPhone SDK from the following URL : http://developer.apple.com/iphone/sdk1
Before download the file,it will ask your own Apple ID. If you don't have the Apple ID,just click the “Create Apple ID” button and fill your details in the form.
Apple will send an email to your ID which is given by you during the registration. They send a confirmation mail and also give the link for downloading the SDK.
2. After downloading the SDK (.dmg extension), double click on the file and it will shown the window like this
select iPhone SDK icon and double click on it.
In iPhone SDK Bundle, you can select required tools using “Custom Install” as shown in below figure.
To change the installation location for installing the SDK or install in the default location. The default installation location is /Developer.
During the installation, it will require the Mac user name and password,
After validating the user name and password, the installation will start and the installation window looks like this
Once you have proceed the SDK setup without any interrupts, the SDK installation will succeed.
- The Simulator is known to fail when run by a user other than the user account under which the iPhone SDK was installed
- Resetting the Simulator using the on-device Settings app by clicking
- Settings > General > Reset will leave the Simulator "stuck"
- The version of the Foundation framework included in the Simulator includes functionality not found on the iPhone or iPod touch.
Xcode IDE, a graphical workbench that tightly integrates a professional text editor, a robust build system, a debugger, and the powerful GCC compiler capable of targeting Intel and PowerPC regardless of host platform. Xcode is both easy to use, and yet powerful enough to build the largest Mac OS X applications. The complete Mac OS X developer tools chain is distributed as part of Xcode; these tools include Interface Builder, Instruments, Dashcode, and the WebObjects framework.
Interface Builder is an application for designing and testing user interfaces. Developers can use Interface Builder to create user interfaces that follow the Mac OS X human-interface guidelines by dragging user-interface elements from a palette of predefined controls and dropping them into the window or view they are configuring. Interface Builder works closely with Xcode to provide a development experience that facilitates the concurrent but specialized development of an application's user interface and business logic.
Interface Builder is Apple's graphical editor for designing user interface components for both Carbon and Cocoa applications. Interface Builder makes creating an application's user interface easier by allowing developers to use its graphical editing environment to manage virtually every aspect of creating a well designed user interface that adheres to the Aqua user interface guidelines.
Code signing is enforced on the device starting with beta 4 of the iPhone SDK and iPhone OS. This means that your project will need to contain a valid certificate signing identity that resolves to a valid certificate in your keychain. If there is no valid identity in the project, the code will continue to function on the Simulator, but will fail to execute on any device.
Xcode and developer tools
The iPhone SDK is designed for Intel-based Macs in 32-bit mode; many features will not work on PPC-based Macs or in Intel 64-bit mode
Not all Cocoa Touch views and controls are supported yet