Error: Unable to upload archive. --upload-app is missing one or more required options: --type. (-1027)

Recently I updated the macOS Monterey to 12.4 and updated the code to 13.4 (13F17a). While uploading my game project to the IOS store and it shows this error: Error: Unable to upload archive. --upload-app is missing one or more required options: --type. (-1027)

I have no idea what is this. How can I solve the issue? Thanks

it might be related to https://developer.apple.com/forums/thread/691654 ? try xcrun altool --validate-app --type ios --file {IPA_PATH} --username "{APPLE_ID}" --password "{PASSWORD}" to find root cause

Sorry for the late reply, I found that I can upload the archive to app store by opening Unity-iPhone.xcworkspace and manually uploading it, but fail by Jenkins. And I run xcrun altool --validate-app it shows error below

I am not sure it's the reason why it fail to upload archive by using Jenkins.

Error: Unable to upload archive. --upload-app is missing one or more required options: --type. (-1027)
 
 
Q