gpt4 book ai didi

Xcode 7 + Bots + FaSTLane : How to automatically deploy an app to itunes connect using FaSTLane's Deliver

转载 作者:行者123 更新时间:2023-12-03 22:44:59 25 4
gpt4 key购买 nike

问题:如何使用 Deliver 从运行在 Xcode 7 和 Server 4.1 上的机器人将 IPA 上传到 itunesconnect?

我已经能够在 Xcode 6.4、使用机器人的 Server 4.1 和 Deliver 中设置持续集成解决方案。 (通过快车道)。升级到 Xcode 7 beta-3 后,我的机器人停止工作。

以下是我为 Xcode 6.4 所做的工作的简要概述:

  • 在机器人设置中选择“执行存档操作”
  • 从帖子触发:回声gem install --user-install deliver #运行安装 Gem
  • 从帖子触发:回声export PATH=$PATH:/var/_xcsbuildd/.gem/ruby/2.0.0/bin #运行以将 gem 添加到路径
  • 从帖子触发器:
    echo `DELIVER_PASSWORD="Password"
    /var/_xcsbuildd/.gem/ruby/2.0.0/bin/deliver testflight
    "${IPA_PATH}" -a 101233338 -u example@gmail.com --beta`

  • 一切都很好,每次集成后都会将构建上传到 itunesconnect。

    当我升级到 Xcode 7 时,我无法再使用 Deliver 上传到 itunesconnect。这是我的 Xcode 7 工作流程:
  • 测试通过
  • 存档成功
  • 发布触发器 1:成功构建 IPA(使用来自 this apple developer post 的建议)
     xcrun xcodebuild -exportArchive -archivePath 
    $XCS_ARCHIVE -exportPath $XCS_ARCHIVE
    -exportOptionsPlist /Library/Developer/XcodeServer/ExportOptions.plist
    -IDEPostProgressNotifications=YES
    -DVTAllowServerCertificates=YES
    -DVTSigningCertificateSourceLogLevel=3
    -DVTSigningCertificateManagerLogLevel=3
    -DTDKProvisioningProfileExtraSearchPaths=/Library/Developer/XcodeServer/ProvisioningProfiles
  • 尝试使用 Deliver 上传 IPA:
    echo `DELIVER_PASSWORD="Password"
    /var/_xcsbuildd/.gem/ruby/2.0.0/bin/deliver testflight
    "${IPA_PATH}" -a 101233338 -u example@gmail.com --beta`

  • 结果:
    构建服务问题:终止 xcodebuild,因为它太长时间没有产生输出。
    enter image description here
    注意:我可以获取机器人生成的 IPA 并通过终端上传它们。

    更新

    Xcode 没有打印出所有的日志,当我将输出重定向到一个文件时,看起来 Deliver 运行得很好
    ESC[37m[12:03:08]: ESC[0mESC[32mReady to upload new build to TestFlight (CiTest - 1018099468)ESC[0m
    ESC[37m[12:03:08]: ESC[0mUploading ipa file to iTunesConnect
    ESC[37m[12:03:08]: ESC[0mGoing to upload updated app to iTunesConnect
    ESC[37m[12:03:08]: ESC[0mESC[32mThis might take a few minutes, please don't interrupt the scriptESC[0m
    ESC[37m[12:03:08]: ESC[0mESC[32mWaiting for iTunes Connect transporter to be finished.ESC[0m
    ESC[37m[12:03:08]: ESC[0mESC[32miTunes Transporter progress... this might take a few minutes...ESC[0m

    只是 xcode 服务器在交付完成之前转义了该过程。

    跟进:有没有其他人遇到过这个或类似的问题?

    最佳答案

    我从苹果开发者论坛找到了这个帖子:
    https://forums.developer.apple.com/thread/9812

    万一打不开。有人说

    It seems that Xcode bot trigger scripts have a 10 second timeout - which is far too short to do any useful work. I can replicate this by adding a "Before Integration" trigger containing nothing but a call to "sleep 10". When the integration runs, it fails with the error "terminated xcodebuild since it produced no output for too long".



    可能的临时解决方案可能是

    make sure you produce some output when your longer running task is running? Not a fix, but might be a workaround.



    人们回答说

    I have done this and the error no longer occurs. I was using a bash script and needed to echo the output from time to time to workaround this issue.



    希望这会暂时有所帮助。

    关于Xcode 7 + Bots + FaSTLane : How to automatically deploy an app to itunes connect using FaSTLane's Deliver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31377758/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com