使用TestFlight API提交iOS .app时出错

Cla*_*aus 3 api bash file-upload testflight

我正在运行以下脚本:

#!/bin/bash
archive=`./builds/myapp.ipa`
curl http://testflightapp.com/api/builds.json
-F file=$archive
-F api_token='xxxxxxxxxxxxxxxxxxxxxxxxxx'
-F team_token='xxxxxxxxxxxxxxxxxxxxxxxxxx'
-F notes='here comes the new app!' 
-F notify=True
-F distribution_lists='MyFriends'
Run Code Online (Sandbox Code Playgroud)

但是我收到了错误:

您必须提供api_token,team_token,文件和备注(缺少文件)

我实际上是从TestFlight网站复制/过去脚本.这有什么问题?

小智 6

请注意,如TestFlight API文档中给出的示例所示,您需要在IPA文件名之前使用"@"字符.

你应该尝试:

#!/bin/bash
archive=`./builds/myapp.ipa`
curl http://testflightapp.com/api/builds.json \
-F file=@$archive \
-F api_token='xxxxxxxxxxxxxxxxxxxxxxxxxx' \
-F team_token='xxxxxxxxxxxxxxxxxxxxxxxxxx' \
-F notes='here comes the new app!' \
-F notify=True \
-F distribution_lists='MyFriends'
Run Code Online (Sandbox Code Playgroud)