03/09/2010

No Repository Type Git in Xcode 4 Developer Preview? Here is the solution!

Besides all the iOS 4.0 hype and the fantastic new iPhone, what really made my day is the forthcoming new version of Apple’s IDE: Xcode 4.

After all, WWDC is a Developer Conference. Innovating the essentials tools we all work with daily, is as big a part of what we should have come to expect, as new SDKs and updated operating systems. Unfortunately, I cannot post any details about Xcode 4, nor any screenshots, as the current preview is still under NDA.

A key feature, that has been leaked elsewhere, is Git (and GitHub) support. I heavily use Git as a Source Code Management solution, both in my company and for my private projects.

I was literally blown away by the level of support for Git, that Apple demoed during WWDC.

No wonder, that huge disappointment hit me, when I tried to clone my first Git repo with the Xcode 4 Developer Preview and did not find the “Git” repository type in the UI. The only type offered was Subversion.

Turns out, there’s a simple solution: Xcode 4 expects the git command line tool to be available in /usr/bin. A quick which git on my console revealed, that my git binary instead resided in /usr/local/git/bin/git.

After creating a symlink in /usr/bin pointing to /usr/local/git/bin/git and restarting Xcode 4, everythink worked perfect!

The full command: sudo ln -s /usr/local/git/bin/git /usr/bin/git

A couple of observations: Connecting to GitHub did not work via the native git protocol, so I had to paste in the https URI to the repo. Same with ssh key based authentication, which did not work. I had to use my GitHub registered email address (username did not work) and password.

Besides this, working with a GitHub hosted git repository from within Xcode 4 just got really fantastic!

Ihren XING-Kontakten zeigen

www.chatroulette.pro: Visit our Chatroulette Script Labs!

A quick one: We are pretty happy that as the providers of the original, first and genuine Chatroulette Script/Chatroulette Clone in the market, we got the official chatroulette.pro domain.

With our store available at www.chatroulette-clone.net, we’ve decided to put our labs to chatroulette.pro. Starting today, the pro site will always showcase the latest development version, even if it’s in early alpha.

We hope you enjoy it!

Ihren XING-Kontakten zeigen

That’s why I love developing stuff for the iPhone! Augmented reality APIs are coming.

A few years ago you would have seen stuff like this in Hollywood movies only. Well, it’ll be available soon. iPhone OS 3.1 is expected to be released in September.

I’m really excited by the new opportunities this opens up for the iPhone developer community and playing with these 3.1 Beta 2 APIs is just so addictive!

Ihren XING-Kontakten zeigen

JSON Framework 2.2 for iPhone (and Cocoa) released

Stig Brautaset has released version 2.2 of the very popular JSON.framework for Cocoa and the iPhone. You can grab the .dmg or visit the project home over at Google Code.

Here is the list of significant changes compared to version 2.1, copied 1:1 for your reading convenience courtesy of Stig’s blog post:

New, fresh API—particularly for errors

Extracted the SBJsonWriter and SBJsonParser classes from the SBJSON class. These present a fresh, simple API. If a method returns nil, you can now simply call a method to get an array of NSError objects containing the error trace.

The SBJSON class is now a facade, implementing its old interface by forwarding messages to instances of the new classes. Additionally, the facade also implements the new simplified interface of the SBJsonWriter and SBJsonParser classes.

[Read more...]

Ihren XING-Kontakten zeigen

5 Tips on Getting Started with the Thesis WordPress Theme

Having tried many other WordPress themes for 24100.net before, I absolutely fell in love with Thesis. Thesis is a professional theme created by DIY Themes which comes with built-in search engine optimization (no additional plug-ins needed), a unique approach for customization and fantastic customer support.

Prior to switching to Thesis I’ve been using a design provided by WooThemes. It also worked like a charm but adding social media features without breaking the advanced theme design ultimately got more and more difficult. So I’ve decided to give Thesis a try. And I fell in love.

Thesis is not free. But it’s well worth your money.

This article covers tips from my ongoing journey of customizing Thesis the way I want.

[Read more...]

Ihren XING-Kontakten zeigen

PhoneGap and iPhone SDK 3.0 (No launchable executable present at path)

Just a quick note on getting a “No launchable executable present at path” error when trying to build and run the PhoneGap Demo project for the iPhone Simulator.

