GIT中的Fastlane Appfile?如何获取当前的apple_id? [英] Fastlane Appfile in GIT? How to retrieve current apple_id?
问题描述
我为我的XCode项目的构建自动化设置了Fastlane。至少Fastfile(包含构建选项)应该在GIT中,但是我也很高兴在GIT中也有Appfile(团队标识符)。主要问题:Appfile应该包含我的苹果ID。示例:
I setup Fastlane for the build automation for my XCode project. At least the Fastfile (containing the build options) should be in GIT, but I would also be happy to have the Appfile (Team Identifiers) also in GIT. The main issue: The Appfile should contain the apple id of me. Sample:
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也不同!
Is it somehow possible to dynamically retrieve the apple id from the apple/xcode preferences? In this current solution I would not be able to add this Appfile to GIT since every developer would have it's own version of that file... with a different apple id of course!
感谢和问候!
推荐答案
您可以使用环境变量轻松设置apple id
You can easily set the apple id using an environment variable
Appfile
apple_id ENV["APPLE_ID"]
...
,然后使用
APPLE_ID="email@email.com" fastlane beta
或类似的
这篇关于GIT中的Fastlane Appfile?如何获取当前的apple_id?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!