Invalid upfront profile error after using `ipa build` tool and` delivery` (automate application submission)

I am using the tool fastlane

provided at https://fastlane.tools to create pre-profiles and submit apps to iTunes connect.

Sequence of commands:

$fastlane init
$cert
$produce
$sigh

      

After that, a preliminary profile corresponding to the distribution in the App Store is automatically loaded. After that, the command is executed deliver

and, in accordance with the guide, this expression was added to the delivery file -

ipa do
      system("ipa build --verbose") 
      "./AppName.ipa" 
end

      

It successfully creates the file .ipa

but cannot submit the app to iTunes connect. The following error is thrown:

[15:57:54]: [Transport error exit]: ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included with com.razeware.ScaryBugsZo [Payload / ScaryBugsZo.app] is not valid. [Code signing certificate missing] You must use a distribution profile when submitting apps to an App Store, visit the iOS Developer Portal for more information.

While using the same pre-profile is generated fastlane

, I can load the assembly using xCode. My ultimate goal is to automate multiple apps submission to iTunes connect from one Apple ID. For this it sigh

successfully creates preliminary profiles. I need to automate loading an assembly using deliver

or some other method.

+3


source to share


1 answer


I can recommend checking out the official Fastlane Code Signing Guide which shows the different ways to sign code.



+1


source







All Articles