Archive for the ‘Xcode’ Category

Differentiate between iPhone, iPad and simulator

October 20, 2010 4 comments
// simulator specific code
// iPhone specific code
// iPad specific code
// Unknown target

Rename Xcode project

  1. Rename the .pch, .xcodeproj and project’s .plist file.
  2. Delete the build folder.
  3. Open the .xcodeproj folder by using the command ‘show package content’ and open the project.pbxproj file with a text editor. Replace all instances of the old name with the new name.
  4. Rename.
  5. Load the project file in XCode and run Build->Clean All Targets.
  6. Build and Run your project.

If you get the following Warning: The Copy Bundle Resources build phase contains this target’s Info.plist file “YourRenamedInfo.plist”.

  1. Select your project’s .plist file, get info on it. Click on the Targets tab, and uncheck the box (in caes it’s checked).
  2. In XCode’s outline panel (on the left), click on the small arrow next to your target. You should see the Copy Bundle Resources folder in grey. Browse it and delete any reference to both your old and new .plist file if present.
Categories: iOS, Xcode

iOS SDK for Mac OS X 10.5 (Leopard)

Here you can get the old SDK (for Mac OS X 10.5 – Leopard) if you don’t have Mac OS X 10.6 (Snow Leopard) running on your computer.

You can also upgrade your 10.5 system for 29,00€ here and get the newest iOS version from here.

Categories: iOS, Mac OS X, Xcode

couldn’t determine absolut path of file…

Got this error message when a directory was deleted on the svn server. A new checkout solved the problem.

Categories: SCM, Xcode

Installing Git

Download latest stable Git release from here and install it.

You can get a version via Git with:

git clone git://

Categories: Mac OS X, Xcode

Relationship does not have an inverse

Apple wants you to have inverse relationships. See Core Data documentation:

“It is possible for relationships to be navigable in only one direction (if you are never interested in finding out from a department object what employees are associated with it, then you do not have to model that relationship), however you are strongly encouraged always to model relationships in both directions.”

But perhaps yout don’t want/need an inverse relationship between two entities. To disable the XCode model compiler warnings simply check the box to ‘Suppress momc warnings on missing inverse relationships’.

Categories: Xcode

Format sourcecode


You can set a shortcut for this:

xcode shortcuts

Categories: Xcode