My First iPhone App

As I mentioned earlier, I followed along Evan Doll's 6 minute demo of the slider and the controller object. Naturally I wanted to deploy this useless app to my iPhone so I could show it to all my geek friends at bar. (While the gorgeous models looked over our shoulders waiting to get our phone numbers) When I bumped into a new error. "CodeSign error: a valid provisioning profile is required for product type 'Application' in SDK 'Device - iPhone OS 2.2.1" -Thus begins my next learning adventure. I quickly learned that you may not deploy an app to your iPhone without first registering with the Apple's iPhone Developers community. This cost $100.00 and is really quite reasonable. I am not against any of that. But that would mean I would have to wait to be accepted and then go through the whole provisioning process etc. By then the models would have moved on to the next bar and my friends and I would be out of luck. I wanted it now! So I did a little digging around and it turns out that entire provisioning cert process is handled by 2 files. a) /Developer/Platforms/iPhoneOS.platform/Info.plist b) info.plist in your app folder.

A little more blog surfing and I came across a blog that appeared to have figured it all out. That blog was on http://sanchit-tricks.blogspot.com/ which appears to have stolen the hard work of Vinod Ponmanadiyil who in my opinion deserved the bulk of the credit. Following Vinod's instructions and downloading the amazingly useful apps he recommends, I was able to install my killer slider app on my own iphone without a provisioning profile.

Also: if you are looking for some good xCode or Objective-C Videos at a really good price ($5.00) - Check out Mike Clark (I took my Ruby on Rails Class from Mike Clark and Dave Thomas) at pragmatic.tv

I am attending Stanford University ...sort of

Actually, I am really excited to tell you about Stanford University's New iphone / Objective-C Class. CS193P is being recorded and made freely available on iTunes U. More information can be found at: itunes.stanford.edu they are also exposing the class/instructors website. CS193P I am totally new to iphone development and objective-C. I am comfortable with OO Designs and I have varied experience with other C based languages. But if you have enough drive and the patients to explore these concepts, then you should consider following along with the class even without meeting these prerequisites. This is class is taught by Evan Doll, he is an engineer at Apple and graduated at Stanford in 2003. The class is also taught by Alan Cannistaro, also an Apple Engineer. I downloaded the class a couple of days ago, and the first 5 minutes of the video had bad encoding, I recently downloaded it again, and that has since been repaired. I am not sure if it was just a bad download, or if there was a server side repair made. Evan does an excellent job explaining the underlying structures of the iphone development platforms and at the end of the lesson he gives a 6 minute demo of a simple app that demonstrate how outlets are used without the need for sub classing. I wasn't sure if I was supposed to reproduce the demo, but being the curious sort, I decided to give it a try. This was my first exposure to Xcode, so it was an excellent starting point for me. I followed along, stopping the video at each step. It is also worth taking a little time to click around the Xcode IDE, Evan adjusted the view in the Library Panel to "view icons" where as mine defaulted to "view icons and descriptions", So at first glance I didn't think I was in the right window. (At first I was watching the class on my iphone, but when it came time to copy some code. The screen was too small to read the text.) During my first attempt I made a mistake that I couldn't figure out how to repair. So I downloaded his finished code example from the class site. Being a total newbe, I tried to run Evan's downloaded code and I got an error: [There is no SDK with specified name or path 'Unknown Path']. After some blog surfing, I discovered how to fix this.: In Xcode: Click on Project > Edit Project Settings > Base SDK for All Configurations: there you can select a device or a simulator. I selected Simulator - iPhone OS 2.2.1 and everything worked fine after that. I later went back reproduced the demo without error. On to the next lesson!

I hacked my iphone this weekend

I had been hesitant to hack my iphone because I am learning objective-C and how to build iPhone apps and I wanted to leave my iphone with a virgin ipsw (firmware). I figured that if I had any problems while building apps, I could use the apple forums to find a solution. But when I learned that I could use my iphone as a 3G modem for my laptop computer, I decided to take the plunge. I used quickpwn to unlock the phone. This was really the best site I could find on the subject. http://www.iphonehacks.com/jailbreak_iphone/. It is very important to back up everything. I forgot to back up my photos, and lost all due to a mistake that I made. (more to come tomorrow morning...)

BlogCFC was created by Raymond Camden. This blog is running version 5.9.2.002. Contact Blog Owner