Automating Instruments

I actually automate Instruments to get finer grain information of what an application is actually doing. To automated Instruments, according to Apple’s documentation, all you need is the DTPerformanceSession.framework… but, you actually need more than that, and you have to find where the dependencies are located. Here are all of the libraries you need: DTInstrumentsCP.framework … Read more

Duplicating projects and Xcode4

I found that when you duplicate a Xcode project, say to make experimental changes you don’t want in the original project, you find that the newly duplicated project actually points to the original project. That is because there is a workspace file within the xcodeproj bundle, project.xcworkspace, that contains the name of the original project, … Read more

“Selectively Disable Warnings” with clang

I saw this demo done at WWDC on how to turn off warnings, only when truly warranted, while compiling with clang: #if defined (__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored “-Wunused-value” #endif // defined __clang__ void ImAUselessLittleFunction ( int pleaseUseMe ) { pleaseUseMe; // Nope, you are not going to be used } … Read more

Xcode 4

Xcode 4 has a lot of cool new features. One of my favorites is it’s ability to tell you when you introduced a bug in your code; the feature is similar to a spell check found in a word processor. Usually, these cool tools are only available for Objective-C, but because of LLVM, this feature … Read more