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 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 [...]
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 [...]
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 [...]
Distribute Ad Hoc Applications Over the Air (OTA)
Note: The information below is specific to Xcode 3.x (Xcode 4 was not available when the post was written). 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 [...]
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 [...]
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 [...]
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 [...]
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 [...]


