简体   繁体   English

来自 CircleCI 的 Fastlane Testflight

[英]Fastlane Testflight from CircleCI

I'm trying to upload a Testflight build whenever tests pass on my develop branch using Fastlane and CircleCI.每当使用 Fastlane 和 CircleCI 在我的开发分支上通过测试时,我都会尝试上传 Testflight 构建。

Everything goes smoothly until it gets here:一切顺利,直到到达这里:

Login to App Store Connect (*******************)
The login credentials for '*******************' seem to be wrong
The password was taken from the environment variable
Please make sure it is correct

The password I believe comes from the FASTLANE_PASSWORD environment variable that I've entered in Circle's project settings, and the password is an app specific password I created for this purpose.我相信密码来自我在 Circle 的项目设置中输入的 FASTLANE_PASSWORD 环境变量,密码是我为此目的创建的应用程序特定密码。

Running it locally with an app specific password stored in FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD works just fine.使用存储在 FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD 中的应用程序特定密码在本地运行它工作得很好。 Setting that as an env var on Circle has no effect, only FASTLANE_PASSWORD seems to be used.将其设置为 Circle 上的 env var 无效,似乎只使用了 FASTLANE_PASSWORD。

I tried setting upload_to_testflight(skip_waiting_for_build_processing: true) but no change.我尝试设置upload_to_testflight(skip_waiting_for_build_processing: true)但没有改变。 Trying to set apple_id as well results in an error (apple id shouldn't be defined here).尝试设置apple_id也会导致错误(不应在此处定义 apple id)。

It reports prior to trying to login that it successfully builds and signs the IPA file.它在尝试登录之前报告它已成功构建并签署 IPA 文件。 Here's the Fastfile lane:这是 Fastfile 通道:

desc "Push a new beta build to TestFlight"
lane :beta do
  increment_build_number(xcodeproj: "[project].xcodeproj")
  match(type: "appstore")
  build_app(workspace: "[project].xcworkspace", scheme: "[scheme]")
  upload_to_testflight(skip_waiting_for_build_processing: true)
end

Is there a step I'm missing?有没有我遗漏的步骤? All the other questions about this seem to be outdated.关于此的所有其他问题似乎已经过时。

It looks like the answer is that I also needed to provide a FASTLANE_SESSION as well, which I did not do originally.看起来答案是我还需要提供 FASTLANE_SESSION ,而我最初没有这样做。 Subject to some hiccups courtesy of Apple, it's now working reasonably well.由于苹果公司的一些小问题,它现在运行得相当好。

Please make sure that your .env file password IS NOT in quotes.请确保您的 .env 文件密码不在引号中。

Make sure it is like this:确保它是这样的:

apple_id_password=pa!@ssword

Not like this:不是这样的:

apple_id_password="pa!@ssword"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM