It\'s easy to set the build and version numbers manually in Xcode, and I learned how to increment them with a macro at build time. But how do I reference their values in cod
Sure, you can ask your main bundle for the info directory which includes all keys and values of your info.plist, including the version number:
NSDictionary *info = [[NSBundle mainBundle] infoDictionary]; NSString *version = [info objectForKey:@"CFBundleShortVersionString"];