2016-06-12 56 views
0
  • FacebookSDK集成iOS應用我有迅速
  • 我要整合facebooksdk實現iOS應用程序。爲此,我跟着從Facebook開發者指南中的步驟,並添加SDK到我的項目:

From the Facebook SDK folder, drag the folder FBSDKCoreKit.Framework, FBSDKLoginKit.Framework, FBSDKShareKit.Framework into your Xcode Projects Framework folder.連接錯誤與SWIFT

我也跟着下面的步驟,我想是不相關的我的問題。

我其實我可以看到我的項目中3個框架:

enter image description here

,但我無法導入FBSDKCoreKit(沒有這樣的模塊),我得到也是一個鏈接錯誤:

ld:框架未找到FBSDKCoreKit

請參閱下面的詳細錯誤。

我不知道如何分析這個問題。任何提示?

詳細的錯誤:

Ld /Users/user/Library/Developer/Xcode/DerivedData/Chronica-ezoabbyxtblpfughttvlaqtuxxeb/Build/Products/Debug-iphonesimulator/Chronica.app/Chronica normal x86_64 
    cd /Users/user/Desktop/Prototypes 
    export IPHONEOS_DEPLOYMENT_TARGET=8.1 
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/Chronica-ezoabbyxtblpfughttvlaqtuxxeb/Build/Products/Debug-iphonesimulator -F/Users/user/Library/Developer/Xcode/DerivedData/Chronica-ezoabbyxtblpfughttvlaqtuxxeb/Build/Products/Debug-iphonesimulator -filelist /Users/user/Library/Developer/Xcode/DerivedData/Chronica-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/Chronica.build/Debug-iphonesimulator/Chronica.build/Objects-normal/x86_64/Chronica.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.1 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/Chronica-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/Chronica.build/Debug-iphonesimulator/Chronica.build/Objects-normal/x86_64/Chronica.swiftmodule -lz -framework FBSDKCoreKit -framework FBSDKShareKit -framework FBSDKLoginKit -lsqlite3 -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/Chronica-ezoabbyxtblpfughttvlaqtuxxeb/Build/Intermediates/Chronica.build/Debug-iphonesimulator/Chronica.build/Objects-normal/x86_64/Chronica_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/Chronica-ezoabbyxtblpfughttvlaqtuxxeb/Build/Products/Debug-iphonesimulator/Chronica.app/Chronica 

ld: framework not found FBSDKCoreKit 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

回答

1

對不起,浪費你的時間。 我自己找到了幸運。

我剛添加的路徑框架中: 目標 - >構建設置 - >框架搜索路徑 - > 「/用戶/用戶/文件/ FacebookSDKs-IOS-4」