2

我正在尝试使用 bitrise 和 fastlane 将 ios 存档上传到 testflight,但是存档成功后我收到错误"Could not find transporter at Applications/Xcode-beta.app/Contents/Developer"并且工作流失败。

这是我的快车道文件

platform :ios do
  desc "Push a new beta build to TestFlight"
    lane :beta do
      increment_build_number(xcodeproj: "APPNAME.xcodeproj")
      match(type: "appstore")
      cocoapods
      build_app(workspace: "APPNAME.xcworkspace", scheme: "APPNAME")
      upload_to_testflight
      commit_version_bump(
        message: "Fastlane iOS: Released new build #{lane_context[SharedValues::BUILD_NUMBER]} [ci skip].",
        xcodeproj: "./APPNAME.xcodeproj",
        force: true
      )
      clean_build_artifacts
    end
end

4

2 回答 2

2

Xcode 11 不再包含 Transporter 应用程序。

https://developer.apple.com/videos/play/wwdc2019/301/

于 2019-06-23T12:19:51.587 回答
0

我第一次遇到这个错误,所以我从苹果帮助页面下载了 Transporter。但是,Transporter 2x 与 xcode 11 不兼容。您需要使用与 xcode 10x 捆绑的版本。

此 github 线程包含指向相应二进制文件的下载链接。

如果您已经在fastlane 期望的默认路径中 /usr/local/itms安装了错误版本的 Transporter,请使用环境变量FASTLANE_ITUNES_TRANSPORTER_PATH指定iTMSTransporter.cmd.

指定此路径解决了我的问题,我能够使用 xcode 11 发布到苹果商店。

于 2019-11-08T05:07:37.147 回答