2012-11-09 29 views
3

提交iOS版的.app我運行下面的腳本:錯誤使用TestFlight API

#!/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)

實際上,我複製/過去-ING來自TestFlight網站的腳本。那有什麼問題?

回答

6

請注意,如the TestFlight API Documentation中給出的示例所示,您需要在IPA文件名之前使用'@'字符。

你應該嘗試:

#!/bin/bash 
archive=`./builds/myapp.ipa` 
curl http://testflightapp.com/api/builds.json \ 
-F [email protected]$archive \ 
-F api_token='xxxxxxxxxxxxxxxxxxxxxxxxxx' \ 
-F team_token='xxxxxxxxxxxxxxxxxxxxxxxxxx' \ 
-F notes='here comes the new app!' \ 
-F notify=True \ 
-F distribution_lists='MyFriends' 
+1

同樣適用於文件的dSYM如果您選擇將其納入。 – kevinl