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

Plans for Apple's M1 Architecture Support? #1938

Open cliftonlabrum opened 2 years ago

cliftonlabrum commented 2 years ago

I recently found this library, installed the Swift package in Xcode 13.2.1, and then tried to build for a Mac app with an M1X processor. I got the following errors:

Ignoring file /Users/.../MailCore.framework/MailCore, building for macOS-arm64 but attempting to link with 
file built for macOS-x86_64

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_MCOIMAPMessage", referenced from:
      objc-class-ref in Test.o
  "_OBJC_CLASS_$_MCOIMAPSession", referenced from:
      objc-class-ref in Test.o
  "_OBJC_CLASS_$_MCOIndexSet", referenced from:
      objc-class-ref in Test.o
ld: symbol(s) not found for architecture arm64

❌ Undefined symbol: _OBJC_CLASS_$_MCOIMAPMessage
❌ Undefined symbol: _OBJC_CLASS_$_MCOIMAPSession
❌ Undefined symbol: _OBJC_CLASS_$_MCOIndexSet

If I build for Mac (Rosetta), then it's fine, so I assume there just isn't M1 support yet.

Are there any plans to add support for Apple's M1 architecture? 😄🤞🏼

cliftonlabrum commented 2 years ago

For anyone else looking to do this, I used this repo via SPM and it works great: https://github.com/vincedev/MailCoreSPM

vincedev commented 2 years ago

Great to know it works for you! I still support your request though ;)

lionserdar commented 2 years ago

Any update ?