ld: warning: directory not found for option '-L/Users/sushil/Documents/project/IndianFMs /Libraries & Headers'
ld: warning: ignoring file /Users/sushil/Documents/project/IndianFMs /Social.framework/Social, missing required architecture i386 in file /Users/sushil/Documents/project/IndianFMs /Social.framework/Social (2 slices)
ld: warning: ignoring file /Users/sushil/Documents/project/IndianFMs /AdSupport.framework/AdSupport, missing required architecture i386 in file /Users/sushil/Documents/project/IndianFMs /AdSupport.framework/AdSupport (2 slices)
ld: warning: ignoring file /Users/sushil/Documents/project/IndianFMs /Accounts.framework/Accounts, missing required architecture i386 in file /Users/sushil/Documents/project/IndianFMs /Accounts.framework/Accounts (2 slices)
Undefined symbols for architecture i386:
"_ACFacebookAppIdKey", referenced from:
-[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in FacebookSDK(FBSystemAccountStoreAdapter.o)
"_ACFacebookAudienceEveryone", referenced from:
-[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in FacebookSDK(FBSystemAccountStoreAdapter.o)
"_ACFacebookAudienceFriends", referenced from:
-[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in FacebookSDK(FBSystemAccountStoreAdapter.o)
"_ACFacebookAudienceKey", referenced from:
-[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in FacebookSDK(FBSystemAccountStoreAdapter.o)
"_ACFacebookAudienceOnlyMe", referenced from:
-[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in FacebookSDK(FBSystemAccountStoreAdapter.o)
"_ACFacebookPermissionsKey", referenced from:
-[FBSystemAccountStoreAdapter requestAccessToFacebookAccountStore:defaultAudience:isReauthorize:appID:session:handler:] in FacebookSDK(FBSystemAccountStoreAdapter.o)
"_OBJC_CLASS_$_ACAccountStore", referenced from:
objc-class-ref in FacebookSDK(FBSystemAccountStoreAdapter.o)
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in FacebookSDK(FBUtility.o)
"_OBJC_CLASS_$_SLComposeViewController", referenced from:
objc-class-ref in FacebookSDK(FBNativeDialogs.o)
"_SLServiceTypeFacebook", referenced from:
+[FBNativeDialogs composeViewControllerWithSession:handler:] in FacebookSDK(FBNativeDialogs.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我有这个错误请给我准确的解决方案..............
答案 0 :(得分:3)
查看代码,看起来好像你已经添加了两次框架。请交叉检查。
此外,将Social,Account,Security,AdSupport and libsqlite3.dylib
框架包含在您的项目中。清理代码然后构建。
或者,如果以上解决方案都不起作用,您可以在除当前文件夹之外的新位置从头开始创建一个新项目,因为旧项目可能与引用/交叉引用混淆,然后尝试集成此FB功能