title: fastlane finished with errors Unauthorized Access
body: <p>While sending my application to the testflight via fastlane, I faced with this error: </p>
  
  <blockquote>
    <p>Unauthorized Access</p>
  </blockquote>
  
  <pre><code>**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           |
  </code></pre>
  
  <blockquote>
    <p>ERROR [2019-03-01 15:51:34.03]: <strong>fastlane finished with errors</strong></p>
    
    <p>Looking for related GitHub issues on fastlane/fastlane... Search
    query: The request could not be completed because:    Unauthorized
    Access</p>
  </blockquote>
  
  <p>Here is my Fasfile:</p>
  
  <pre><code>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
  </code></pre>