iOS Dev Nugget 55 Modifying Compilation Flags For Multiple Source Files at Once


Need to run a code review on your codebase? Hire me

Related to #11 Use Automatic Reference Counting (ARC), I've seen people mention that it is very tedious to add -fno-objc-arc (and similarly -fobjc-arc) flags to multiple source files in Xcode.

Here's 2 nice tricks related to this: While editing your project settings, looking at the list of source files under the Build Phases tab, you can type in the text box to filter files. In addition, you can cmd-click to select multiple files in the list and then double click any of them, enter the flags once and hit return to apply it to all selected files.

Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No


Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter


View archives of past issues