(Before you read on, why don’t you follow me at twitter?!)

Today one of our devs grabbed a fresh and clean copy of PhoneGap from GitHub, changed the Bundle Identifier accordingly, switched to the iPhone Simulator – 2.2.1 | Debug configuration and tried to Build & Go. This yielded a “No launchable executable present at path” for an executable named “Glass.app”. A quick search over at the PhoneGap Google Groups indicated that quite a few folks ran into this or similar issues.

I don’t exactly understand why the checked-in PhoneGap projects do not get at least some sort of quality assurance but maybe we’ve got to accept rocky paths if we opt for free lunch. My Google searches on this issue indicated that quite some devs turn away from PhoneGap because failing at “Getting Started” is probably the most frustrating experience.

I was able to resolve the issue by executing the following steps:

  • Get a clean version of PhoneGap by running git clone git://github.com/sintaxi/phonegap.git in a Terminal session.
  • Open PhoneGap.xcodeproj with Xcode.
  • Open Info.plist and replace the com.sintaxi.phonegap Bundle Identifier with your own. Ours is com.grandcentrix.phonegap.
  • Right-click the top most node named PhoneGap and select Get Info.
  • Make sure that Configuration says All Configurations and Show says All Settings.
  • Adjust Code Signing Identity, Any iPhone OS Device and Device – iPhone OS 2.1. I switched these from <Multiple values> to iPhone Developer.
  • On the Build tab in Search in Build Settings type Product Name. In my project the product name was empty. Double click the empty value cell and enter PhoneGap. Close the Project Settings.
  • Expand the node named Targets, right-click PhoneGap and select Get Info.
  • On the Build tab again search for Product Name and enter PhoneGap. Mine had <Multiple values> here, too.
  • From the Build menu select Clean All Targets.
  • Make sure iPhone Simulator 2.2.1 is the active platform and Debug is the active build.
  • Select Build and Go.

This worked for me. The PhoneGap application runs fine in the 2.2.1 Simulator and crashes shortly after launch if I build for the 3.0 Beta 5 Simulator (which is ok given the beta nature of Apple’s 3.0 SDK).

I have not yet tested to deploy the device.

Ihren XING-Kontakten zeigen

German iPhone Dev Tutorial cont’d

Over at iPhonenotes.de the third installment of my (German) iPhone development tutorial has been published. In case you’ve always wanted to learn programing the iPhone but prefer a course in German, you might want to check it out.

Ihren XING-Kontakten zeigen

Building 2.x apps on iPhone OS 3.0 beta

Quick note: If you wonder whether you can run/test iPhone 2.x apps on a device upgraded to the current 3.0 beta, I’d say you can.

I’ve upgraded one of our 2G models from 2.0 to 3.0 beta. Rebuilding our projects with the updated SDK and Xcode with a “Device 2.2 – Release” configuration worked like a charm, including the debugger functionality.

What we did notice though is that lots of apps we’ve downloaded from the App Store do crash on 3.0 beta. Seems as if they need to be re-built.

Be aware though: While it is possible to compile 2.2 applications with the new version of Xcode that gets installed with 3.0, Apple has specifically requested that developers not use that version of Xcode for compiling apps to go on the App Store.

Looking for what you’ve experienced in the comments.

Ihren XING-Kontakten zeigen

Jeff LaMarche’s SQLPO Presentation

The fantastic Jeff LaMarche today gave a great presentation about SQLPO as part of 360 iDev. He published the original Keynote ’09 presentation on his blog.

As some of you might not have the latest version of Keynote, I’ve converted the presentation to the PDF format including the speaker notes. Grab the download here.

I’m providing this download purely as a convenience for owners of older Keynote versions. Absolutely all credits go and belong to Jeff. Check out and subscribe his blog – it’s a daily must read for anybody seriously developing for the iPhone.

Thanks Jeff for all your great work.

Ihren XING-Kontakten zeigen

Second part of German iPhone Dev series

Over at iPhone-notes.de – which moved to new infrastructure and a new domain (http://www.iphonenotes.net) due to the increasing number of readers – I’ve published the second installment of the German Introduction to iPhone Development. Go check it out!

Ihren XING-Kontakten zeigen