是否有应用程序归档的任何自动Testflight上传脚本?(Is there any automat

2019-07-21 22:42发布

我发现,Testflight通过API调用支持的应用程序上传http://testflightapp.com/api/builds.format 。 它接受应用程序包,dsyms,应用程序信息等。

所以我的问题是下一个:是否有Xcode中,将上传后“归档”操作建成Testflight任何自动脚本? 分享链接,请。

解决方法是这里(的Mac OS X 10.8):

1)按照本手册和安装后执行脚本

2)拆下换上一条规则“回声”的字符串:

#!/bin/bash
#
# (Above line comes out when placing in Xcode scheme)
#

API_TOKEN="<YOUR-TESTFLIGHT-API-TOKEN>"
TEAM_TOKEN="<YOUR-TESTFLIGHT-TEAM-TOKEN>"
SIGNING_IDENTITY="iPhone Developer"
PROVISIONING_PROFILE="${HOME}/Library/MobileDevice/Provisioning Profiles/<YOUR-PROFILE-NAME>.mobileprovision"
LOG="/tmp/testflight.log"
GROWL="/usr/bin/terminal-notifier -title Xcode -message"

DATE=$( /bin/date +"%Y-%m-%d" )
ARCHIVE=$( /bin/ls -t "${HOME}/Library/Developer/Xcode/Archives/${DATE}" | /usr/bin/grep xcarchive | /usr/bin/sed -n 1p )
DSYM="${HOME}/Library/Developer/Xcode/Archives/${DATE}/${ARCHIVE}/dSYMs/${PRODUCT_NAME}.app.dSYM"
APP="${HOME}/Library/Developer/Xcode/Archives/${DATE}/${ARCHIVE}/Products/Applications/${PRODUCT_NAME}.app"

#/usr/bin/open -a /Applications/Utilities/Console.app $LOG

#echo -n "Creating .ipa for ${PRODUCT_NAME}... " > $LOG
${GROWL} "Creating .ipa for ${PRODUCT_NAME}"

/bin/rm "/tmp/${PRODUCT_NAME}.ipa"
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${APP}" -o "/tmp/${PRODUCT_NAME}.ipa" --sign "${SIGNING_IDENTITY}" --embed "${PROVISIONING_PROFILE}"

#echo "done." >> $LOG
${GROWL} "Created .ipa for ${PRODUCT_NAME}"

#echo -n "Zipping .dSYM for ${PRODUCT_NAME}..." >> $LOG
${GROWL} "Zipping .dSYM for ${PRODUCT_NAME}"

/bin/rm "/tmp/${PRODUCT_NAME}.dSYM.zip"
/usr/bin/zip -r "/tmp/${PRODUCT_NAME}.dSYM.zip" "${DSYM}"

#echo "done." >> $LOG
${GROWL} "Created .dSYM for ${PRODUCT_NAME}"

#echo -n "Uploading to TestFlight... " >> $LOG
${GROWL} "Uploading to TestFlight"

/usr/bin/curl "http://testflightapp.com/api/builds.json" \
-F file=@"/tmp/${PRODUCT_NAME}.ipa" \
-F dsym=@"/tmp/${PRODUCT_NAME}.dSYM.zip" \
-F api_token="${API_TOKEN}" \
-F team_token="${TEAM_TOKEN}" \
-F notes="Build uploaded automatically from Xcode."

#echo "done." >> $LOG
${GROWL} "Uploaded to TestFlight"
/usr/bin/open "https://testflightapp.com/dashboard/builds/"

3)在Finder中显示提供的个人资料:去Organazier /设备/提供配置文件,然后在你的个人鼠标右键,然后单击“在Finder中显示”。 复制文件名称和粘贴到PROVISIONING_PROFILE变量,而不是<YOUR-PROFILE-NAME>

4)打开终端和安装终端通知 :

sudo gem install terminal-notifier

5)你已经准备好:)

Answer 1:

我也创建了这个红宝石的宝石,如果你想这个融入rake任务:

gem install testflight_upload

来源我的github这里



Answer 2:

下面是公用事业好的收集http://nomad-cli.com/

最后我用深圳到自动构建和部署testflight。



Answer 3:

这是一个很好的tutorial..may对您有用:

http://developmentseed.org/blog/2011/sep/02/automating-development-uploads-testflight-xcode/



Answer 4:

深圳停产,您可以用飞行员代替。 这是上传新的构建和管理您的beta测试一个基于Ruby的工具。 引擎盖下它使用iTunes的转运和飞船 。



文章来源: Is there any automatic Testflight upload script on application archiving?