Tuesday, November 11, 2008

Touchscreen iPod Development

Last night I finally hunkered down and begin trying to get a test program ("MoveMe") onto my iPod Touch using the iPhone SDK. What a painful activity.

When I first hooked my iPod up to my Mac, XCode complained about being "unable to locate a suitable developer disk image." A very helpful message, of course, forcing me to Google for an answer, which I finally found in this forum: http://www.iphonedevsdk.com/forum/iphone-sdk-development/4216-unable-locate-suitable-developer-disk-image.html.

All I did was this from Terminal:
cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport
ln -s 2.1/ 2.1.1
and it worked. I could connect to my iPod without the error.

I'm still not sure of the consequences. The frusting part was that some of the suggestions were to "Restore" your iPod, which I've never done before. Posters made it sound innocuous, but pressing the "Restore" button in iTunes pops a message saying it will erase everything to factory default. I wasn't sure I was in the mood to have to hassle with that if something went terribly wrong.

The second problem I ran into was that I was unable to compile the test code I pulled from Apple's website for the "MoveMe" app. I kept getting a "CodeSign error: no provisioning profiles found for code signing identity 'iPhone Developer'" error. A little more clear, but a Google search revealed nothing. Even reading all of Apple's security documentation was of little help (this: http://developer.apple.com/iphone/gettingstarted/docs/signingcodeforiphonedev.action, this: http://developer.apple.com/documentation/Security/Conceptual/Security_Overview/Introduction/chapter_1_section_1.html, and this: http://developer.apple.com/documentation/Security/Conceptual/CodeSigningGuide/Introduction/chapter_1_section_1.html).

I created my own personal certificate, but to no avail. The best I could glean at this point is that I have to fully sign up with the Apple Developer Program for $99 bucks, so I could prove who I was. I get that for an application that is intended to be sold via the AppStore, but what about us developers who just want to play around and get a feel for things? Seems like a burn to us. I may eventually want to sell a product, but I would like to learn a little more about what I'm getting into.

That said, maybe I just haven't read enough of the massive amount of documentation or viewed the multitude of videos on Apple's site.

I finally got the application working on the Simulator. Maybe my experience with Visual Studio and NetBeans has colored my view a little too much, but the XCode doesn't seem as intuitive to use as the other two IDE's I'm familiar with. I used XCode many, many years ago (just learing how to write a Cocoa app) and it seemed better then. Maybe it's just my hazy memory though. Most likely I'll change my tune was I get more familiar with the application.

Next up, I try to get an account with the Developer Program.

No comments: