2013-04-19 6 views
9

Dopo aver installato il nuovo sdk ho ​​pulito il progetto e lo ho creato. Non riesce con questo messaggio:Aggiornamento da Facebook iOS SDK 3.2.1 a 3.5 mi ha dato un errore con FBCrypto

Undefined symbols for architecture i386: "_SecRandomCopyBytes", referenced from: +[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o) -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o) "_kSecRandomDefault", referenced from: +[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o) -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Stesso problema qualcuno? Soluzioni?

risposta

16

Bene, è necessario includere il framework di sicurezza e il libsqlite3.dylib come indicato here. Funziona ora.

modificare

trovato anche this ora ...

+0

soluzione perfetta –

9

Saltando su questo, im in esecuzione lo stesso problema, ho visto che la FBSDK ha bisogno della sicurezza, AdSupport, ecc Ecco le mie librerie collegate :

enter image description here

il mio errore è lo stesso:

Undefined symbols for architecture i386: 
    "_SecRandomCopyBytes", referenced from: 
     +[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o) 
     -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o) 
    "_kSecRandomDefault", referenced from: 
     +[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o) 
     -[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o) 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

Tutte le altre dipendenze quadro sono buone per andare per quanto posso dire. A Vlean-> Build non ha risolto il problema. Grazie.

Modifica: Capito. Avevo bisogno di aggiungere Aggiungi file al progetto e controllare il pulsante Aggiungi al target .. fondamentalmente XCode automagicka

+0

Grazie, mi ha aiutato molto ... –

Problemi correlati