GIT 中的 Fastlane Appfile?如何检索当前 apple_id?
Fastlane Appfile in GIT? How to retrieve current apple_id?
我为 XCode 项目的构建自动化设置了 Fastlane。至少 Fastfile(包含构建选项)应该在 GIT 中,但我也很高兴 Appfile(团队标识符)也在 GIT 中。主要问题:Appfile 应该包含我的 apple 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,因为每个开发人员都会拥有该文件的自己的版本……当然还有不同的 apple id!
谢谢并致以最诚挚的问候!
您可以使用环境变量轻松设置 apple id
应用文件
apple_id ENV["APPLE_ID"]
...
然后 运行 快速通道使用
APPLE_ID="email@email.com" fastlane beta
或类似
我为 XCode 项目的构建自动化设置了 Fastlane。至少 Fastfile(包含构建选项)应该在 GIT 中,但我也很高兴 Appfile(团队标识符)也在 GIT 中。主要问题:Appfile 应该包含我的 apple 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,因为每个开发人员都会拥有该文件的自己的版本……当然还有不同的 apple id!
谢谢并致以最诚挚的问候!
您可以使用环境变量轻松设置 apple id
应用文件
apple_id ENV["APPLE_ID"]
...
然后 运行 快速通道使用
APPLE_ID="email@email.com" fastlane beta
或类似