Heap corruption detected on Xcode 10.2

Sarinthon Mangkorn-ngam
2 min readApr 19, 2019

--

Since I updated Xcode 10.2, I found an error message when run project on real device as shown below

Why? I don’t understand why it can’t run on a real device, even though the simulator is still working. From the screenshot above, I don’t understand the error, “malloc: *** set a breakpoint in malloc_error_break”, What set a breakpoint? Who set it?

After I research about “malloc”, I found a two steps solution as shown below

Step 1

Select your target and select “Edit Scheme” and then select “Run”

Step 2

Look at “Build Configuration” and change Debug to Release mode in order to run an application on a real device.

Congrats, you can run your application on real device

--

--

No responses yet