I have an external static library (I have the source code as well) that uses 'fopen' to access files on the filesystem. The strange thing is that it always fails both on simulator and device when it tries to do so with EXE_BAD_ACCESS
inside fopen$UNIX2003
(not in fopen
, fopen
is not even in the call stack when the exception is thrown. I've tried to use fopen
directly myself with the same path/options and it works. So, first of all, is it possible that the library is somehow calling a different fopen
implementation? If so, why, and most important how can I make it call the 'right' one?
EDIT: Actually, the last function in the call stack before the exception is thrown is _interposition_vtable_unimplemented
, fopen$UNIX2003
precedes it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…