2015-07-02 69 views
1

![Xcode screen] [1]Unity3d Facebook SDK 6.2.2錯誤

XCode錯誤,如何解決此問題? FBSDKLoginKit出現在庫列表中。可能unity3d 5不支持Facebook SDK 6.2.2版本?

Ld /Users/Arahis/Library/Developer/Xcode/DerivedData/Unity-iPhone-ciwadoyxuyddvuagqxleasaxynhi/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/slotspanther normal armv7 cd /Users/Arahis/Builds/Build1 export IPHONEOS_DEPLOYMENT_TARGET=7.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/Arahis/Library/Developer/Xcode/DerivedData/Unity-iPhone-ciwadoyxuyddvuagqxleasaxynhi/Build/Products/Release-iphoneos -L/Users/Arahis/Builds/Build1 -L/Users/Arahis/Builds/Build1/Libraries -L/Users/Arahis/Builds/Build1/Libraries/Plugins/IOS -F/Users/Arahis/Library/Developer/Xcode/DerivedData/Unity-iPhone-ciwadoyxuyddvuagqxleasaxynhi/Build/Products/Release-iphoneos -F/Users/Arahis/Builds/Build1 -filelist /Users/Arahis/Library/Developer/Xcode/DerivedData/Unity-iPhone-ciwadoyxuyddvuagqxleasaxynhi/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/slotspanther.LinkFileList -Xlinker -map -Xlinker /Users/Arahis/Library/Developer/Xcode/DerivedData/Unity-iPhone-ciwadoyxuyddvuagqxleasaxynhi/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/slotspanther-LinkMap-normal-armv7.txt -dead_strip -weak_framework CoreMotion -weak-lSystem -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework Security -framework Social -framework GameKit -framework Accounts -framework CoreTelephony -framework MobileCoreServices -framework StoreKit -framework CoreText -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -weak_framework iAd -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -liPhone-lib -lFlurry -lOneSignal -framework FBSDKLoginKit -framework FBSDKShareKit -framework Bolts /Users/Arahis/Builds/Build1/Libraries/Plugins/IOS/MobileAppTracker-3.9.1.a -framework FBSDKCoreKit -Xlinker -dependency_info -Xlinker /Users/Arahis/Library/Developer/Xcode/DerivedData/Unity-iPhone-ciwadoyxuyddvuagqxleasaxynhi/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/slotspanther_dependency_info.dat -o /Users/Arahis/Library/Developer/Xcode/DerivedData/Unity-iPhone-ciwadoyxuyddvuagqxleasaxynhi/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/slotspanther

LD:框架沒有找到FBSDKLoginKit 鐺:錯誤:連接命令,退出代碼爲1(使用-v看看調用)

+0

是框架文件夾下的FBSDKLoginKit可見在Xcode,或至少在Facebook的文件夾? –

+0

在Frameworks文件夾下,項目中沒有Facebook文件夾 –

回答

0

7「臉譜SDK團結」將支持版本開始失敗Unity 5完全。

您可以下載7.0.2,這是目前處於測試階段,在此頁面的底部: https://developers.facebook.com/docs/unity/downloads

+0

當我添加7.0.2版本時,出現此問題: 未捕獲的異常:NSInvalidArgumentException:不允許使用發佈或管理權限請求讀取權限。 我嘗試了兩種登錄方法: FB.LogInWithReadPermissions(「email,public_profile,publish_actions,user_friends」,AuthCallback); FB.LogInWithPublishPermissions(「email,public_profile,publish_actions,user_friends」,AuthCallback); –

+0

這是一個不同的問題,但您首先只需要讀取權限,以便您可以登錄用戶,然後在用戶第一次想要分享內容時請求發佈權限。另請閱讀:https://developers.facebook.com/docs/facebook-login/permissions/v2.3 – JeanLuc