标签: ios swift assert
如何在调试时轻松地在Swift代码中禁用assert?我尝试了几种方法:
assert
Disable Safety Checks,NS_BLOCK_ASSERTIONS,Enable Foundation Assertions,-assert-config Release实际上并没有帮助。
Disable Safety Checks
NS_BLOCK_ASSERTIONS
Enable Foundation Assertions
-assert-config Release