Search code examples
macosazure-devopsplist

Unrecognized Command running PlistBuddy through Azure DevOps build definition


I have a Command Line step in my build definition which runs the PlistBuddy cli tool. I've verified that the PlistBuddy is installed and exists in the specified dir, but I'm still getting an error. Is there something that I could possibly be missing here?

enter image description here enter image description here enter image description here


Solution

  • Locally the PlistBuddy client worked fine. Seems the version running on the server didn't like the single quotes around the command. What ended up working was:

    /usr/libexec/PlistBuddy -c "Delete :NSAppTransportSecurity:NSExceptionDomains" Info.plist