Warum funktioniert das nicht? Ich installierte ersten FacebookSDK-3.0.8.pkg
aus dem Link: https://developers.facebook.com/ios/downloads/Framework nicht gefunden FacebookSDK Mountain Lion läuft XC 4.4.1
Nach der Installation, bemerke ich den Ordner, in ~/Documents/FacebookSDK/...
erstellt wird, öffnen I Beispielprojekte sowohl in der XC 4.4.1 und XC 4.5 B4 und die Linker Fehlermeldung erhalten:
ld: framework not found FacebookSDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ich bin mit Mountain Lion und konnten ältere facebook SDKs in der Vergangenheit kompilieren (obwohl in Mountain Lion nicht).
Ich habe dann das FacebookSDK-3.0.0.pkg-Paket installiert und habe die gleichen Ergebnisse.
bearbeiten Hier ist die vollständige Linker Ausgang:
Ld /Users/kevinw/Library/Developer/Xcode/DerivedData/HelloFacebookSample-amabhzuzewakecehidtetsnstpuu/Build/Products/Debug-iphonesimulator/HelloFacebookSample.app/HelloFacebookSample normal i386
cd /Users/kevinw/Documents/FacebookSDK/Samples/HelloFacebookSample
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/kevinw/Library/Developer/Xcode/DerivedData/HelloFacebookSample-amabhzuzewakecehidtetsnstpuu/Build/Products/Debug-iphonesimulator -F/Users/kevinw/Library/Developer/Xcode/DerivedData/HelloFacebookSample-amabhzuzewakecehidtetsnstpuu/Build/Products/Debug-iphonesimulator -F/Users/kevinw/Documents/FacebookSDK -F/Users/kevinw/Documents/FacebookSDK -filelist /Users/kevinw/Library/Developer/Xcode/DerivedData/HelloFacebookSample-amabhzuzewakecehidtetsnstpuu/Build/Intermediates/HelloFacebookSample.build/Debug-iphonesimulator/HelloFacebookSample.build/Objects-normal/i386/HelloFacebookSample.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -lsqlite3.0 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -weak_framework Accounts -framework UIKit -framework Foundation -framework CoreGraphics -framework FacebookSDK -framework CoreLocation -o /Users/kevinw/Library/Developer/Xcode/DerivedData/HelloFacebookSample-amabhzuzewakecehidtetsnstpuu/Build/Products/Debug-iphonesimulator/HelloFacebookSample.app/HelloFacebookSample
Fix! Ich habe mein Problem behoben. Ich hatte sowohl die 3.0.8 SDK and then the 3.0.0 SDK
installiert und versucht, Dinge zum Laufen zu bringen. Ich entschied mich schließlich, den Schiefer zu säubern und wischte meinen Documents/FacebookSDK
Ordner und reinstall just the 3.0.0 version
. Nach dem Wischen/Neuinstallation begannen die Dinge zu arbeiten!
Vielen Dank. Funktioniert gut –
Danke! War auf der Suche nach einer Lösung. Einfach. –