Xcode - Malloc_Error in Release and Distribution configuration

后端 未结 2 1506
不思量自难忘°
不思量自难忘° 2021-01-28 05:26

I got this error only if I select Release or Distribution configuration on Device, on the Simulator it works well... please, where I mistake?

cc1obj(4113) malloc         


        
相关标签:
2条回答
  • 2021-01-28 06:18

    Probably because your simulator is able to allocate ~500Mb of memory while your iPhone is not able to do it. I think you should rethink what you are doing

    • do you really need so much memory?
    • isn't it just a calculating bug? (maybe a wrong sizeof or whatever)
    • in any case this is really too much data to be handled
    0 讨论(0)
  • 2021-01-28 06:26

    It looks like you're trying to allocate 429 MB. iPhones don't have that much RAM. I suggest you look at what you're allocating to see why it's so big.

    0 讨论(0)
提交回复
热议问题