iPhone - debugging “pointer being freed was not allocated” errors

后端 未结 4 2113
我寻月下人不归
我寻月下人不归 2020-12-09 21:45

When over freeing a pointer you may see an error such as

\"pointer being freed was not allocated\"

When debugging with the simulator, I add a build argument

4条回答
  •  感情败类
    2020-12-09 22:30

    You need to set the MallocStackLogging env variables on the target executable...

    To access these settings, select your executable from the Groups & Files pane in XCode, then Get Info.

    Go to the Arguments tab and add the following entries into the “Variables to be set in the environment” box:

提交回复
热议问题