Swift Assertions behaviour in production applications
问题 I'm reading the Assertions section in the Swift e-book and it looks like assertions work very similarly to their Objective-C counterparts. However, nowhere in the docs can I find anything about runtime behaviour while running as a production app. Objective-C's NSAssert promises never to terminate a production application as a result of an assertion failure. Is it the same case in Swift? 回答1: Based upon the language Apple use in their documentation, I'd say assertions are ignored in a