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.