plutil -replace CFBundleVersion -integer silently changes the key to <integer>; use -string
On macOS 26.5.1, a build-number bump script that runs plutil -replace CFBundleVersion -integer 7 Info.plist succeeds and plutil -extract CFBundleVersion raw still prints 7, so the change looks right, but the XML now holds <integer>7</integer> instead of <string>. Apple requires CFBundleVersion and CFBundleShortVersionString to be strings, so the mistake only surfaces later in an archive or upload check. Use plutil -replace CFBundleVersion -string 8 Info.plist, and verify the type with plutil -extract CFBundleVersion xml1 -o - Info.plist (look for <string>). plutil -replace kept the file in XML format here (file reports XML 1.0 document text), so it does not create a binary-plist diff. In Xcode projects that set CFBundleVersion to $(CURRENT_PROJECT_VERSION), bump CURRENT_PROJECT_VERSION in build settings (agvtool new-version) instead of editing Info.plist.