Fastlane Appfile in GIT? How to retrieve current apple_id?

情到浓时终转凉″ 提交于 2019-12-10 17:52:14

问题


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

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!

Thanks and best regards!


回答1:


You can easily set the apple id using an environment variable

Appfile

apple_id ENV["APPLE_ID"]

...

and then run fastlane using

APPLE_ID="email@email.com" fastlane beta

or similar



来源:https://stackoverflow.com/questions/38255821/fastlane-appfile-in-git-how-to-retrieve-current-apple-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!