Search Unity

Weird crashing with EXC_BAD_ACCESS when trying to use native code

Discussion in 'iOS and tvOS' started by shchvova, Aug 20, 2018.

  1. shchvova

    shchvova

    Joined:
    Mar 19, 2012
    Posts:
    9
    Hello! I'm trying to make amazing extension using native code, but I hit a roadblock. Most of my code works, but as soon as I'm trying to incorporate box2d everything starts to perform incredibly weird.
    First: I'm getting EXC_BAD_ACCESS on a constructor of a static vector


    If I comment it out, I'm getting similar error from absolutely random places.
    I tried adding "-mno-thumb" as per troubleshooting, but it doesn't seem to help.

    Any ideas?