0
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)

私はこのエラーがあり、正確な解決策を教えてください........

4

1 に答える 1

3

コードを見ると、いくつかのフレームワークを 2 回追加したようです。クロスチェックしてください。

また、Social,Account,Security,AdSupport and libsqlite3.dylibプロジェクトにフレームワークを含めます。コードをきれいにしてからビルドします。

または、上記の解決策のいずれも機能しない場合は、古いプロジェクトが参照/相互参照で台無しになる可能性があるため、現在のフォルダー以外の新しい場所に新しいプロジェクトを最初から作成してから、この FB 機能を統合してみてください。

于 2013-06-30T06:39:35.517 に答える