I know that info.plist file is the same file as the editor -> project -> Info tab (at least that's how things are long time ago). However, this time when I tried it on new Xcode 13, and directly modify in the Info tab, I found that info.plist is actually not updated.
When I check git diff, I realized that the actual files changed is the project.pbxproj
file under MyProjectName.xcodeproj
. For example, when I set the bundle display name:
-
INFOPLIST_KEY_CFBundleDisplayName = Jokes;
This is obviously not a plist format.
I have checked the info.plist path in settings tab, and it's pointing to the right location. I am wondering how to fix it? Do I have to add attributes to both this Info tab and the info.plist nowadays?
CodePudding user response:
This is something new in Xcode 13. Info.plist and info tab are not the same anymore.
The trick is that, now you always want to modify the attributes under info tab. Some attributes (common ones) will go into the pbxproj
file, and others (uncommon ones) will go into info.plist
file.