Skip to content

Instantly share code, notes, and snippets.

@uberbruns
Created April 30, 2019 16:01
Show Gist options
  • Save uberbruns/f23c1f66fdcf20b9764a50c1a823cb01 to your computer and use it in GitHub Desktop.
Save uberbruns/f23c1f66fdcf20b9764a50c1a823cb01 to your computer and use it in GitHub Desktop.
tmpfile=$(mktemp)
prjfile=project.pbxproj
plutil -convert xml1 ${prjfile} -o - \
| plutil -replace "objects.071AC71E45E94004142F8190.includeInIndex" -string 2 -o - - \
| pl \
> ${tmpfile}
cat ${tmpfile} > ${prjfile}
rm -f ${tmpfile}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment