CLITool+InfoPlist is an Xcode plugin that properly handles Info.plist files in CLI tool targets.
In the build settings, under the Packaging section, just set the Info.plist File (
INFOPLIST_FILE). The plugin takes care of processing your Info.plist file based on the different Info.plist related settings, i.e. Expand Build Settings in Info.plist File, Info.plist Output Encoding, etc. It also automatically adds the necessary linker flags for creating the required __TEXT,__info_plist section.
- Open CLITool+InfoPlist.xcodeproj
- Build the project, CLITool+InfoPlist.xcplugin will be automatically installed into
- Quit Xcode
- Relaunch Xcode
Because neither the Xcode plugin API nor Xcode internals are not documented, this plugin might break at anytime. To ensure that the plugin is still working, build and run the dump_info_plist projet.
This plugin has been tested on Xcode 3.1, 3.2, 4.0, 4.1 and 4.2.
If you are not comfortable with the plugin, dupe rdar #6646614 and cross your fingers because this is a duplicate of rdar #4722772 which was filed in 2006.