MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.59k stars 623 forks source link

[Bug] - Xcode 13.1, intel core, build with device error #1935

Closed 4cce1er closed 2 years ago

4cce1er commented 2 years ago

undefined symbols for architecture arm64: "_OBJCCLASS$_MCOIMAPSession", referenced from: objc-class-ref in ViewController.o "_OBJCCLASS$_MCOIndexSet", referenced from: objc-class-ref in ViewController.o "_MCORangeMake", referenced from: -[ViewController viewDidLoad] in ViewController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

i try to fix this problem, use this issue issue

Set "Build Active Architecture Only (ONLY_ACTIVE_ARCH)" to Yes for your libraries/apps, even for release mode.

but still cannot fix. pls help me

4cce1er commented 2 years ago

finally, i fix this bug by use this build setting.

image