title: fastlane.swift cannot find 'ENV' in scope
body: <p>I am new to fastlane, trying to read environment variable in <code>fastfile.swift</code> which has following</p>
  <pre><code>import Foundation
  
  class Fastfile: LaneFile {
      .
      .
      .
  
      func createRCBuildLane() {
          beforeAll()
          ensureGitBranch(branch: &quot;qa&quot;)
          let commitMessage = &quot;RC_Build_Version_&quot; + getVersionNumber(target: &quot;Example App&quot;) + &quot;_Build_&quot; + getBuildNumber()
          addGitTag(buildNumber: .userDefined(commitMessage), force: true)
          pushGitTags(force: true)
          createPullRequest(apiToken: &quot;*****&quot;, repo: &quot;Example/iOS_ble_client&quot;, title: commitMessage, base: &quot;master&quot;)
          slackMessage(withMessage: &quot;Example App RC Release:\n&quot; + commitMessage)
      }
  
      .
      .
      .
  
      func beforeAll() {
  //        updateFastlane()
      }
  
      func matchDevelopmentCertificateLane() {
          match(type: &quot;development&quot;)
      }
  
      func matchAdHocCertificateLane() {
          match(type: &quot;adhoc&quot;)
      }
  
      func matchDistributionCertificateLane() {
          match()
      }
  
      func slackMessage(withMessage message: String) {
          slack(
              message: .userDefined(message),
              channel: &quot;#example-ios&quot;,
              slackUrl: &quot;https://hooks.slack.com/services/###/###/###&quot;,
              payload: [&quot;Version:&quot;: getVersionNumber(target: &quot;Example App&quot;), &quot;Build:&quot;: getBuildNumber()],
              success: true
          )
      }
  }
  </code></pre>
  <p>I want to pass <code>apiToken</code> via ENV and not to hardcode it. can anyone point me to right direction here ?</p>
  <p>I tried</p>
  <pre><code>    func createRCBuildLane() {
          beforeAll()
          ensureGitBranch(branch: &quot;qa&quot;)
          let commitMessage = &quot;RC_Build_Version_&quot; + getVersionNumber(target: &quot;Example App&quot;) + &quot;_Build_&quot; + getBuildNumber()
          addGitTag(buildNumber: .userDefined(commitMessage), force: true)
          pushGitTags(force: true)
          createPullRequest(apiToken: ENV[&quot;API_TOKEN&quot;], repo: &quot;Example/iOS_ble_client&quot;, title: commitMessage, base: &quot;master&quot;)
          slackMessage(withMessage: &quot;Example App RC Release:\n&quot; + commitMessage)
      }
  </code></pre>
  <p>but getting this error <code>Fastfile.swift:37:37: cannot find 'ENV' in scope</code></p>