【问题标题】:Fastlane Appfile in GIT? How to retrieve current apple_id?GIT中的Fastlane Appfile?如何检索当前的apple_id?
【发布时间】:2016-07-07 21:47:13
【问题描述】:

我为我的 XCode 项目的构建自动化设置了 Fastlane。至少 Fastfile(包含构建选项)应该在 GIT 中,但我也很乐意在 GIT 中拥有 Appfile(团队标识符)。主要问题: Appfile 应该包含我的苹果 ID。示例:

apple_id "myid@gmail.com" # Your Apple email address

# Default team ID
team_id "AUE7D4LRRX"

for_platform :ios do
 for_lane :production do
    team_id '-' #reset team id
  end
end

是否有可能从 apple/xcode 首选项中动态检索 apple id?在这个当前的解决方案中,我无法将此 Appfile 添加到 GIT,因为每个开发人员都会拥有自己的该文件版本......当然还有不同的苹果 id!

谢谢和最好的问候!

【问题讨论】:

  • 也许把它从环境变量中拉出来?

标签: ios xcode git crashlytics fastlane


【解决方案1】:

您可以使用环境变量轻松设置 Apple id

应用文件

apple_id ENV["APPLE_ID"]

...

然后使用

运行 fastlane
APPLE_ID="email@email.com" fastlane beta

或类似

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-10-31
    • 1970-01-01
    • 1970-01-01
    • 2012-02-20
    • 1970-01-01
    • 2011-06-16
    相关资源
    最近更新 更多