Xcode link error: file is too small for armv7 architecture

I get this strange linker error:

ld: in / Users /.../ test project / iSMP.framework / iSMP, file is too small for armv7 architecture

collect2: ld returned 1 exit command The command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1

Xcode vers: 4.0.2

If I compile for the simulator, I get

... file is too small for i386 architecture

Google doesn't help at all.

I already tried:

  • add framework
  • clear search path
  • move the frame to another directory and re-add.

Update: output from lipo -info libiSMP-2.1.a

Architecture in bold file: libiSMP-2.1.a: armv6 armv7 i386

so, this is not due to an architecture mismatch;

Thanks in advance!

+5
1

( ):

, OS/X Windows. iSMP : iSMP.framework/iSMP ( , libiSMP-2.1.a)/ /libiSMP -2.1.a

, Mac iSMP.framework. 'ls -l iSMP' , iSMP 'l' . , iSMP . "ln -s libiSMP.2.1.a iSMP". .

.

- iSMP libiSMP-xx.a iSMP.

TL/DR: , OS/X Windows. .

+6

All Articles