Archive for the ‘Xcode’ Category

Uninstall Xcode

Use the following command to uninstall Xcode:

sudo <Xcode>/Library/uninstall-devtools --mode=all

<Xcode> is the location you’ve installed Xcode.

If you’ve installed Xcode with the default settings you can use this command:

sudo /Developer/Library/uninstall-devtools --mode=all
Categories: Development, iOS, Mac OS X, Xcode

Xcode cannot run using the selected device. No provisioned iOS device … iPhone 3G

There is no iOS 4.3 update for the iPhone 3G and iPod Touch 2G available.  If you have set the Deployment Target to 4.3 in your Xcode project settings you will get an error.

To run the app on your iPhone 3G you have to set the Deployment Target to 4.2.

Delete SQLite Database of iPhone/iPad Simulator App

You can find and delete the sqlite database file of your app here:

/Macintosh HD/Users/<username>/Library/Application Support/iPhone Simulator/<Simulator-Version>/Applications/<app-key>/Documents/

Iconless iPhone simulator

Does anyone know how this might occur and how to fix it?

iconless iPhone simulator

Categories: iOS, iOS Simulator, Xcode

Xcode SVN – Attempted to lock an already-locked dir…

xcode attempted to lock an already-locked dir svn

If you get a message like “attempted to lock an already-locked dir…” while committing your files try to cleanup your project:

cd <root of svn>
svn cleanup
Categories: SCM, Xcode

Find out your installed iOS SDK version

  • Go to your /Developer folder.
  • There should be an “About Xcode and iPhone SDK.pdf” file with informations about the installed version.
Categories: Development, iOS, Xcode

Download old Apple iOS Versions

You need an Apple developer account to login!

You can get some old links to work by changing; to;

iPhone SDK 3.1.3 with XCode 3.1.4 for Leopard (10.5.7)

iPhone SDK 3.1.3 with XCode 3.2.1 for Snow Leopard (10.6.0)

iPhone SDK 3.2 Final with Xcode 3.2.2 for Snow Leopard (10.6.0)

Xcode 3.2.3 and iPhone SDK 4 GM seed for Snow Leopard (10.6.2)

Xcode 3.2.3 and iPhone SDK 4 Final for Snow Leopard (10.6.2)

Xcode 3.2.3 and iOS SDK 4.0.1 for Snow Leopard (10.6.4)

Xcode 3.2.3 and iOS SDK 4.0.2 for Snow Leopard (10.6.4)

Xcode 3.2.4 and iOS SDK 4.1 for Snow Leopard (10.6.4)

Xcode 3.2.5 and iOS SDK 4.2 beta 3 for Snow Leopard (requires Mac OS X v10.6.5 pre-release)

Categories: iOS, Xcode

Differentiate between iPhone, iPad and simulator

October 20, 2010 5 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