App crashes when runs on ios (exc_bad_access)

Hi!

When I run my game from xcode to iphone 4 or iphone 4s I get this
Thread 1: EXC_BAD_ACCESS(code=1, address=0xa001800c) at main.mm

I’m searching the web many hours now and I’ve found no solution.
Does anyone know what am I doing wrong?

I’m using unity 4.7, xcode 7.2
plugins for unity (Google Mobile Ads SDK and Facebook)

Have you solved the problem ? If so, could you please share the answer?

This doesn’t say anything, only that your has crashed. In Xcode you’ve got more information, search.

I was using facebook SDK, there was a problem I think related to this or the version of unity.
I was exporting the xcode project from a windows machine with unity 4.7.
The problem solved when I used a mac and unity 5.3 to export the xcode project.
I was using unity 4.7 because unity 5.x is not good for low spec devices, on iphone4, fps are around 10-12 while on iphone4s are about 30, but with unity 4.7 even from a mac, the problem existed.
It’s better to export the xcode project from a mac than a windows machine.