Writing to build directory info.plist using Xcode's “New Build System”
问题 Before using the "New Build System", we had a build phase script like this: infoplist="$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH" builddate=`date` /usr/libexec/PlistBuddy -c "Set :BuildDateString $builddate" "${infoplist}" The point of this way to write to the plist at runtime without dirtying the project and having to stash the changes. This still works well and perfectly when using the "Legacy Build System". On the "New Build System", this script does not work. The directory variables and writing