【问题标题】:Undefined symbols for architecture x86_64 "_OBJC_CLASS_$_Main"架构 x86_64“_OBJC_CLASS_$_Main”的未定义符号
【发布时间】:2015-08-24 15:16:04
【问题描述】:

我都卡住了,搜索了一段时间没有得到答案,我正在使用第三方库ZipArchive解压缩文件。

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

以下是错误日志:

Ld /Users/ngi-raheelmateen/Library/Developer/Xcode/DerivedData/eQuiz-Sample-gxbnecbwpozhqweupuoifjuubzzx/Build/Products/Debug-iphonesimulator/eQuiz-Sample.app/eQuiz-Sample normal x86_64
    cd /Users/ngi-raheelmateen/Documents/EQUIZ-IOS
    export IPHONEOS_DEPLOYMENT_TARGET=8.4
    export 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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/ngi-raheelmateen/Library/Developer/Xcode/DerivedData/eQuiz-Sample-gxbnecbwpozhqweupuoifjuubzzx/Build/Products/Debug-iphonesimulator -F/Users/ngi-raheelmateen/Library/Developer/Xcode/DerivedData/eQuiz-Sample-gxbnecbwpozhqweupuoifjuubzzx/Build/Products/Debug-iphonesimulator -filelist /Users/ngi-raheelmateen/Library/Developer/Xcode/DerivedData/eQuiz-Sample-gxbnecbwpozhqweupuoifjuubzzx/Build/Intermediates/eQuiz-Sample.build/Debug-iphonesimulator/eQuiz-Sample.build/Objects-normal/x86_64/eQuiz-Sample.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lAFNetworking -lAMScrollingNavbar -lDTModelStorage -lDTTableViewManager -lMMDrawerController -framework CoreData -framework CoreGraphics -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.4 -lz -lPods-eQuiz-Sample -Xlinker -dependency_info -Xlinker /Users/ngi-raheelmateen/Library/Developer/Xcode/DerivedData/eQuiz-Sample-gxbnecbwpozhqweupuoifjuubzzx/Build/Intermediates/eQuiz-Sample.build/Debug-iphonesimulator/eQuiz-Sample.build/Objects-normal/x86_64/eQuiz-Sample_dependency_info.dat -o /Users/ngi-raheelmateen/Library/Developer/Xcode/DerivedData/eQuiz-Sample-gxbnecbwpozhqweupuoifjuubzzx/Build/Products/Debug-iphonesimulator/eQuiz-Sample.app/eQuiz-Sample

非常感谢任何有用的答案。

【问题讨论】:

    标签: ios objective-c xcode ziparchive


    【解决方案1】:

    检查 API 的要求,可能需要一些 iOS 框架来包含。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-10-27
      • 2016-11-12
      • 2018-06-23
      • 2019-01-01
      • 1970-01-01
      • 2020-12-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多