How to use Mailcore framework in my IOS project?

后端 未结 2 1110
星月不相逢
星月不相逢 2021-01-25 23:32

i have download mailcore for iphone from https://bitbucket.org/mronge/mailcore/downloads .i have try to build it shows error as

No architectures to compi

相关标签:
2条回答
  • 2021-01-26 00:19

    For the benefit of other searching:

    As of Feb 2013, this is no longer an issue. MailCore download includes all libraries you need.

    There are two issues I ran into, though, which sent me searching here for answers...

    1. You have to have the command line tools installed in Xcode to build. The subprojects under MailCore use them to build themselves. Xcode > preferences > downloads > components tab > Command Line tools must say "installed".

    2. Subprojects under MailCore will throw errors about "config.h not found" if your path to MailCore contains a space. I found a closed issue in the github issue discussion stuff abou this. Thus, "/usr/home/me/dev/MailCore" is fine... but "/usr/home/me/dev stuff/MailCore" is not.

    For #2, put your MailCore download somewhere where there's no spaces in the path. you can drag the MailCore.xcodeproj into your project to add it no matter where on disk your project is located. Doesn't have to be in the same folder.

    0 讨论(0)
  • 2021-01-26 00:21

    From the Getting Started documentation on the project:

    IPHONE USE

    MailCore has an included iPhone target, but it requires some additional compiled binaries (OpenSSL and CyrusSSL). I am unable to currently provide these, however the company Remail is offering the binaries and a compiled copy of MailCore for the iPhone. Contact Remail for more information:

    mailcore@remail.com

    It seems like you'd need to get those before building against the iPhone target.

    0 讨论(0)
提交回复
热议问题