I want to edit project.pbxproj straight up using command line (for CI server script)
what tools can allow me to do this?
I used to use PlistBuddy to edit the output Info.plist; however, what i really want to do is to edit this user defined field, which is used in multiple places, and i really don't want to have to hunt that down in every plist location
project.pbxprojis an old-style ASCII property list file, too. So you can use/usr/libexec/PlistBuddyto edit it.Print some User-Defined key's value like this,
Set its value like this,
UPDATE
PlistBuddywill automatically convertproject.pbxprojinto a xml-format plist file since macOS Catalina (or some earlier version). It's better to move the setting item intoxcconfigfile instead sincexcconfigis much smaller and simpler thanproject.pbxprojand not easy to make mistakes when editing withperlscript.