报错信息
malloc: allocate_pages(): virtual memory exhausted!
LoanPay(56982,0x16af8b000) malloc: expandUniquingTable(): VMCopyFailed
之前我在edit shceme中打开NSZombies
从Stack Overflow 上找到答案是说 NSZombies会引起应该释放的对象实际上没有释放,然后你正在做大量开辟内存的事情,引起virtual memory exhausted闪退,我关闭NSZombies 之后virtual memory exhausted问题消失了
Stack Overflow 原文地址:https://stackoverflow.com/questions/13999005/guardmalloc-results-in-virtual-memory-exhausted