架构 armv7 SSZipArchive 的未定义符号 [英] Undefined symbols for architecture armv7 SSZipArchive

查看:31
本文介绍了架构 armv7 SSZipArchive 的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

架构 armv7 的未定义符号:
_OBJC_CLASS_$_SSZipArchive",引用自:objc-class-ref inLoginVC.o ld:找不到架构 armv7 clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

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

推荐答案

刚刚解决!我真的什么都试过了,但是是的,它现在也抓住了我 -> CMD+alt+Return,我只需要清理它,现在它可以工作了.

just solved! I really tried everything, but yeah, it has catched me too now -> CMD+alt+Return, I only have to clean it, and now it works.

小心,如果您在使用 SSZipArchive 时遇到同样的问题,请检查:

Be careful, if you have same problems with SSZipArchive check this:

- 检查 prefix.pch:您在这里添加了一些 Objective-C 类?-->所以只需将其移入

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
#endif

...因为 minizip 与目标类一起编译,这对 minizip 来说是一个问题,因此将其移入 #ifdef 以使其工作清晰.

...cause minizip is compiling together with objective-classes, and thats a problem for minizip, so move it into #ifdef to work clear.

-clean baby:像我一样清理你的项目,如果你在 [CMD]+[alt]+return 之前尝试了很多错误 - 小心

- 不添加 SSZipArchive 作为参考:只需创建您的 SSZipArchive 即可:

SSZipArchive
    SSZipArchive.h
    SSZipArchive.m
    minizip(folder)

..也看看thisNiceLink..但是它无论如何都可以作为参考文件夹工作,看看这里..两者都不起作用我(因为我在实验后没有清理;))..我在 finder 上创建了一个像上面一样的文件夹结构,并将其拖放到我的项目中(只需单击创建组")

..just look also thisNiceLink..but it can work anyway as referenced folder, look here..both don't worked for me (cause I don't cleaned after experiments ;))..I have created a folder construct like above on finder, and drag drop it into my project (just click "create groups")

..所以我希望它能帮助你..:)

..so I hope it helps you.. :)

这篇关于架构 armv7 SSZipArchive 的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