How to publish to the Apple Store?

My application is made in ionic v3, and I use the ionic pro service to compile and publish.

I need to publish for the first time in the Apple Store, but I’m trying for days without success.

I hosted a remote service “Mac in Cloud” with a Mac with root permissions, generated all certificates and profile, sent them to Ionic Pro, but it still fails

fastlane finished with errors
\e[91mFailed to upload ipa to storage please retry your build.\e[0m
MAC Iteration 1
MAC verified OK
PKCS7 Encrypted data: pbeWithSHA1And40BitRC2-CBC, Iteration 2048
Certificate bag
PKCS7 Data
Shrouded Keybag: pbeWithSHA1And3-KeyTripleDES-CBC, Iteration 2048

I installed fastlane, cocoapods, I started fastlane in the project, but I do not know if I need to configure something more.

What do I have to do? Do I need to create a xcode project and bind it to ionic? help

Try to compile iOS file on MacinCloud mac? and publish through the cloud Mac as well…
I hope this will work. My guess is the whole job should be done on Mac from start to finish.