我正在运行以下脚本:
#!/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'
但是我得到了错误:
You must supply api_token, team_token, the file and notes (missing file)
我实际上是从 TestFlight 网站复制/粘贴脚本。这有什么问题吗?
最佳答案
请注意,如 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'
关于api - 使用 TestFlight API 提交 iOS .app 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13309845/