explaingit

alamofire/rdar-urlsessiontaskmetrics

Analysis updated 2026-07-07 · repo last pushed 2017-12-15

5SwiftAudience · developerComplexity · 1/5DormantSetup · easy

TLDR

A sample project by the Alamofire team demonstrating a bug where URLSessionTaskMetrics fails to compile on watchOS, filed as a bug report for Apple engineers.

Mindmap

mindmap
  root((repo))
    What it does
      Demonstrates watchOS bug
      Shows linker error
      Provides workaround
    Tech stack
      Swift
      watchOS
      URLSessionTaskMetrics
    Use cases
      Bug report for Apple
      Community issue tracking
      Reproduce linker error
    Audience
      Apple engineers
      Alamofire developers
      iOS community
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reproduce the watchOS URLSessionTaskMetrics linker error to verify the bug.

USE CASE 2

Test the global property workaround to confirm it resolves the build failure.

USE CASE 3

Track the unresolved Apple Radar bug report within the developer community.

What is it built with?

SwiftwatchOS

How does it compare?

alamofire/rdar-urlsessiontaskmetricsasaptf/swift-language-modelsaydahnizzy/calendar-drag-interaction
Stars564
LanguageSwiftSwiftSwift
Last pushed2017-12-15
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity1/54/52/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires Xcode and watchOS 3.0+ simulator or Apple Watch device to reproduce the linker error.

No license information is provided in this repository, it is a sample bug-report project not intended for direct reuse.

In plain English

This repository is a small sample project created by the team behind Alamofire, a popular Swift library for handling web requests. Its purpose is to demonstrate a specific bug: when building an app for the Apple Watch using watchOS 3.0 or later, a feature called URLSessionTaskMetrics fails to compile correctly. URLSessionTaskMetrics is essentially a tool that provides detailed timing information about web requests, like how long a download took. The problem is a "linker error," which is a technical roadblock that happens when a project is being packaged and prepared to run. In this case, simply trying to use these timing measurement tools on the Apple Watch causes the build process to completely fail. The README notes that the exact root cause is unknown, but the team discovered a workaround: by simply defining a global property with an availability check (a way to tell the app to only use certain features on specific operating system versions), the build suddenly succeeds. The primary audience for this project is Apple's own engineering team. When developers find bugs in Apple's software or tools, they submit them through a system called Radar (hence the "rdar" in the project name). This sample app serves as a concrete, easily testable example that Apple engineers can run to see the bug in action. It was filed with Apple in December 2017, and according to the project notes, the issue remains unresolved. For non-developers, this repository isn't something you would use directly in your own work. It is essentially a bug report published openly so that the broader developer community can track the issue. It demonstrates a common practice in software development where teams isolate a tricky problem into a small, shareable project to help platform owners identify and fix the underlying flaw.

Copy-paste prompts

Prompt 1
Create a minimal Swift watchOS project that demonstrates a linker error when using URLSessionTaskMetrics, based on the approach in the alamofire/rdar-urlsessiontaskmetrics repo.
Prompt 2
Explain the global property workaround used in the rdar-urlsessiontaskmetrics sample and how it resolves the watchOS linker error.
Prompt 3
Build a Swift test case that shows URLSessionTaskMetrics failing to compile on watchOS 3.0 and document the steps to reproduce.

Frequently asked questions

What is rdar-urlsessiontaskmetrics?

A sample project by the Alamofire team demonstrating a bug where URLSessionTaskMetrics fails to compile on watchOS, filed as a bug report for Apple engineers.

What language is rdar-urlsessiontaskmetrics written in?

Mainly Swift. The stack also includes Swift, watchOS.

Is rdar-urlsessiontaskmetrics actively maintained?

Dormant — no commits in 2+ years (last push 2017-12-15).

What license does rdar-urlsessiontaskmetrics use?

No license information is provided in this repository, it is a sample bug-report project not intended for direct reuse.

How hard is rdar-urlsessiontaskmetrics to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is rdar-urlsessiontaskmetrics for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.