Archive for the “Xcode” category

Resolving code signing issues in Xcode 5.0

by john on December 3, 2013

Upgrade to Mavericks? Any chance you’ve seen this or something similar when attempting to sign an app: code failed to satisfy specified code requirement(s) Olivier HO-A-CHUCK: If you have recently updated you Xcode version and your favorite re-signing script suddenly (…)

Read the rest of this entry »

Xcodebuild alternative for more effective build and test cycles

by john on December 2, 2013

xctool is an open source project from Facebook: xctool is a replacement for Apple’s xcodebuild that makes it easier to build and test iOS and Mac products. It’s especially helpful for continuous integration. One feature of xctool that rules is (…)

Read the rest of this entry »

How to fix Xcode 5 quick help bug

by john on October 31, 2013

Recently I was coding in Xcode 5 … and I noticed a bug when trying to view the quick help for a symbol. This is usually done by option clicking on a symbol in the Xcode editor pane. The quick (…)

Read the rest of this entry »

Xcode Code Completion

by john on March 5, 2013

What follows is a quick review of how I use code completion in Xcode. Chances are that options and features exist beyond what I’ll cover here, so comments and suggestions are welcome. Let’s say I want to insert a CGRectMake (…)

Read the rest of this entry »

Gotcha: GCC and Unused Values

by john on April 6, 2009

Subtle typos and the problems they bring, it’s enough to drive one nuts. Let me share a recent experience that will shed some light on my most recent experience. Below is a short snippet of code that show something similar (…)

Read the rest of this entry »

Xcode Code Completion Macros

by john on March 26, 2009

In the previous post I described the basics for working with code completion in Xcode. In this post I will show how you can use built-in text macros to insert various code fragments. As an example, begin by entering ifelse (…)

Read the rest of this entry »

Xcode Expert Preference Settings

by john on February 19, 2009

Beyond the settings you can access from the Preferences menu of Xcode, there are a number of configurable options that can be set using the defaults command from a terminal window. Two of the settings that I have configured are (…)

Read the rest of this entry »

Change Company Name in Xcode

by john on February 1, 2009

Although covered many other places on the net, I recently had to make a change to the name that Xcode automagically inserts when creating new files, so I figured I’d also pass on this tip to readers of this blog (…)

Read the rest of this entry »

Xcode FIXME and TODO

by john on December 23, 2008

In a previous post I introduced how to use #pragma mark to help navigate source files within Xcode. There are several additional tags that can be used within a source file to call out specific code or content.

How to Uninstall Xcode

by john on October 3, 2008

A friend in San Francisco, Rodney Aiglstorfer, was recently jumping through hoops to get Xcode to cooperate with his iPhone. There’s nothing more aggravating than having your application running within the simulator and getting stuck downloading to a device. At (…)

Read the rest of this entry »

Xcode and #pragma mark

by john on September 30, 2008

I’ve started using #pragma mark directives in my code to help with organization as my implementation files grow. #pragma mark is simple to use, for example, insert the following to call out initialization code: #pragma mark – #pragma mark Initialization

Xcode Debugging: Reset Current Line

by john on September 15, 2008

This tip is based on information in the book Xcode 3 Unleashed. I just completed a three part review the book, which you can read here. When inside a debugger and stepping through code, line be line, have you ever (…)

Read the rest of this entry »

Filename and Line Number with NSLog: Part I

by john on August 19, 2008

Coming from a C development background, long before the days of integrated debuggers, printf() was the primary tool for tracking down bugs. Building on that, NSLog is no doubt helpful. However, as the amount of code in a project grows, (…)

Read the rest of this entry »

Linking Error: Symbol Not Found

by john on August 18, 2008

In building a recent project I encountered an error during the linking process. I want to point out the error message and show you how this simple error can be resolved. The reason for pointing out this error is that (…)

Read the rest of this entry »

Linking Error: CGRectZero and CGRectOffset

by john on August 15, 2008

I want to share another debugging tip, this something that applies to the final step of building an iPhone project, linking. I was able to successfully compile a project that I’ve been working on, however, the build process generated an (…)

Read the rest of this entry »

Error: syntax error before ‘AT_NAME’ token

by john on August 14, 2008

I recently ran into this error message within Xcode while writing an iPhone application. I was surprised how long it took to track this down. One of the reasons this is tricky is that message implies that the error occurred (…)

Read the rest of this entry »

TextMate and Xcode

by john on June 27, 2008

I’ve been spending time getting familiar with Xcode as I learn to write applications in Objective-C, with the larger goal of writing applications for iPhone. My editor of choice on the Mac up to this point, is TextMate, an great (…)

Read the rest of this entry »