Just in case anyone stumbles across this like I did after wasting hours! In my case I was running the command in VSCode's integrated terminal with the Debugger set to always attach. The code that tries to find the podspec file uses stdout to parse the location and the debugger outputs 'Debugger Attached' to stdout which messes up the location parsing!