Undefined symbols for architecture armv7 SSZipArchive

Deadly 提交于 2019-12-08 10:08:22

问题


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)


回答1:


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.

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

- check the prefix.pch: You added some objective-C classes here? -->so just move it into

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

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

- clean baby: Just clean like me your project, if you tried many mistakes before [CMD]+[alt]+return - be careful

- add SSZipArchive not as reference: Just create your SSZipArchive to first like:

SSZipArchive
    SSZipArchive.h
    SSZipArchive.m
    minizip(folder)

..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.. :)



来源:https://stackoverflow.com/questions/15639875/undefined-symbols-for-architecture-armv7-ssziparchive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!