How do you enable ARC project-wide in Xcode 4.2

“ARC is available in Xcode 4.2, currently in beta, and only when compiling with Clang (a.k.a. “Apple LLVM compiler”). The setting is called, obviously enough, “Objective-C Automatic Reference Counting”. Turn it on, and off you go. If you’re working on existing code, changing this setting will produce an enormous quantity of errors. ARC not only … Read more

What’s the correct way to configure Xcode 4 workspaces to build dependencies when needed?

Editing the scheme (swapping around build targets, un-/check “Parallelize Build” and/or “Find Implicit Dependencies”) didn’t work for me. I still had to clean build the project, after any code change in the static lib. Searching the dev forums, I finally found this answer, which worked wonders. Make sure the Identity and Type inspector is showing … Read more

iPhone ad hoc build using Xcode 4

Make sure you have selected a device from the drop down menu and not the simulator. Then in XCode 4 go to product -> archive. After the build is complete open the organizer and selected Archives. Here you will find your build, from here you can then select share, next XCode will ask with which … Read more