Recently I have updated to Xcode 5 and now my iOS app crashes on the following code:
float some_var_a = sinf(...);
float some_var_b = cosf(...);
Crash log says the following:
Dyld Error Message:
Symbol not found: ___sincosf_stret
Referenced from: /var/mobile/Applications/702C8CF3-BB96-41F0-9525-5D65B7A581F3/Magic Encyclopedia: Illusions HD.app/Magic Encyclopedia: Illusions HD
Expected in: /usr/lib/libSystem.B.dylib
Dyld Version: 199.6
As I understood the problem is in sin/cos optimization made by compiler. It tries to calculate both sin and cos values in one call of ___sincosf_stret function, but by some reason there is no such function in the libSystem.B.dylib.
Could anyone please help:
1) Why it occurs?
2) How to solve? Currently I am just avoiding call both sin and cos in one place, and it works. But it's a bad solution.