Xcode - My app crash and the error is "Invalid pointer dequeued from free list *** set a breakpoint in malloc_error_break to debug"

15,714

Solution 1

I've fixed this error with Xcode 8 on iOS 8.3. I've just changed Deployment Target from 8.3 to 8.0. If the error appears now after migration to Xcode 8 and your device works under control iOS 8 it may be temporary decision.

UPD: Xcode 8.1 beta is fixed this error.

Solution 2

Just fixed this same issue with Xcode 8. Preparing an iOS10 compatible build, updated to recommended Swift Migration 2.3, runs perfectly on iOS9 and iOS10 but crashes on iOS8.4. I reverted the changes in the code and the Main.storyboard and built the same content on the iOS8 with Xcode 7.3 fixed my issues.

Share:
15,714

Related videos on Youtube

Nijat2018
Author by

Nijat2018

Updated on August 02, 2022

Comments

  • Nijat2018
    Nijat2018 almost 2 years

    My app runs perfect on simulator. But when I run it on device the app crash and display error :

    "malloc: * error for object 0x17415d0c0: Invalid pointer dequeued from free list * set a breakpoint in malloc_error_break to debug";

    I searched and set a breakpoint in malloc_error_break to debug, but still cannot find the problem. I tried to changed the scheme of project, enabled Zombie Object, but can not find the answer.

    I also try to use instrument, but I am not good at it.

  • Nikolay Suvandzhiev
    Nikolay Suvandzhiev almost 8 years
    This is it! Lowering the deployment target to iOS 8.2 also works. Here is more related info: stackoverflow.com/questions/39735353/…
  • Nathan H
    Nathan H about 7 years
    My deployment target is 9.3 ... is that still relevant?
  • Andy Sander
    Andy Sander about 7 years
    @NathanH, for Deployment Target 9.3 and later it's not relevant. Also as and with Xcode 8.1+, for example Xcode 8.3.3.