8

I would like what #warning message does for build-time errors but for Xcode 8's new runtime errors. To be clear, I'm not interested in just printing a warning with NSLog or compile-time warnings.

kkarayannis
  • 190
  • 8
  • Possible duplicate of [Swift: #warning equivalent](http://stackoverflow.com/questions/24183812/swift-warning-equivalent) – FelixSFD Sep 23 '16 at 09:50
  • 4
    Not a duplicate, runtime != compiletime – fabb May 02 '17 at 19:39
  • It would be nice ... but the point of #warning messages is that they are compiler warnings, not run time warnings. You don't get debug build log messages while running, rather you only see debugger log messages. – Matt H Dec 19 '17 at 16:13
  • 3
    But Xcode does generate runtime warnings (they are purple instead of the yellow compile time warnings), for example when you try to modify a view from a background thread. – kkarayannis Dec 20 '17 at 16:29

0 Answers0