2013-08-19 14 views
13

Ho provato a importare il framework parse nel mio progetto. Mi sono assicurato che fosse piaciuto con il mio progetto e non ho trovato nulla sul fatto che sia "arc sensitive" o meno. Il mio progetto è basato sull'arco.Errori di collegamento con Parse.framework iOS

Questo è l'errore che sto ricevendo:

Undefined symbols for architecture i386: 
    "_SCNetworkReachabilityCreateWithName", referenced from: 
     -[PFCommandCache init] in Parse(PFCommandCache.o) 
     +[PFInternalUtils(Reachability) isParseReachable] in Parse(PFInternalUtils.o) 
    "_SCNetworkReachabilityGetFlags", referenced from: 
     ___22-[PFCommandCache init]_block_invoke in Parse(PFCommandCache.o) 
     +[PFInternalUtils(Reachability) isParseReachable] in Parse(PFInternalUtils.o) 
    "_SCNetworkReachabilityScheduleWithRunLoop", referenced from: 
     -[PFCommandCache init] in Parse(PFCommandCache.o) 
    "_SCNetworkReachabilitySetCallback", referenced from: 
     -[PFCommandCache init] in Parse(PFCommandCache.o) 
    "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from: 
     -[PFCommandCache dealloc] in Parse(PFCommandCache.o) 
    "_SecItemAdd", referenced from: 
     +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o) 
    "_SecItemCopyMatching", referenced from: 
     +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o) 
    "_SecItemDelete", referenced from: 
     +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o) 
     +[PFInternalUtils deleteFromKeychain:] in Parse(PFInternalUtils.o) 
    "_UTTypeCopyPreferredTagWithClass", referenced from: 
     -[PFFile getMimeType] in Parse(PFFile.o) 
    "_UTTypeCreatePreferredIdentifierForTag", referenced from: 
     -[PFFile getMimeType] in Parse(PFFile.o) 
    "_kCFStreamPropertyFTPAttemptPersistentConnection", referenced from: 
     -[PFHTTPCommand scheduleInCurrentThread] in Parse(PFHTTPCommand.o) 
    "_kCFStreamPropertyHTTPAttemptPersistentConnection", referenced from: 
     -[PFHTTPCommand scheduleInCurrentThread] in Parse(PFHTTPCommand.o) 
    "_kSecAttrAccessible", referenced from: 
     +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) 
    "_kSecAttrAccessibleAfterFirstUnlock", referenced from: 
     +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) 
    "_kSecAttrAccount", referenced from: 
     +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) 
    "_kSecAttrService", referenced from: 
     +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) 
    "_kSecClass", referenced from: 
     +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) 
    "_kSecClassGenericPassword", referenced from: 
     +[PFInternalUtils getKeychainQuery:] in Parse(PFInternalUtils.o) 
    "_kSecMatchLimit", referenced from: 
     +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o) 
    "_kSecMatchLimitOne", referenced from: 
     +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o) 
    "_kSecReturnData", referenced from: 
     +[PFInternalUtils loadFromKeychain:] in Parse(PFInternalUtils.o) 
    "_kSecValueData", referenced from: 
     +[PFInternalUtils saveToKeychain:data:] in Parse(PFInternalUtils.o) 
    "_kUTTagClassFilenameExtension", referenced from: 
     -[PFFile getMimeType] in Parse(PFFile.o) 
    "_kUTTagClassMIMEType", referenced from: 
     -[PFFile getMimeType] in Parse(PFFile.o) 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
+0

In questo momento l'unica linea di codice che ho è nel delegato dell'app. Il primo fa riferimento al framework '#import ' e '[Parse setApplicationId: @" appID "clientKey: @" clientID "];' –

risposta

55

Assicurarsi di collegare contro il SystemConfiguration e il quadro Security nel progetto. Vedi this question per maggiori dettagli. Come ha sottolineato Hector nei commenti, tutti i framework richiesti per Parse sono disponibili nello iOS Quick Start Guide.

  • AudioToolbox.framework
  • CFNetwork.framework
  • CoreGraphics.framework
  • CoreLocation.framework
  • libz.1.1.3.dylib
  • MobileCoreServices.framework
  • QuartzCore.framework
  • Security.framework
  • .210
  • StoreKit.framework
  • SystemConfiguration.framework
+0

Ahhh l'ho perso! Grazie mille! –

+0

Che si è preso cura di 5 errori. Ne hai ancora altri 20. –

+1

risposta modificata, collegamento anche con il framework di sicurezza. – Joe

5

Aggiungere MobileCoreServices.framework dal progetto in aggiunta a questi quadri

-Accounts.framework

-AudioToolbox.framework

- CFNetwork.framework

-CoreGraphics.framework

-CoreLocation.framework

-libz.dylib

-MobileCoreServices.framework

-QuartzCore.framework

-Security.framework

-Social.framework

-StoreKit.framework

-SystemConfiguration.framework

+1

Questo non ha funzionato per me nonostante l'aggiunta di tutti quelli al progetto –

-2

ho dovuto aggiungere "$ (ereditati)" alle quadro dei percorsi di ricerca in impostazioni di generazione per farlo funzionare.

+0

Non ha funzionato per me. Era già lì –

Problemi correlati