<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iphone.mitchallen.com &#187; distribution</title>
	<atom:link href="http://mitchallen.com/iphone/archives/tag/distribution/feed" rel="self" type="application/rss+xml" />
	<link>http://mitchallen.com/iphone</link>
	<description>random notes on iPhone development</description>
	<lastBuildDate>Tue, 10 Aug 2010 20:36:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Getting Started with iPhone Development</title>
		<link>http://mitchallen.com/iphone/archives/5</link>
		<comments>http://mitchallen.com/iphone/archives/5#comments</comments>
		<pubDate>Thu, 04 Dec 2008 16:29:24 +0000</pubDate>
		<dc:creator>Mitch  Allen</dc:creator>
				<category><![CDATA[newbie]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://mitchallen.com/iphone/?p=5</guid>
		<description><![CDATA[Here are my notes on getting started with the iPhone SDK (Software Development Kit). I encountered a few issues which I will describe here. You Need a Mac To develop for the iPhone and iPod Touch you need a Mac running Leopard (10.5). Earlier versions of the Mac OS won&#8217;t do. Bundled with Leopard is [...]]]></description>
			<content:encoded><![CDATA[<p>Here are my notes on getting started with the iPhone SDK (Software Development Kit). I encountered a few issues which I will describe here.</p>
<p><strong>You Need a Mac</strong></p>
<p>To develop for the iPhone and iPod Touch you need a Mac running Leopard (10.5). Earlier versions of the Mac OS won&#8217;t do. Bundled with Leopard is a free IDE called <a href="http://developer.apple.com/tools/xcode/"><span style="color: #5588aa;">Xcode</span></a>. Once you have Xcode up and running, you need to go to <a href="http://developer.apple.com/iphone/"><span style="color: #5588aa;">http://developer.apple.com/iphone/</span></a>, create a login, and download the iPhone SDK on to your Mac.</p>
<p><strong>Objective-C</strong></p>
<p>Some of you may freak out at this point at the thought of learning another programming language. The de facto standard for programming for the iPhone is Objective-C. You can also do some coding in C++. But most everyone is working in Objective-C. The Apple site has tutorials on iPhone development and there are tutorials out there on Objective-C. So I&#8217;m not going to repeat that stuff here.</p>
<p><strong>Simulation is Free, Distribution is $99</strong></p>
<p>You can build your application on the Mac using Xcode and run it in an iPhone simulator for free. But if you actually want to try your code on your iPhone or iPod Touch, you are going to have to plunk down $99 and join the <strong>iPhone Developer Program</strong> (or more if you are part of a larger enterprise).</p>
<p>Once signed up you will find that when you login to <a href="http://developer.apple.com/iphone/"><span style="color: #5588aa;">http://developer.apple.com/iphone/</span></a> you have a new button that leads to the <strong>iPhone Developer Program Portal</strong>. This is where you go to manage certificates that you will need to develop for the device. The steps are laid out for the most part. So again I&#8217;m not going to repeat instructions that are available online. But I did run into a few issues that I will document here.</p>
<p><strong>Issue #1: Unable to locate a suitable developer disk image</strong></p>
<p>I own the latest iPod Touch that comes with 2.1.1 installed. When I tried to create my app in Xcode I got an error dialog that said <em>&#8220;Unable to locate a suitable developer disk image.&#8221;</em> I found a solution to my problem <a href="http://www.iphonedevsdk.com/forum/iphone-sdk-development/4216-unable-locate-suitable-developer-disk-image.html"><strong><span style="color: #5588aa;">here</span></strong></a>. To quote from the thread:</p>
<p>You will need to create the following symlink:<br />
&#8230;/iPhoneOS.platform/DeviceSupport/2.1.1/<br />
pointing at:<br />
&#8230;/iPhoneOS.platform/DeviceSupport/2.1/</p>
<p>To do that, open up a terminal window (command prompt) and enter the following:</p>
<p>cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport<br />
ln -s 2.1/ 2.1.1</p>
<p><strong>Issue #2: Signing Your Name</strong></p>
<p>Once you have access to the developer portal you will find instructions under the <strong>Provision / How To </strong>section that tell you to do this:</p>
<p><em>In the Project Info window select the ‘Build’ tab and enter “iPhone Developer: YourFirstName YourLastName” in the ‘Code Signing Identity’-&gt;’Any iPhone OS’ field setting. This is also the Common Name of your iPhone Development Certificate. (Note: Be sure to include the space between the ‘:’ and ‘YourFirstName’.)</em></p>
<p>So reading that, I entered &#8220;<em>iPhone Developer: <strong>Mitch</strong> Allen</em>&#8221; &#8211; it didn&#8217;t work. Why? Because when I signed up for the developer program I used my full name so it would match my credit card. What I needed to do was set this to &#8220;<em>iPhone Developer: <strong>Mitchell</strong> Allen</em>.&#8221;</p>
<p><strong>Issue #3: Error 0xE800003A</strong></p>
<p>When trying to load and run the application on the actual device you get this rather cryptic error: <em>&#8220;Your mobile device has encountered an unexpected error (0xE800003A) during the install phase.&#8221;</em></p>
<p>The closest thing I found to a solution was <a href="http://www.modmyi.com/forums/iphone-ipod-touch-sdk-development-discussion/351731-your-mobile-device-has-encountered-unexpected-error-0xe800003a-during-instal.html"><span style="color: #5588aa;">here</span></a>.</p>
<p>The instructions for creating certificates for your application tell you to create an identifier like this: <strong>com.<em>yourcompany</em>.<em>yourapp</em></strong>. I was experimenting by creating an app based on Conways Game of Life. So my identifier was &#8220;<strong>com.mitchallen.life2</strong>.&#8221; To make the dreaded error code go away I almost followed the instructions in the thread. What I did was edit the <strong>Bundle Identifier</strong> in <strong>info.plist</strong> to be:</p>
<p><strong>com.mitchallen.${PRODUCT_NAME:Identifier}</strong></p>
<p>I hope this helps!</p>
<p>You may also want to read this article: <a href="http://www.mikeash.com/?page=pyblog/the-iphone-development-story.html"><span style="color: #5588aa;">The iPhone Development Story</span></a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mitchallen.com/iphone/archives/5/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
