首页 > 解决方案 > fastlane 以错误完成未经授权的访问

问题描述

在通过 fastlane 将我的应用程序发送到 testflight 时,我遇到了这个错误:

越权存取

**FastLanelane summary**

| 1    | opt_out_usage      | 0           |

| 2    | default_platform   | 0           |

| 3    | update_fastlane    | 0           |

| 4    | clear_derived_data | 0           |

| 5    | cocoapods          | 3           |

| 6    | gym                | 87          |

|    | pilot              | 3           |

错误 [2019-03-01 15:51:34.03]:fastlane 完成错误

在fastlane/fastlane上寻找相关的GitHub问题... 搜索查询:请求无法完成,因为:未经授权的访问

这是我的 Fasfile:

platform :ios do
  desc "Push a new beta build to TestFlight"
  lane :beta do

    update_fastlane
    clear_derived_data
    cocoapods(clean: true, use_bundle_exec: false)

    # Build
    gym(clean: true, suppress_xcode_output: true, workspace: "com.xxxx.xcworkspace", scheme: "com.xxxx")

    # Submit to iTunes Connect (upload_to_testflight)
    pilot(skip_submission: true, skip_waiting_for_build_processing: true)

    upload_symbols_to_crashlytics # Upload dSYM symbolication files to Crashlytics
  end
end

标签: ioscontinuous-integrationfastlane

解决方案


常见案例

确保您的角色权限至少应为App Manager

在我的情况下

我注意到我输入了错误的双因素身份验证(6 位代码)代码

请记住,从2019 年 2 月 27 日开始, Apple 要求所有开发人员为其 Apple ID 启用双重身份验证,并且在该日期之后登录开发人员帐户需要双重身份验证。意味着它对于我们的快车道流程也是必要的。


推荐阅读