A Sane Reference for TargetConditionals

I’ve spent the past couple days cleaning up some code to work on iOS, macOS, and watchOS. One thing I constantly struggle with is keeping the values I need from TargetConditionals.h in my head for when I want to #if branch a segment of Objective-C code for a specific platform.

So . . . I made a table.

Current as of: iOS 9.3, tvOS 9.2, watchOS 2.2, macOS 10.11

Macro💻 device📱 device📱 simulator⌚️ device⌚️ simulator📺 device📺 simulator
Hopefully someone else finds this useful.
Read more about. . .

By Justin Williams

This is a two sentence bio. There are many like it, but this one is mine.