2013-08-19 3 views
13

Ich habe versucht, das Pars-Framework in meinem Projekt zu importieren. Ich habe sichergestellt, dass es mit meinem Projekt zusammenhängt und ich konnte nichts darüber finden, ob es "lichtbogenempfindlich" ist oder nicht. Mein Projekt ist arc-basiert.Link Fehler mit Parse.framework iOS

Dies ist der Fehler Ich erhalte:

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

Im Augenblick ist die einzige Zeile Code ich habe, ist in der App delegieren. Die erste bezieht sich auf das Framework '#import ' und '[Parse setApplicationId: @" appID "clientKey: @" clientID "];' –

Antwort

55

Stellen Sie sicher, verbinden gegen die SystemConfiguration und den Security Rahmen in Ihrem Projekt. Weitere Informationen finden Sie unter this question. Als Hector in den Kommentaren darauf hingewiesen, alle erforderlichen Rahmenbedingungen für die Parse in der iOS Quick Start Guide finden.

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

Ahhh hat das verpasst! Ich danke dir sehr! –

+0

Das hat für 5 Fehler gesorgt. Habe noch weitere 20. –

+1

bearbeitete Antwort, Link gegen das Sicherheitsframework auch. – Joe

5

hinzufügen MobileCoreServices.framework aus dem Projekt zusätzlich zu diesen Rahmenbedingungen

-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

Das hat nicht funktioniert, obwohl ich all diese zu dem Projekt hinzugefügt habe –

-2

musste ich hinzufügen "$ (geerbt)" zu den Rahmensuchpfade in Build-Einstellungen, um es Arbeit zu bekommen.

+0

Hat nicht funktioniert für mich. Es war schon da –