-->

Undefined symbols for architecture armv7 SSZipArch

2019-06-11 14:20发布

问题:

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