Categories
General

Compile and Run an Application for a real device

After you subscribe and pay for the IPhone Developer Program, you will have access to the “Program Portal”. In this page you have a step by step guide for configure your XCode for device compilation.

Unfortunately Apple forgot some of the instructions, here are the missing steps:

  • Your “Bundle identifier” property in the Info.plist file must have the same base url that you specify in the App ID tabs in the “Program Portal”. For example if your App ID is CB7U3KHAPJ.com.your_company.* your “Bundle identifier” must be com.your_company.my_app.
  • For Ad-Hoc distribuition you must create and add an Entitlement file called dist.plist to your project. In that file you must disable the “get-task-allow” property. After you create file you need to add it to your build configuration. Go the Build Menu and in the Code Signing section add a new property called “Code Signing Entitlements” and use the value “dist.plist”.
  • Remember you need to create a Distribution Profile in the “Program Portal” and use it in XCode a Developer Profile is only for direct compilation for your test device

You can find more detailed info here .

Update: Apple finally updated their documentation with this information.

See you soon.

Categories
General

Getting Started

Welcome to iPhone Adventures, this goal of this blog is to share information about programming to the iPhone/ITouch using the official Apple SDK.

In order for you to program to the iPhone you need to do following:

– Register in the iPhone Developer Program

– Download the SDK, you will need a Mac with the Leopard OS to use it.

– Read the official documentation and check the samples. One good document to start is the iPhone OS Programming Guide. For the people new to Objective-C/Cocoa you may need to read some tutorials before you start to program for iPhone, Cocoa Dev Central has excelent tutorials. 

– Check the samples  provided by Apple.

– Create your first application and test it on the emulator.

– In order to test it on the device (hope you already bought one 🙂 ) and then register to the iPhone Developer Program. You will need to pay at least $99 USD and wait some days for Apple approval.

– After you application is tested on a device you can submit to the AppStore or distribute to your friend using Ad-Hoc distribution.

See you soon