I was pissed about having 20 different versions of Python on my Mac, so in an effort to clean it up I deleted every single instance of it. I disabled SIP and cleared out the system default one.
I then used Home-brew to install Python 3.7, Python 3.6, Python 2.7 (The versions I use).
However Xcode now gives an error when trying to export apps. It went from saying that it couldn't find python:
ipatool failed with an exception: #<RuntimeError: Couldn't locate python in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec /Applications/Xcode.app/Contents/Developer/usr/bin /Applications/Xcode.app/Contents/Developer/usr/local/bin /Applications/Xcode.app/Contents/Developer/Tools /usr/bin /bin /usr/sbin /sbin> /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:180:in `locate_tool' /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:160:in `unicode_equal?' /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1882:in `block in MakeFileSystemNode' /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1882:in `each' /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:1882:in `detect'
So I then copied over python 2.7 from home-brew into that directory and renamed it "python". I now get a different error, instead it says:
The operation couldn’t be completed. No such file or directory. The error logs show nothing of importance.