I need to set the metadata for binary files which are generated by XCode. For example, fields like “copyright” and “version” which appear in the “Get Info” screen for files.
Is there some way to set a build setting so these properties get set each time the binary is built?
There is a YourProjectName-info.plist file associated with every xcode project.
This file has lots of project related info including the ones you want as key and values in XML format.
Xcode also gives you option to have a GUI based table like representation of the same.
Read more about it in the Apple documentation.
EDIT :
It seems that the plist is missing from command line projects by default.
Read this post which explains the fundamentals of plist nicely.
Read Embedding Info.plist section in it to know about how to do it in command line project.