anchor.diff:  
   Before you start, make sure XCTest runs with access to [CI environment variables](/docs/test-analytics/ci-environments).
   
  -1. [Create a test suite](https://buildkite.com/docs/test-analytics), and copy the _Buildkite Test Analytics API token_ you see
  +1. [Create a test suite](https://buildkite.com/docs/test-analytics) and copy the test suite API token.
   
  -1. Add the `test-collector-swift` repository to the `Package.swift` manifest, and add `BuildkiteTestCollector` to any test target requiring analytics:
  +1. [Securely](/docs/pipelines/secrets) set the `BUILDKITE_ANALYTICS_TOKEN` secret on your CI to the API token from the previous step.
  +
  +   If you're testing an Xcode project, note that Xcode doesn't automatically pass environment variables to the test runner, so you need to add them manually.
  +   In your test scheme or test plan, go to the _Environment Variables_ section and add the following key-value pair:
  +
  +    * key: `BUILDKITE_ANALYTICS_TOKEN`
  +    * value: the API token from the previous step
  +
  +1. In the `Package.swift` file, add `https://github.com/buildkite/test-collector-swift` to the dependencies and add `BuildkiteTestCollector` to any test target requiring analytics:
   
       ```swift
       let package = Package(
  
positive.code:     git push origin add-buildkite-test-analytics
      ```
  
  ### Debugging
  
  To enable debugging output, set the `BUILDKITE_ANALYTICS_DEBUG_ENABLED` environment variable to `true`.
  
negative.code:     )
      ```
  
  1. Commit and push your changes:
  
      ```bash
      git checkout -b add-buildkite-test-analytics
  