Uploaded November 2024 | Updated September 2026, 3 hours ago
Go to squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.
In this video I show you how to use compiler directives in Xcode. We discuss how to separate platform specific code, like iOS, macOS, visionOS, watchOS and tvOS. I also show you how to execute code while only in DEBUG mode or on the simulator. I also show you how to use #warning and #error to leave notes for yourself.
My iOS Dev Courses:
seanallen.teachable.com/?video=RIHcUD97JaA
My Source Code:
seanallen.teachable.com/p/source-code-youtube-videos?video=RIHcUD97JaA
X (Twitter):
Sean Allen - twitter.com/seanallen_dev
Hired.com:
hired.com/x/1n01g
Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
Antoine Van Der Lee - Going Indie Course:
courses.avanderlee.com/p/from-side-project-to-going-indie?affcode=2082304_o9res6rn
Helm (25% Discount) - The all-in-one macOS app that enhances App Store Connect, supercharging your app updates, localization, and ASO with AI-powered tools.
gumroad.com/a/692357651/ymbbmh
Mark Moeyken’s SwiftUI Books:
bigmountainstudio.com/a/fzc51
Paul Hudson's Hacking With Swift:
gumroad.com/a/762098803
RocketSim - Enhance Your Xcode Simulator:
gumroad.com/a/51797971/ftvbh
Objc.io Books (Thinking in SwiftUI & Advanced Swift):
gumroad.com/a/656585843
Timestamps:
0:00 - Platform specific code
3:42 - DEBUG mode & Simulator
5:38 - #warning & #error
#swift #softwaredeveloper #iosdeveloper
Go to squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.
In this video I show you how to use compiler directives in Xcode. We discuss how to separate platform specific code, like iOS, macOS, visionOS, watchOS and tvOS. I also show you how to execute code while only in DEBUG mode or on the simulator. I also show you how to use #warning and #error to leave notes for yourself.
My iOS Dev Courses:
seanallen.teachable.com/?video=RIHcUD97JaA
My Source Code:
seanallen.teachable.com/p/source-code-youtube-videos?video=RIHcUD97JaA
X (Twitter):
Sean Allen - twitter.com/seanallen_dev
Hired.com:
hired.com/x/1n01g
Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
Antoine Van Der Lee - Going Indie Course:
courses.avanderlee.com/p/from-side-project-to-going-indie?affcode=2082304_o9res6rn
Helm (25% Discount) - The all-in-one macOS app that enhances App Store Connect, supercharging your app updates, localization, and ASO with AI-powered tools.
gumroad.com/a/692357651/ymbbmh
Mark Moeyken’s SwiftUI Books:
bigmountainstudio.com/a/fzc51
Paul Hudson's Hacking With Swift:
gumroad.com/a/762098803
RocketSim - Enhance Your Xcode Simulator:
gumroad.com/a/51797971/ftvbh
Objc.io Books (Thinking in SwiftUI & Advanced Swift):
gumroad.com/a/656585843
Timestamps:
0:00 - Platform specific code
3:42 - DEBUG mode & Simulator
5:38 - #warning & #error
#swift #softwaredeveloper #iosdeveloper










