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

标签 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'

但是我得到了错误:

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/

相关文章:

api - 通过 AMP 页面上的 API 访问 cookie

bash - 如何使用预定义数量的进程通过 bash 中的程序处理多个文件?

java - spring 文件上传中回调

file-upload - 为什么 php 中的文件上传错误代码未命中编号 '5'?

Python liburl2 超时;可以 ping 服务器正常,wget 工作正常;

facebook - 无需 Facebook 登录的用户 Instagram Graph API

c - 如何调整/编辑编译 C 的终端 bash 脚本?

php - CKEditor Image Upload 在窗口中显示响应

php - Five9 的 API : How to pull reports using SOAP API and Basic Authentication

bash - shell脚本中的退出状态