Problem solved: Turns out the IPA generated by xcodebuild was not the exportPath itself, it was inside the exportPath folder:
altool --upload-app -f "~/Downloads/test.ipa/MyApp.ipa" --type ios -u "REDACTED" -p "REDACTED"
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: