I'm running my test case on an iOS simulator but unable to upload iOS app using API?

I’m running my test case on an iOS simulator but unable to upload iOS app using API and getting an error:

"message": "missing type? [ios/android] in body"

When you upload iOS app, please make sure that the file should be .ipa. Also, we don’t support App automation on Emulators and Simulators.