Tag Archives: Xcode

Managing iOS Configurations per Environment in Xcode 4

At Carbon Five we usually have 3 – 4 environments our iOS applications will run against: development, acceptance, staging and production. Often, the property values that are unique across environments are URLs to APIs that we are integrating with. There … Continue reading

Posted in Mobile | Tagged , , , | 6 Comments

Debug logging with Xcode 4 breakpoints

NSLog calls do not belong in release builds. Logging is slow and the performance impact of log statements on a device can be considerable. Logging is also noisy, it can obscure useful debugging information and may leak information you would … Continue reading

Posted in Mobile | Tagged , , , , | 10 Comments

Automated ad hoc builds using Xcode 4

I’ve previously discussed Continuous Integration for iPhone Projects in TeamCity using Xcode 3 and Building Xcode 4 Projects from the Command Line. Now I’ll tie those together and use TeamCity to automatically create ad hoc builds I can install over … Continue reading

Posted in Mobile | Tagged , , , , , | 5 Comments

Running Xcode 4 unit tests from the command line

Command line builds for Xcode 4 projects are a good first step but I really want to get my project’s tests running on a continuous integration server again. Since “test” isn’t a valid build action to pass to xcodebuild I’ve … Continue reading

Posted in Mobile | Tagged , , , | 14 Comments

Building Xcode 4 projects from the command line

The Xcode 4 developer tools introduced some changes to the xcodebuild command line tool. Instead of specifying a project and target developers can now provide a workspace and scheme to build.

Posted in Mobile | Tagged , , , , | 7 Comments

Using Open Source Static Libraries in Xcode 4

Xcode 4.0.1 allows us to more easily create and use third party libraries in iOS projects. I think the process is still more complicated than it needs to be. Xcode’s documentation suggests that it should automatically detect implicit dependencies and … Continue reading

Posted in Mobile | Tagged , , | 55 Comments

Code Formatting in Xcode 4

Automatic indentation and cleanup of code seems to have improved in Xcode 4 (Editor menu – Structure – Re-Indent) but it still doesn’t offer full code reformatting or the flexibility of a tool like Uncrustify. If you’re used to having … Continue reading

Posted in Mobile | Tagged , | 16 Comments

Continuous integration for iPhone projects in TeamCity

Carbon Five has been using TeamCity as our continuous integration server for most of our recent projects, including our iPhone work. Out continuous integration environment monitors the git repository used by each project, runs the project’s tests each time a … Continue reading

Posted in Mobile | Tagged , , , | 3 Comments

Multiple Environments in an iPhone Project

I’ve been following a Rails convention and defining multiple environments for my iPhone projects. This allows me to quickly switch application wide settings when running a test, development, or production version of the app.

Posted in Mobile | Tagged , , | 2 Comments

Code Formatting in Xcode

Using Xcode 4? Take a look at Code Formatting in Xcode 4 Working in Xcode I almost forgot how much I like IntelliJ’s code formatting tools. Luckily for me Mike Smith recently pointed out thatĀ UniversalIndentGUI can be used to setup … Continue reading

Posted in Mobile | Tagged , , | 12 Comments