iOS   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – 体系结构i386的未定义符号:“_ OBJC_CLASS _ $_ ZipException”,引用自:error大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我在我的项目中使用了几个’.o’文件,在编译时显示以下错误, error:linker command failed with exit code 1 (use -v to see invocation) 我在下面发布了错误日志 Ld /Users/deepak/Library/Developer/Xcode/DerivedData/app-bnwpvhpbrfdurbdgxucyddqyfosh
@H_262_6@
@H_262_6@
我在我的项目中使用了几个’.o文件,在编译时显示以下错误,

error:linker command Failed with exit code 1 (use -v to see invocation)

我在下面发布了错误日志

Ld /Users/deepak/Library/Developer/Xcode/DerivedData/app-bnwpvhpbrfdurbdgxucyddqyfosh/Build/Products/Debug-iphonesimulator/app.app/app normal i386
    cd /Users/deepak/Workspace/iosDevelopement/PROjeCTS/KML/app
    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.0.sdk -L/Users/deepak/Library/Developer/Xcode/DerivedData/app-bnwpvhpbrfdurbdgxucyddqyfosh/Build/Products/Debug-iphonesimulator -F/Users/deepak/Library/Developer/Xcode/DerivedData/app-bnwpvhpbrfdurbdgxucyddqyfosh/Build/Products/Debug-iphonesimulator -F/Users/deepak/Workspace/iosDevelopement/PROjeCTS/KML/app -filelist /Users/deepak/Library/Developer/Xcode/DerivedData/app-bnwpvhpbrfdurbdgxucyddqyfosh/Build/Intermediates/app.build/Debug-iphonesimulator/app.build/Objects-normal/i386/app.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -lstdc++ -licucore -lz -framework MapKit -framework CoreLOCATIOn -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -framework KML -o /Users/deepak/Library/Developer/Xcode/DerivedData/app-bnwpvhpbrfdurbdgxucyddqyfosh/Build/Products/Debug-iphonesimulator/app.app/app
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_ZipException",referenced from:
      objc-class-ref in ZipFile.o
      objc-class-ref in ZipReadStream.o
      objc-class-ref in ZipWriteStream.o
ld: symbol(s) not found for architecture i386
clang: error: linker command Failed with exit code 1 (use -v to see invocation)

最初,有更多的错误并通过导入libs.dylib框架@L_772_7@了它们,

但仍有2个错误仍然存​​在.

编辑:我已经完成了流行的问题Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage”,referenced from: error,但解决方案对我不起作用

有谁知道我哪里出错了?我是xcode的问题,任何缺少的库或链接的东西失败?

提前致谢

解决方法

错误消息表明ZipFile.o,ZipReadStream.o和ZipWriteStream.o引用了未定义的符号.这意味着您尝试在应用中使用 Objective-Zip库.

未定义的符号是_OBJC_CLASS _ $_ ZipException.编译器在源文件中看到@implemention ZipException指令时会生成此符号.

Objective-Zip库包含一个名为ZipException.m的文件,其中包含@implementation ZipException指令.

最可能的解释是您没有在目标中包含ZipException.m.检查你是否已经这样做了.如果你不知道怎么做,请看this answer.

另一种可能的解释是,您可能会以删除@implementation ZipException指令或将其隐藏在编译器中的方式意外修改ZipException.m文件.检查您是否未修改文件,并且它包含@implementation ZipException指令.

大佬总结

以上是大佬教程为你收集整理的ios – 体系结构i386的未定义符号:“_ OBJC_CLASS _ $_ ZipException”,引用自:error全部内容,希望文章能够帮你解决ios – 体系结构i386的未定义符号:“_ OBJC_CLASS _ $_ ZipException”,引用自:error所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
猜你在找的iOS相关文章