altool fails to upload iOS app to iTunes Connect and xcode succeeds -


i automate build , upload of ios app , encountered issue using xcodebuild archiving.

when archiving & exporting using xcodebuild , trying upload using altool (application loader command line tool) - upload fails , gives error:

"error domain=itunestransportererrordomain code=-18000 \"error itms-90161: \"invalid provisioning profile. provisioning profile included in bundle com.****.***** [payload/*****.app] invalid. [missing code-signing certificate]. distribution provisioning profile should used when submitting apps app store. more information, visit ios developer portal.\"\" userinfo={nslocalizedrecoverysuggestion=error itms-90161: \"invalid provisioning profile. provisioning profile included in bundle com.****.***** [payload/*****.app] invalid. [missing code-signing certificate]. distribution provisioning profile should used when submitting apps app store. more information, visit ios developer portal.\", nslocalizeddescription=error itms-90161: \"invalid provisioning profile. provisioning profile included in bundle com.****.***** [payload/*****.app] invalid. [missing code-signing certificate]. distribution provisioning profile should used when submitting apps app store. more information, visit ios developer portal.\", nslocalizedfailurereason=error itms-90161: \"invalid provisioning profile. provisioning profile included in bundle com.****.***** [payload/*****.app] invalid. [missing code-signing certificate]. distribution provisioning profile should used when submitting apps app store. more information, visit ios developer portal.\"}

i see chosen provisioning profile correct in xcodebuild archive log, shown here (i changed names of course..):

signing identity: "iphone distribution: company name (8#######7)" provisioning profile: "the distribution provision profile name" (provision profile id)

  1. archiving in xcode , uploading working fine.
  2. archiving & exporting xcode , uploading altool working fine
  3. the distribution certificate in keychain access certificates , includes private key. valid , not revoked or expired.

things i've tried:

  1. regenerate distribution provisioning profile
  2. revoke distribution certificate , create new one
  3. restart (always worth trying..)
  4. try different apps (all failed)

this bothers me week now. no solution internet worked me. if can great.

thanks lot, giora.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -