NSStringを持っていて、壁に公開したいと思います。私はここで文書を読みました。そして、私はそのステップに従います。2番目のステップでは、SDKをダウンロードします。sdkフォルダーにあるsrcフォルダーにfacebook-ios-sdk.xcodeprojファイルがあります。ファイルを開いて実行します。しかし、プロジェクトをインポートする方法がわかりません。さらに、フォルダ内にサンプルプロジェクトがありますが、それらは機能しません。
ここからFacebookSDK.frameworkをダウンロードします。サンプルプロジェクトはSDKで機能しますが、フレームワークをインポートし、フレームワークでインスタンスを取得すると、15個のエラーが発生します。私を助けてください。今からありがとうございます。FBLoginView * fb = [[FBLoginView alloc] init]; //インスタンス化しました
エラーは次のとおりです。
Ld /Users/apple/Library/Developer/Xcode/DerivedData/FaceDeneme-gatrfdmgbcwtpyecvenlafosmqfn/Build/Products/Debug-iphonesimulator/FaceDeneme.app/FaceDeneme normal i386
cd /Users/apple/Documents/FaceDeneme
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Volumes/Xcode/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch i386 -isysroot /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
-L/Users/apple/Library/Developer/Xcode/DerivedData/FaceDeneme-gatrfdmgbcwtpyecvenlafosmqfn/Build/Products/Debug-iphonesimulator
-L/Users/apple/Documents/FaceDeneme -F/Users/apple/Library/Developer/Xcode/DerivedData/FaceDeneme-gatrfdmgbcwtpyecvenlafosmqfn/Build/Products/Debug-iphonesimulator
-F/Users/apple/Documents/FaceDeneme/../FacebookSDK -filelist /Users/apple/Library/Developer/Xcode/DerivedData/FaceDeneme-gatrfdmgbcwtpyecvenlafosmqfn/Build/Intermediates/FaceDeneme.build/Debug-iphonesimulator/FaceDeneme.build/Objects-normal/i386/FaceDeneme.LinkFileList
-mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreLocation -framework FacebookSDK -framework Accounts -o /Users/apple/Library/Developer/Xcode/DerivedData/FaceDeneme-gatrfdmgbcwtpyecvenlafosmqfn/Build/Products/Debug-iphonesimulator/FaceDeneme.app/FaceDeneme
Undefined symbols for architecture i386: "_sqlite3_open_v2", referenced from:
___36-[FBCacheIndex initWithCacheFolder:]_block_invoke_0 in FacebookSDK(FBCacheIndex.o) "_sqlite3_exec", referenced from:
___36-[FBCacheIndex initWithCacheFolder:]_block_invoke_0 in FacebookSDK(FBCacheIndex.o) "_sqlite3_close", referenced from:
___23-[FBCacheIndex dealloc]_block_invoke_0 in FacebookSDK(FBCacheIndex.o) "_sqlite3_finalize", referenced from:
_releaseStatement in FacebookSDK(FBCacheIndex.o) "_sqlite3_errmsg", referenced from:
_releaseStatement in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
_initializeStatement in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _fetchCurrentDiskUsage] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _removeEntryFromDatabaseForKey:] in FacebookSDK(FBCacheIndex.o)
... "_sqlite3_bind_text", referenced from:
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _removeEntryFromDatabaseForKey:] in FacebookSDK(FBCacheIndex.o) "_sqlite3_bind_double", referenced from:
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o) "_sqlite3_bind_int", referenced from:
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o) "_sqlite3_step", referenced from:
-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _fetchCurrentDiskUsage] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _removeEntryFromDatabaseForKey:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _dropTrimmingTable] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o)
... "_sqlite3_prepare_v2", referenced from:
_initializeStatement in FacebookSDK(FBCacheIndex.o) "_sqlite3_reset", referenced from:
_initializeStatement in FacebookSDK(FBCacheIndex.o) "_sqlite3_column_text", referenced from:
-[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o) "_sqlite3_column_double", referenced from:
-[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o) "_sqlite3_column_int", referenced from:
-[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _fetchCurrentDiskUsage] in FacebookSDK(FBCacheIndex.o)
-[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)