体系结构i386 defacebookComposerViewController的未定义符号

时间:2013-08-15 08:48:35

标签: iphone ios xcode facebook

我添加了所有框架并设置了我的部署目标4.3但我不知道为什么我收到此错误。任何人都可以帮助我做错了吗?

Ld /Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Products/Debug-iphonesimulator/intellegentQuiz.app/intellegentQuiz normal i386
    cd /Users/malik98b/Desktop/intellegentQuiz
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
    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/iPhoneSimulator6.1.sdk -L/Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Products/Debug-iphonesimulator -F/Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Products/Debug-iphonesimulator -F/Users/malik98b/Desktop/intellegentQuiz/../../Documents/FacebookSDK -F/Users/malik98b/Desktop/intellegentQuiz/intellegentQuiz -filelist /Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Intermediates/intellegentQuiz.build/Debug-iphonesimulator/intellegentQuiz.build/Objects-normal/i386/intellegentQuiz.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -lz.1.2.5 -framework Security -weak_framework Social -weak_framework Accounts -framework CFNetwork -framework SystemConfiguration -framework Twitter -weak_framework AdSupport -framework MessageUI -lsqlite3.0 -framework UIKit -framework Foundation -framework CoreGraphics -framework FacebookSDK -o /Users/malik98b/Library/Developer/Xcode/DerivedData/intellegentQuiz-dvsvdwuxvcsnjxhacouhvetzygfd/Build/Products/Debug-iphonesimulator/intellegentQuiz.app/intellegentQuiz



Undefined symbols for architecture i386:
      "_OBJC_CLASS_$_DEFacebookComposeViewController", referenced from:
          objc-class-ref in ShareVC.o
      "_OBJC_CLASS_$_DETweetComposeViewController", referenced from:
          objc-class-ref in ShareVC.o
      "_OBJC_CLASS_$_SHKItem", referenced from:
          objc-class-ref in ShareVC.o
      "_OBJC_CLASS_$_SHKMail", referenced from:
          objc-class-ref in ShareVC.o
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:1)

有时.m文件未列在目标“Build Phases”选项卡的“Compile Sources”步骤下,您需要手动添加.m文件。

对艾伦派克赞不绝口。

Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error