Open mtegas opened 3 years ago
My error messages are a bit different (see below), but I think I have the same problem. It seems like this is because MailCore has not been updated to support Apple Silicon (M1) Macs. If you use a current version of macOS (11) and Xcode (12), you will not be able to make a release build (archive) of a project that uses MailCore.
I haven't fixed my problem yet, but I've found this SO question that suggests your best workaround is to disable building for new (M1/Apple Silicon) Macs.
To fix the problem, I found information suggesting that MailCore would have to provide a "universal binary" (see "precompiled binaries" section here: https://www.wwdcnotes.com/notes/wwdc20/10214/).
This SO answer worked for me, and it also should work for you as long as you're on an Intel Mac. Keep in ming that this will mean your app won't run Apple Silicon Macs.
Hi everyone,
I'm going crazy trying yo figure out how to avoid this error, I'm working at an app for OSX and building works fine, when i try to archive the project I keep getting this error :
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_MCOAddress", referenced from: objc-class-ref in DownloadManager.o "_OBJC_CLASS_$_MCOAttachment", referenced from: objc-class-ref in DownloadManager.o "_OBJC_CLASS_$_MCOMessageBuilder", referenced from: objc-class-ref in DownloadManager.o "_OBJC_CLASS_$_MCOSMTPSession", referenced from: objc-class-ref in DownloadManager.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've implemented MailCore using Swift package manager because everytime i try using cocoapods or carthage with MailCore i get other errors and the only one working is SPM, but gives error when archiving.