0

我已经添加了所有框架并将我的部署目标设置为 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)
4

1 回答 1

1

有时 .m 文件未在目标的“构建阶段”选项卡的“编译源”步骤下列出,您需要手动添加 .m 文件。

这要归功于艾伦派克

架构 i386 的未定义符号:_OBJC_CLASS_$_SKPSMTPMessage”,引用自:错误

于 2013-08-15T09:14:32.343 回答