Stacy’s going all local + seasonal these days. This affects me in myriad ways, one of which is Oh damn I’ve been eating well. c.f. potato and celery root chowder with wild rice, and cabbage and blue potato gratin.
Also, it’s snowing again…
Note to myself on going from the simulator to getting an application running on my iPhone:
Select “Get Info” for the target (not the project) and go to the Build tab. Change the Code Signing Identity for Any iPhone OS Device to the provisioning profile you downloaded and installed from the Apple iPhone Developer Portal.
Edit the Info.plist for your project. Change the Bundle Identifier to the App Identifier you registered with the Portal, minus the prefix. For example, my App Identifier is 123456789A.net.jakesprouse.*; I changed the Bundle Identifier to net.jakesprouse.${PRODUCT_NAME:identifier}.
Under the Project menu, set the active SDK to the Device entry with the desired OS.
Build and Go.
Dear Lazyweb,
I finally got registered for the iPhone app developer program. I created a certificate for “iPhone Developer: Jake Sprouse”, uploaded it to Apple, approved it, and downloaded it into my Keychain. I registered the Device ID of my iPhone on the Apple website. I created an App ID for all jakesprouse.net applications (it’s of the form NNNNNNNNNN.net.jakesprouse.*). And I created a provisioning profile with the certificate, Device ID, and App ID.
In my XCode project, I changed the “Code Signing Identity” field to “iPhone Developer: Jake Sprouse” under my provisioning profile in the drop-down. And I changed the “Bundle identifier” field of my Info.plist to NNNNNNNNNN.net.jakesprouse.${PRODUCT_NAME:identifier}.
Now, when I build it, I get the error message: /Users/jakes/src/MyApp/build/Debug-iphoneos/MyApp.app: object file format invalid or unsuitable.
If I build a second time, it works, but when it goes to install the app, the Organizer window tells me “The Info.plist for application at /Users/jakes/src/Sac4iPhone/build/Debug-iphoneos/Sac4iPhone.app specifies a CFBundleExecutable of (null), which does not exist“.
If I build a third time, I get the object file format error again (and so on…).
Searching Google on codesign + “object file format” is not being very helpful. Anyone out there have any ideas?
In case anyone’s wondering, it’s still snowing in Seattle. The forecasters called for three to five inches, and we just went outside and threw snowballs at Beans in about a foot. We’re about to make breakfast for dinner and watch “It’s a Wonderful Life.” Poor me, I’m wondering if I’m going to be able to make it to work in the morning…
Yesterday, every local weather forecaster predicted six inches of snow starting at noon. Schools were shut down, busses were chained up, state employees stayed home. Of course, the day came and went without a single snowflake sighting. Twitter was a little pissed.
In the evening, authoritative-sounding reports came out with the news that the Olympic mountains had blocked the storm, sending it south to Olympia (mom got the prescribed six inches) and north to Bellingham. Apparently, the existence of the Olympic mountain range was a bit of a surprise.
Anyway, we woke up this morning to the real deal. Now, I understand that many of my friends in Colorado or parts east will scoff at Seattle’s six inches, but keep in mind that this city has a renowned talent for completely freaking out when it snows. Which, of course, is great fun to watch, especially if you don’t have to drive anywhere today.