Xcode - Improved Workflow with Compiler Directives

Go to https://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: https://seanallen.teachable.com/?vide... My Source Code: https://seanallen.teachable.com/p/sou... X (Twitter): Sean Allen -   / seanallen_dev   Hired.com: https://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: https://courses.avanderlee.com/p/from... 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. https://gumroad.com/a/692357651/ymbbmh Mark Moeyken’s SwiftUI Books: https://www.bigmountainstudio.com/a/f... Paul Hudson's Hacking With Swift: https://gumroad.com/a/762098803 RocketSim - Enhance Your Xcode Simulator: https://gumroad.com/a/51797971/ftvbh Objc.io Books (Thinking in SwiftUI & Advanced Swift): https://gumroad.com/a/656585843 Timestamps: 0:00 - Platform specific code 3:42 - DEBUG mode & Simulator 5:38 - #warning & #error #swift #softwaredeveloper #iosdeveloper