Developing on iPhone (2): preparing the environment
Author: jack // Category: IPhone Application Development
First, I want to warn that the iPhone SDK distributed by Apple is only available to users with Mac OS X v10.5.4. That is, if you do not have a Mac with Leopard, and want to be a professional developer iPhone, you know what you get. The designs of Steve inexcrutables are ...
If you meet this prerequisite, he plays downloaded the SDK, namely the development environment. It consists of several programs that they could highlight XCode, the IDE to develop it, Interface Builder, to generate the user interface of our applications, Instruments, in order to assess performance characteristics and behavior of the devices (for example, draw graphic accelerometer) or the iPhone Simulator. The latter will serve to test our code in an iPhone emulation. Then we'll talk about what we do to prove to our own iPhone.
The SDK is a free download on Apple's developer zone (in English, works better in Safari). To be able to access it must registered as developers, and proceed to download the development kit. It weighs a lot (about 1.3 GB), and go for the version 3.1.1. For each new release of the iPhone firmware is issued a new version of the SDK.
Once downloaded is installed by clicking on the link "iPhone SDK":

And begins a classic setup wizard:

In principle we can choose what selected by default and wait a few good minutes that everything is installed. The closures will ask you to iTunes, by the way.

Once installed there, as we said, the SDK on your machine. That is, Xcode, iPhone Simulator and other utilities. Now what? Now we can start scheduling. First of all I leave with you a couple of very majas's URL:
[1] page of sample code from Apple (requires registration): https:/developer.apple.com/iphone/library/navigation/SampleCode.html
[2] 31 days, 31 applications: appsamuck
These are pages where you can download sample code, which in our view is without doubt the best choice ... And as a sign of a button, we will download a sample project simple. Sure, the 'Hello World' code example of Apple (see the above link [1]). The application simply makes writing a text, and presents it on screen. The project itself consists of a ZIP decompressed at the location you want. Once we open the downloaded file HelloWorld.xcodeproj:
[1] page of sample code from Apple (requires registration): https:/developer.apple.com/iphone/library/navigation/SampleCode.html
[2] 31 days, 31 applications: appsamuck
These are pages where you can download sample code, which in our view is without doubt the best choice ... And as a sign of a button, we will download a sample project simple. Sure, the 'Hello World' code example of Apple (see the above link [1]). The application simply makes writing a text, and presents it on screen. The project itself consists of a ZIP decompressed at the location you want. Once we open the downloaded file HelloWorld.xcodeproj:

And this file is opened by our favorite IDE, XCode:

The next article will describe what each file represents, and where "is programmed". In this post let's just assume that we have been able to schedule this example from scratch (not needed in the future), and let's see the result on the iPhone simulator. To do this, simply click on the button 'Build-and-go', the IDE will compile the sources, will open the iPhone Simulator and see "our" application running:

Users pay more attention may ask: what if I want to try on my own iPhone? This has obvious advantages, as you make sure that the application really works, and you can see a real speed network connecting to a 3G or Wifi ... besides having a very interesting applications such as XCode Graphical Debugger or technical support.
Well, at least you have three options:
Due to Apple Yes, yes, you can believe, to test your application on your iPhone you have to pay, by registering at the iPhone Developer Program (http://developer.apple.com/iphone/program/). There are two modes: Standard, a 99 €, and Enterprise to 299 €. You can anticipate that in 99.99% of the cases you'll need the cheap version, Standard. The Enterprise is intended for large corporations (more than 500 employees) who want to create proprietary applications in intranet environments. The Standard is enough to be able to upload applications to the AppStore (if approved, of course), distribute your application AppStore without going through the (by URL or email) up to 100 iPhones, and so on.
Jailbreak your iPhone to do, but we all know that ultimately this is an option for experienced users ... On the Internet there are several references to how to fix this, for example this or this one.
Get a partner that is already registered in the program and test on yours ... the truth is that there is no greater problem in paying a license among several. The only issue is that the certificate to sign the code is nominal, and you must have good confidence for items that do not occur as happened to the founders of Facebook
So there we left off. Until the next class, if you know this by little, you can try to download more of such projects and go echándole an eye to the code. Until the next article!
Due to Apple Yes, yes, you can believe, to test your application on your iPhone you have to pay, by registering at the iPhone Developer Program (http://developer.apple.com/iphone/program/). There are two modes: Standard, a 99 €, and Enterprise to 299 €. You can anticipate that in 99.99% of the cases you'll need the cheap version, Standard. The Enterprise is intended for large corporations (more than 500 employees) who want to create proprietary applications in intranet environments. The Standard is enough to be able to upload applications to the AppStore (if approved, of course), distribute your application AppStore without going through the (by URL or email) up to 100 iPhones, and so on.
Jailbreak your iPhone to do, but we all know that ultimately this is an option for experienced users ... On the Internet there are several references to how to fix this, for example this or this one.
Get a partner that is already registered in the program and test on yours ... the truth is that there is no greater problem in paying a license among several. The only issue is that the certificate to sign the code is nominal, and you must have good confidence for items that do not occur as happened to the founders of Facebook
So there we left off. Until the next class, if you know this by little, you can try to download more of such projects and go echándole an eye to the code. Until the next article!
0 Responses to "Developing on iPhone (2): preparing the environment"
Post a Comment