how to uninstall unnecessary simulators in Xcode?

You can find and delete the simulators from the path /Library/Developer/CoreSimulator/Profiles/Runtimes. Restart Xcode in order to take effect.


You can delete a simulator from Xcode by navigation through Menu > Window > Devices > Simulators.


Convert iPad xib to iPhone version

We can go with the following approach to get iPhone version of iPad xibs already exist in the project. With this approach we no need to create a new xib and manually add all the subviews.

1. Xcode recognises the iPhone version of a XIB if the suffix is ~iphone (lowercase only) and iPad version if its ~ipad. If no suffix exists then it will consider it as an iPhone version. Lets suffix all the existing xib names with ~ipad.

2. Duplicate all the xib files and open them in TextEditor and do the following.

change “” to “”
change “iOS.CocoaTouch.iPad” to “iOS.CocoaTouch”
change iPad size (width=”1024″ height=“768”) to iPhone size (width=“320″ height=“568″)

3. Add the xib to the project and open it on Xcode.

4. Select the root view and go to the attributes inspector.

5. Change the orientation to portrait and size to Retina 4-inch Full Screen.

6. Adjust the frame of all the subviews.

Three20 Framework compile time issues with Xcode 4

Do the following to fix the Three20 framework compile time isssues with Xcode 4





Main project build settings


Blogged with the Flock Browser

Increase the text font size in XCode documentation window

Go to Documentation tab of X-Code preferences.

Change the value of Never use font sizes smaller than drop down of Universal Access section to desired font size.

Blogged with the Flock Browser

Change Company Name in Xcode

Cited from:

By default, Xcode inserts a company name something similar to the following in all new source files (.m .h etc):

    Copyright (c) 2009 MyCompanyName. All rights reserved.

Changing this reference is as simple as entering the following from within a terminal window, replacing “YourNameHere” with the text you prefer. Also, make sure this is all entered on one line in the terminal

defaults write PBXCustomTemplateMacroDefinitions

Otherwise you can also set the company name in your me card in Address Book.

Blogged with the Flock Browser