fastlane 支持IOS双重认证(不中途打断上传appstore流程)

主要思想就是创建两个环境变量
1.登录网址获取app专用密码appleid.apple.com/account/manage

fastlane 支持IOS双重认证(不中途打断上传appstore流程)_第1张图片
image.png

设置如下环境变量

export FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD=czog-npuy-ayrx-odga

2.获取session (避免输入6位数字验证码),【注意:每个月session可能会变要重新获取】
终端输入 (邮箱是你的appleId)

fastlane spaceauth -u [email protected]

设置如下环境变量

export FASTLANE_SESSION='---\n- !ruby/object:HTTP::Cookie\n  name: myacinfo\n  value: DAWTKNV2ae1df26f7bfd1a3045d0bde3a4bc13927383c9379ca0f317dae727d5554fc8ae84fedd25014b207b71880209a07f89f8ab0c6aa84de4d36619b94a96ea7a1eeade9a61fe24eee710578be013e4acfca844bc471976e9d2b90f72a649e445d2c84c74a48dd070d6e19bbad65c444573d1ef6e52ca15b8ced43145c3858eba29104a916e8958524f58f3222a6532147abe3f7ed78408d41ceb2c47228d5ad74f3724cbb8b88225473914ee778888dd9b1a6a2e9e00eda33a9599d6111eccc55c06cb889eb31bdaa41ff4200a7861abc631c71a44985b1e8ec407334b0ac8907431373628e794540870c2945e63173ad70abcfdde524294f84ea8e71f4eed1f83d31643865393239346536363231313661636231306437633462373636616135366434616665333065MVRYV2\n  domain: [apple.com](http://apple.com)\n  for_domain: true\n  path: "/"\n  secure: true\n  httponly: true\n  expires: \n  max_age: \n  created_at: 2019-03-12 15:11:05.007570000 +08:00\n  accessed_at: 2019-03-12 15:39:55.704789000 +08:00\n- !ruby/object:HTTP::Cookie\n  name: dqsid\n  value: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJBbUVfelc0d2hwRlY3eElFS2Vla0J3In0.CCeSNC4PcwTsnoU3cq-Hb5AxwJDv1GGz9qEXOREbA1k\n  domain: [olympus.itunes.apple.com](http://olympus.itunes.apple.com)\n  for_domain: false\n  path: "/"\n  secure: true\n  httponly: true\n  expires: \n  max_age: 1800\n  created_at: &1 2019-03-12 15:39:56.916465000 +08:00\n  accessed_at: *1\n'

3.设置 上面两个全局变量


fastlane 支持IOS双重认证(不中途打断上传appstore流程)_第2张图片
image.png

别忘了重启
source ~/.profile

4.之后就可以像以前一样 上传(fastlane qqhl_release),中间不会有暂停然你输入验证码和专用密码流程.


fastlane 支持IOS双重认证(不中途打断上传appstore流程)_第3张图片
image.png

参考:https://github.com/fastlane/fastlane/tree/master/spaceship

如果您发现本文对你有所帮助,如果您认为其他人也可能受益,请把它分享出去。

你可能感兴趣的:(fastlane 支持IOS双重认证(不中途打断上传appstore流程))