SyntaxFix
Write A Post
Hire A Developer
Questions
With Swift 4.2 (Xcode 10), we can do this
#if targetEnvironment(simulator) //simulator code #else #warning("Not compiling for simulator") #endif