在Xcode的項(xiàng)目Edit Schemes里,切換到Diagnostics標(biāo)簽橄唬,打開Address Sanitizer 和Detect use of stack after return 選項(xiàng)法竞,如果發(fā)生內(nèi)存地址崩潰的bug耙厚,即可抓到强挫。
image.png
在Xcode的項(xiàng)目Edit Schemes里,切換到Diagnostics標(biāo)簽橄唬,打開Address Sanitizer 和Detect use of stack after return 選項(xiàng)法竞,如果發(fā)生內(nèi)存地址崩潰的bug耙厚,即可抓到强挫。