2011-12-07 13 views
5

ottengo questo strano errore di linker:Xcode: il file troppo piccolo per l'architettura ARMv7

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

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

vers Xcode 4.0.2:

Se compilo per simulatore, ho

... file too small for architecture i386

google non aiuta affatto ..

Ho già provato a:

  • aggiungere nuovamente il quadro
  • ricerca chiaro percorso
  • quadro passaggio a una directory diversa e aggiungere nuovamente.

Aggiornamento: uscita dal lipo -info libiSMP-2.1.a

Architectures in the fat file: libiSMP-2.1.a are: armv6 armv7 i386

quindi, non è dall'architettura disallineamento;

Grazie in anticipo!

+3

Clean accumulo risolto questo per me ... – Ondrej

+0

questi passaggi per me hanno risolto il problema: 1. Chiudere Xcode 2. Pulire DerivedData cartella 3. Ricostruire – cndv

risposta

6

ho ricevuto la soluzione da parte del team di supporto di questo quadro (grazie ragazzi):

Symbolic links are turned into flat files when they are moved from OS/X to Windows. The iSMP framework has the following structure: iSMP.framework/iSMP (symbolic link pointing to libiSMP-2.1.a)/ Headers/libiSMP-2.1.a

To fix the issue, you might open the terminal application on Mac and move to the iSMP.framework directory. When you type 'ls -l iSMP' command you will notice that the iSMP file has no longer the 'l' attribute. You should then recreate the symbolic link by deleting the iSMP file. type then 'ln -s libiSMP.2.1.a iSMP' .This will create the link.

You may now rebuild the project.

Another solution to fix the problem is to delete the iSMP file and rename libiSMP-xx.a to iSMP.

TL/DR: I link simbolici sono trasformati in file flat quando vengono spostati da OS/X per Finestre. Hai bisogno di rinnovarli.

+1

Questo ha aiutato il mio problema. Ho ricreato il link simbolico e ha funzionato. – nsantorello

+0

Ho avuto un problema simile con libjpeg.dylib, ho sostituito l'intero dylib stesso. – 2am

Problemi correlati