Xcode
iOS Developer Tips - Visitor Stats:
|
|
|
Rename an Xcode Project
If you’ve ever attempted to rename an Xcode project you can speak first hand to the pain of getting all the details just right. Good news, it was recently pointed out by a reader in this post: Change Company Name from Within Xcode on a Per Project Basis that there is now a rename feature [...]
Change Company Name from Within Xcode on a Per Project Basis
A common question for most anyone new to Xcode is how to change the Company Name that is added to each new source file. The default information looks similar to the following: Copyright (c) 2010 MyCompanyName. All rights reserved. Up until Xcode 3.2 to change this value you had to resort to running a command [...]
Tell Xcode Not to Compile a File
Editor’s Note: To read more about compile options and file date/time stamps, please head over to this post: Touch or Untouch a File in Xcode. By default, when you create a new file or import a file into Xcode, if the file type is recognized as a source file (.c, .m .js, etc), the file [...]
Killer Xcode Tips and Tricks – Tips 1 to 10
My world is surrounded by sticky notes, both electronic and paper, doing my best to keep track of Xcode shortcuts, tips and tricks. I strive to use the mouse as little as possible when coding, and without these tips I’d be lost. What better place to keep track of this stuff than to write about [...]
Where Does Xcode Simulator Write Files?
When working with Xcode and running apps in the Simulator, looking at files written to your system is often a necessity to verify all is well. For example, I’m working on a project at the moment that requires updating a plist (XML file) when the application exits. Once the content is written to the plist, [...]
Static Code Analysis (Clang) and Xcode 3.2
With the release of Xcode 3.2 (available with Mac OX 10.6 – Snow Leopard) you can easily run a static analysis check on your code, thanks to integration of Clang. If you’ve worked with Clang prior to its integration of Xcode, you already know just how cool this is for . If you are new [...]
Build iPhone Apps for 2.2 and Earlier, Using Xcode 3.2 and Snow Leopard
Once you upgrade to Snow Leopard, you’ll notice a few things have changed as far as how to create builds for versions of the iPhone/iPod prior to 3.0. The changes are minor, however, I think you’ll agree that things have been simplified. Let’s start with how to get your system working with Snow Leopard: Install [...]
iTunes Icon for Ad Hoc Distributions
Creating an icon for iTunes adhoc / ad-hoc distributions.
Xcode, Folders and the File System – Part 2
In Part 1 of Xcode, Folders and the File System I walked through a short example on how to import folders into Xcode such that resources within a project have a folder structure that matches the file system. In this post I will show you two ways to access the imported resources, one by specifying [...]
Xcode, Folders and the File System – Part 1
Xcode provides a built in mechanism for organzing content within a project (control-click or right click -> Add -> New Group). For example, in the image below, I’ve created a number of groups for separating the primary functionality of an application into model classes and views. Although this is nice, for the most part the [...]
Finding the Xcode Project File in a Folder
This barely qualifies as a tip worthy of publishing, however, it’s something I use regularly so I figured it’s worthwhile passing on. I’ve been working with some monster projects as it relates to content. What that translates to is really long lists of files inside of Finder. Since I bounce between a handful of projects [...]
iPhone Distribution Build Cheatsheet
For anyone who’s been through creating a distribution build, Ad Hoc or for the App Store, you know all to well it’s no walk in the park. After going through this a few times, I began writing notes to myself, which eventually become a rather lengthy checklist. I thought this same information might be helpful [...]
Adding Compiler Options to Project Templates
In the previous post on GCC and unused values, I made a change to a compiler option such that statements that have no effect are flagged as warnings. Problem is, this change only applies to the current project. For all new projects you create, you will have to make the same change. There is a [...]
Gotcha: GCC and Unused Values
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 to what I was recently attempting to do. It’s nothing more than a variable definition, [...]
Xcode Code Completion Macros
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 into Xcode and follow this by pressing Control . (control period) and you’ll see the [...]






