2013-08-19 54 views
13

我試圖在我的項目中導入分析框架。我確定它對我的項目很滿意,但我無法找到任何關於它是否「敏感」的內容。我的項目是基於弧的。鏈接錯誤與Parse.framework iOS

這是我得到的錯誤:

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

現在我唯一的代碼行是在應用程序委託。第一個是引用框架'#import '和'[解析setApplicationId:@「appID」clientKey:@「clientID」];' –

回答

55

確保您對SystemConfiguration,並在項目中Security框架進行鏈接。有關更多詳情,請參閱this question。正如Hector在評論中指出的那樣,所有需要的Parse框架都可以在iOS Quick Start Guide中找到。

  • AudioToolbox.framework
  • CFNetwork.framework
  • CoreGraphics.framework
  • CoreLocation.framework
  • libz.1.1.3.dylib
  • MobileCoreServices.framework
  • QuartzCore.framework
  • 安全框架
  • StoreKit.framework
  • SystemConfiguration.framework
+0

Ahhh錯過了!非常感謝! –

+0

這照顧了5個錯誤。還有20個。 –

+1

編輯答案,也與安全框架鏈接。 – Joe

5

從您的項目添加MobileCoreServices.framework除了這些框架

-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

這並不適合我,儘管將所有那些 –

-2

我不得不添加 「$(繼承)」 在生成設置框架搜索路徑得到它的工作。

+0

並沒有爲我工作的項目。它已經在那裏 –