jenkins - 通过 jenkins 将 .ipa 上传到 testflight

标签 jenkins continuous-integration testflight

我正在使用 jenkins 进行自动构建和自动部署。到现在为止,我成功地实现了构建生成(即 .ipa 文件)。我还实现了diawi链接生成。

现在我想通过 jenkins 将 .ipa 上传到 testflight。现在我正在使用这个脚本进行上传,

 ipa distribute:itunesconnect \
 —-file "${WORKSPACE}/build/upload.ipa" \
 —-account yourappleid@gmail.com \
 -p Y0urPa55w0rd \
 —-apple-id 1234567890 —-upload —-verbose

但是 Jenkins 给我下面给出的错误,

*** Error: Unable to validate your application. Unable to read password from stdin.

此脚本有什么问题或将使用任何其他脚本进行上传。所以,请任何人都可以帮助我通过 jenkins 将 .ipa 上传到 testflight。

最佳答案

我完成了。通过 jenkins 成功上传 .ipa 到 testflight。

ALTOOL 是一个命令行工具,可帮助您将 .ipa 上传到 testflight。您只需要转到您的 xcode 的 altool(xcode 内置工具)的路径,然后触发将 .ipa 上传到 testflight 的命令。

以下是您需要在构建阶段Execute Shell中编写的脚本/命令。

cd  /Applications/Xcode\ 8.3.3/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Versions/A/Support/

./altool --upload-app -f /Users/Shared/Jenkins/Home/workspace/yourWorkspace-name/build/artifacts/yourIPA.ipa -u itunesconnectUserName -p itunesconnectPassword

关于jenkins - 通过 jenkins 将 .ipa 上传到 testflight,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48879294/

相关文章:

ios - swift - 在 TestFlight 上重命名项目

ios - 在不上传 App Store 的情况下,我们可以在 TestFlight 中上传多少次 iOS 应用程序?

java - Jenkins 进行了挂起的 Maven 可靠测试

android - 创建 3 个安卓模拟器 [phone, tab7, tab10] 并通过 faSTLane 的命令行启动它们

docker - docker-compose 网络名称的最大长度是多少?

gradle - 我的Gitlab CI/CD管道无法通过FATAL进行高速缓存:文件不存在错误

java - SBT 中 jenkins 上的无效源版本 : 1. 8

cordova - 带有 Cordova iOS cordova-plugin-wkwebview-engine 插件的白色空白屏幕

使用 Gradle 进行 Android 命令行测试

github - Jenkins +Github : We couldn’t deliver this payload: Couldn't connect to server