iTMSTransporter 将 ipa 上传到 iTunes Connect 成功但在 TestFlight 中选择失败

iTMSTransporter upload ipa to iTunes Connect Success but choose in TestFlight Failed

如我所见link upload ipa to testflight,再参考例子,

/usr/local/itms/bin/iTMSTransporter \
-m upload -jwt ex**** \
-asc_provider Apple \
-v eXtreme \
-assetFile /Users/jappleseed/Downloads/MyApp.ipa \
-distribution DeveloperId \
-primaryBundleId com.apple.contentdelivery.theFruitStand

但我收到了错误消息,为什么会这样?

ERROR: The '-assetFile' option cannot specify a file with an extension of '.ipa' when -distribution is set to 'DeveloperId'.

然后我尝试这个命令,将 .ipa 转换为 .zip,

 /usr/local/itms/bin/iTMSTransporter \
-m upload -jwt ex**** \
-asc_provider Apple \
-v eXtreme \
-assetFile /Users/jappleseed/Downloads/MyApp.zip \
-distribution DeveloperId \
-primaryBundleId com.apple.contentdelivery.theFruitStand

然后它显示成功,但我在 iTunes Connect 中找不到 ipa,因为 iTunes Connect 没有显示我上传的 IPA。

Package Summary:

1 packages were uploaded successfully.

面对这种情况,我再次尝试这个命令,upload.itmsp包含[metadata.xml, Myapp.ipa]

/usr/local/itms/bin/iTMSTransporter \
-m upload -jwt ex**** \
-asc_provider Apple \
-v eXtreme \
-f /Users/jappleseed/Downloads/upload.itmsp/ \
-distribution DeveloperId \
-primaryBundleId com.apple.contentdelivery.theFruitStand

它也告诉我成功消息,我可以在iTunes connect中看到构建版本,但是我无法在TestFlight中选择版本,所以我不能做更多。

1 packages were uploaded successfully:

/Users/jappleseed/Downloads/upload.itmsp/

使用 username/password 身份验证(-m 用户名 -p yourpassword)而不是 JWT。这为我解决了问题。