2013-08-19 12 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 'と' [Parse setApplicationId:@ "appID" clientKey:@ "clientID"];' –

答えて

55

は、あなたがSystemConfigurationと、プロジェクト内のSecurityフレームワークにリンクしていることを確認します。詳細はthis questionを参照してください。 Hectorがコメントで指摘したように、Parseに必要なすべてのフレームワークはiOS Quick Start Guideにあります。

  • AudioToolbox.framework
  • CFNetwork.framework
  • CoreGraphics.framework
  • CoreLocation.framework
  • QuartzCore.framework
  • MobileCoreServices.framework
  • libz.1.1.3.dylib
  • セキュリティ。フレームワーク
  • StoreKit.framework
  • SystemConfiguration.framework
+0

というフレームワークを参照しています。どうもありがとうございます! –

+0

これは5つのエラーを処理しました。まだ別の20があります。 –

+1

編集済みの回答、セキュリティフレームワークとのリンク。 – Joe

5

これらのフレームワーク

-Accounts.framework

-AudioToolbox.framework

に加えて、プロジェクトからMobileCoreServices.frameworkを追加 - CFNetwork.framework

-CoreGraphics.framework

-CoreLocation.framework

-libz.dylib

-MobileCoreServices.framework

-QuartzCore.framework

-Security.framework

-Social.framework

-StoreKit.framework

-SystemConfiguration.framework

+1

プロジェクトにすべてを追加しても、それは私にとってはうまくいきませんでした –

-2

私はそれが仕事を得るためにFramework検索パスでのビルド設定にを "$(継承)" を追加する必要がありました。

+0

私にとってはうまくいきませんでした。それはすでにそこにあった –

関連する問題