In Xcode 4.3.2, when creating an iPad application that includes libavutil.affmpeg from the distribution, it builds and works correctly, but when I try to run unit tests (Cmd-U), I get the following linker error:
ld: illegally moving text in cstring to /myPath/libavutil.a(imgutils.o) from _av_image_check_size in /myPath/libavutil.a(imgutils.o) for armv7 clang architecture: error: linker command failed with exit code 1 (use -v to see the call)
This is on the device (we cannot run it in the simulator at present, because we do not have complete binaries for all the libraries that we include).
Why will it work normally and start normally, but is not connected when performing unit tests?
source
share