2014-12-04 22 views
27

Mi sono imbattuto in un problema su un progetto su cui ho bisogno di lavorare. Il progetto utilizza Cocoapods per la gestione delle sue librerie. Corro come al solito pod install ma xcode mi dà errori. Ho Undefined symbols for architecture armv7 come si può vedere nell'immagine qui sotto:Simboli indefiniti per l'architettura armv7 per le librerie Cocoapods

enter image description here

Tutto questo i simboli sono le librerie che uso con il mio progetto. Per esempio. AFNetworking, RNBlurModalView. Ho cercato di rimuovere tutti i file relativi a Cocoapods dal progetto e di eseguire pod install di nuovo, ma ancora non ha risolto il problema.

Quello che ho fatto finora:

  • Pulire il progetto e costruire di nuovo.
  • Rimozione di file relativi a Cocoapods e in esecuzione pod install di nuovo.
  • Si è tentato di aggiungere la classe in Compile Sources in Project Target, ma non è possibile. La classe è nell'area di lavoro dei pod.
  • Imposta solo architettura attiva da YES a NO.

Provo anche le soluzioni dallo same problem, ma nessuna funziona per me.

Se aiuta, sto usando xCode6 e Cocoapods 0.34.4. Le architetture valide per il progetto sono armv7 and armv7s.

Aggiornamento: Quando si esegue pod install --verbose

Integrating client project 

Integrating target `Pods` (`AIYOCore.xcodeproj` project) 

[!] The use of implicit sources has been deprecated. To continue using all of the sources currently on your machine, add the following to the top of your Podfile: 

    source 'https://github.com/CocoaPods/Specs.git' 


[!] The `Project [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation 
    - Use the `$(inherited)` flag, or 
    - Remove the build settings from the target. 

[!] The `Project [Release]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.release.xcconfig'. This can lead to problems with the CocoaPods installation 
    - Use the `$(inherited)` flag, or 
    - Remove the build settings from the target. 

Grazie in anticipo.

risposta

70

Sembra che tu non abbia $(inherited) in ALTRI LINKER BANDIERE. Invia l'output di pod install

+0

Ciao, ho appena aggiornato la mia domanda con parti di log che credo sia rilevante. La pensi? –

+0

come ho scritto prima, aggiungi $ (ereditato) in OTHER_LDFLAGS per tutti i target come prima riga –

+0

grazie a @Andrei. Questo ha risolto il problema. –

1

Potrebbe essere sufficiente pulire la cartella di compilazione (⌥⇧⌘K).

enter image description here

Problemi correlati