Xcode

iOS Developer Tips - Visitor Stats:
276,807 Pageviews and 214,652 visitors in the past 30 days.

For advertising information and rates, click here.

Xcode 4 : Show Invisibles to Find Tabs and Spaces

Every now and again I experience some rather odd code formatting behavior when I copy/paste from Xcode into another editor, an email or this blog. I’m never quite sure just where the weirdness originates, most likely an errant tab that was inadvertently introduced somewhere on the way. For example, this screenshot from Xcode looks rather [...]

Xcode

Xcode 4 : Related Files List

With Xcode 4 you can quickly access an assortment of files related to your project through the Related Files option in the Jump Bar. The screenshot below shows the related files based on the file that is open in the editor pane – the red box in the upper left highlights the icon to open [...]

Xcode

Xcode 4 : Jump Bar Tips and Tricks

The Jump Bar is the navigation area at the top of the source editor pane, which is highlighted in red in the figure below:

Xcode

Xcode 4 : Select and Edit All Variables in Scope

Xcode offers a nice way to highlight all references of a variable within the current scope. First, make sure you have the setting shown below enabled within the Text Editing tab in the Xcode Preferences:

Xcode

XCode 4 : Project Modernization

When opening projects that were created in an earlier version of Xcode, you can update (modernize) project files to ensure projects are stored with the latest Xcode file formats and are in line with the most current features in Xcode. To update a project (if Xcode does not notify you when opening a project): – [...]

Xcode

Xcode 4 : Fonts and Color Themes

Xcode includes a nice assortment of built-in themes that manage fonts and color selections. To view the available themes: > Xcode – Preferences > Select Fonts and Colors tab (across the top) > Select a theme on the left menu Below are screenshots of the Default, Sunset and Midnight themes. There is also a Presentation [...]

Xcode

Xcode 4 : Pragma Mark Shortcut

In a tip nearly a year ago, Xcode and #pragma mark, I described how to insert pragma mark directives to organize your code. #pragma mark – #pragma mark Initialization

Xcode

Xcode 4 : Remove Older SDK Documentation Sets

I was recently on a mission to clean up the documentation sets that are installed on my system, specifically, OS 3.x docs that I no longer need. The obvious place to look was within the Documentation tab of the Preferences settings. It was the right idea, however, I discovered the “-” option to remove a [...]

Xcode

Refactoring to Change a Local Variable Name

What follows is a trick to refactor a local variable, best used if the variable occurs many times within a local scope. In the screenshot below, I highlighted the local variable dict and then entered Control-Command-T. Notice that each reference to this variable is now highlighted. An important note, you don’t need to necessarily highlight [...]

Xcode

Undo Xcode PNG Optimizations Using pngcrush

PNG images that you include within an Xcode project are optimzed during the application build process. Good news is, this often results in a smaller application bundle. Bad news is, the resulting PNG images typically cannot be opened in Preview or other imaging software. The tool doing the optimization is pngcrush, an open source utility [...]

Xcode

Distribute Ad Hoc Applications Over the Air (OTA)

If you’ve been through the distribution process of an Ad Hoc application, you can appreciate the challenges of getting a build installed on someone’s device. From the differences of working with users on Windows versus Mac machines, to explaining how to import an Ad Hoc provisioning file and the associated build into iTunes, this process [...]

Xcode

Touch or Untouch a File in Xcode

In a previous post, Tell Xcode Not to Compile a File, I mentioned that when a new file is imported into Xcode, if the file type is a recognized, it will be added to the Compile Sources folder. From there, Xcode will manage if/when the file needs to be recompiled based on its current time [...]

Xcode

A Valid Provisioning Profile For This Executable Was Not Found

Over the past few months I’ve been working on a mobile commerce/payment project where my focus is on the architecture and design side of things, sans coding. This past weekend I started a development project and all was going swimmingly until I received the error message shown in the post title. As far as I [...]

Xcode

Download and Install Older Versions of Xcode (Xcode Previous Releases)

As a general rule of thumb, it’s best to stick with the latest release of Xcode. That said, there are times when running an older release can be a good thing. You can download older versions of Xcode by logging into Apple Developer Connection – Downloads and ADC Program Assests (http://connect.apple.com) – You will need [...]

Xcode

Developing iPhone Apps with iOS4 SDK, Deploying to 3.x Devices : Base SDK and iPhone OS Deployment Target

Editor’s Note:You can download and install any previous release of Xcode if you would like to roll back to an earlier version. You can get the specifics here: Download and Install Older Versions of Xcode. If you’ve installed Xcode 3.2.3 you quickly became aware that the only SDK’s packaged with this version are 4.0 and [...]

Xcode
All Content Copyright © 2008-2012 • iOS Developer Tips, All Rights Reserved.