我正在运行以下脚本:
#!/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'
但是我收到了错误:
您必须提供api_token,team_token,文件和备注(缺失 文件)
我实际上是从TestFlight网站复制/过去脚本。这有什么问题?
答案 0 :(得分:6)
请注意,如the TestFlight API Documentation中给出的示例所示,您需要在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'