2012-11-18 5 views
8

私は以下の手順に従っています:https://github.com/ShareKit/ShareKit/wiki/Installing-sharekit Sharekitをインストールします。しかし、私はまだいくつかのエラーに直面しています。この問題を解決する方法がわかりません。シェアキットを入手する

エラー:

Undefined symbols for architecture i386: 
    "_ACAccountTypeIdentifierFacebook", referenced from: 
     +[FBSession renewSystemAuthorization] in libShareKit.a(FBSession.o) 
    "_ACFacebookAppIdKey", referenced from: 
     -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in libShareKit.a(FBSession.o) 
    "_ACFacebookAudienceEveryone", referenced from: 
     -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in libShareKit.a(FBSession.o) 
    "_ACFacebookAudienceFriends", referenced from: 
     -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in libShareKit.a(FBSession.o) 
    "_ACFacebookAudienceKey", referenced from: 
     -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in libShareKit.a(FBSession.o) 
    "_ACFacebookAudienceOnlyMe", referenced from: 
     -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in libShareKit.a(FBSession.o) 
    "_ACFacebookPermissionsKey", referenced from: 
     -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in libShareKit.a(FBSession.o) 
    "_OBJC_CLASS_$_ACAccountStore", referenced from: 
     objc-class-ref in libShareKit.a(FBSession.o) 
    "_OBJC_CLASS_$_ASIdentifierManager", referenced from: 
     objc-class-ref in libShareKit.a(FBSettings.o) 
    "_OBJC_CLASS_$_SLComposeViewController", referenced from: 
     objc-class-ref in libShareKit.a(FBNativeDialogs.o) 
    "_SLServiceTypeFacebook", referenced from: 
     +[FBNativeDialogs composeViewControllerWithSession:handler:] in libShareKit.a(FBNativeDialogs.o) 
    "_sqlite3_bind_double", referenced from: 
     -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _writeEntryInDatabase:] in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_bind_int", referenced from: 
     -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _writeEntryInDatabase:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _trimDatabase] in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_bind_text", referenced from: 
     -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _writeEntryInDatabase:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _readEntryFromDatabase:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _removeEntryFromDatabaseForKey:] in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_close", referenced from: 
     ___23-[FBCacheIndex dealloc]_block_invoke_0 in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_column_double", referenced from: 
     -[FBCacheIndex _createCacheEntityInfo:] in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_column_int", referenced from: 
     -[FBCacheIndex _createCacheEntityInfo:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _fetchCurrentDiskUsage] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _trimDatabase] in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_column_text", referenced from: 
     -[FBCacheIndex _createCacheEntityInfo:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _trimDatabase] in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_errmsg", referenced from: 
     ___23-[FBCacheIndex dealloc]_block_invoke_0 in libShareKit.a(FBCacheIndex.o) 
     _releaseStatement in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libShareKit.a(FBCacheIndex.o) 
     _initializeStatement in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _writeEntryInDatabase:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _readEntryFromDatabase:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _readEntriesFromDatabase:excludingFragment:] in libShareKit.a(FBCacheIndex.o) 
     ... 
    "_sqlite3_exec", referenced from: 
     ___36-[FBCacheIndex initWithCacheFolder:]_block_invoke_0 in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_finalize", referenced from: 
     _releaseStatement in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_open_v2", referenced from: 
     ___36-[FBCacheIndex initWithCacheFolder:]_block_invoke_0 in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_prepare_v2", referenced from: 
     _initializeStatement in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_reset", referenced from: 
     _initializeStatement in libShareKit.a(FBCacheIndex.o) 
    "_sqlite3_step", referenced from: 
     -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _writeEntryInDatabase:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _createCacheEntityInfo:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _fetchCurrentDiskUsage] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _removeEntryFromDatabaseForKey:] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _dropTrimmingTable] in libShareKit.a(FBCacheIndex.o) 
     -[FBCacheIndex _trimDatabase] in libShareKit.a(FBCacheIndex.o) 
     ... 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

は、この問題を解決する方法についていくつかのガイダンスを必要とする...任意の助けいただければ幸いです...

+1

同様のエラーが発生していますが、アーキテクチャarmv7があります。同じ_OBJC_CLASS _ $ _ ACAccountStoreエラーを取得+あなたのような他のsqliteエラーの束。私が解決策を見つけたら、ここでそれを投稿しようとします。うまくいけば、これを理解することができます。 – Gowiem

+0

この記事で提案された "-ObjC -all_load"を削除してリンカエラーを修正しました:[Sharekit Issue#408](https://github.com/ShareKit/ShareKit/issues/408) – Gowiem

+0

ソリューション... – laksh

答えて

3

私は他のリンカのフラグを削除することは良いアイデアだとは思いません。

20

新しいFacebook SDK 3.0でShareKitライブラリに切り替えるのと同じ問題があります。

あなたがエラーを解決するために、これらのフレームワークやライブラリを追加する必要があります。

Social.framework 
AdSupport.framework 
Accounts.framework 
libsqlite3.dylib 
+4

iOS 5.X用にビルドする場合、これらのフレームワークにはオプションの正しいマークを付ける必要がありますか?彼らは新しいFacebook SDKで必要とされるだけなので、 – Gowiem

+0

はい、そうすべきです。ところで、この回答はうまくいっていて、他のフレームワークに必要なマクロを削除しないので、受け入れられたものよりも優れています。 – csotiriou

+0

よくうまくいった – lomec

2

ただ、Xcodeの

内のリンクのフレームワークやプロジェクトのライブラリーから

libsqlite3.dylib

を追加

関連する問題