简体   繁体   English

如何在我的IOS项目中使用Mailcore框架?

[英]How to use Mailcore framework in my IOS project?

i have download mailcore for iphone from https://bitbucket.org/mronge/mailcore/downloads .i have try to build it shows error as 我已经从https://bitbucket.org/mronge/mailcore/downloads下载了iPhone的mailcore。我已经尝试构建它,将错误显示为

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386) 没有要编译的架构(ONLY_ACTIVE_ARCH = YES,活动arch = armv6,VALID_ARCHS = i386)

So i can't add this mailcore framework to my ios project .Please help me to find solution 所以我不能将此mailcore框架添加到我的ios项目中。请帮助我找到解决方案

For the benefit of other searching: 为了其他搜索的好处:

As of Feb 2013, this is no longer an issue. 截至2013年2月,这不再是问题。 MailCore download includes all libraries you need. MailCore下载包括您需要的所有库。

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. 您必须在Xcode中安装命令行工具才能构建。 The subprojects under MailCore use them to build themselves. MailCore下的子项目使用它们来构建自己。 Xcode > preferences > downloads > components tab > Command Line tools must say "installed". Xcode>首选项>下载>组件选项卡>命令行工具必须显示“已安装”。

  2. Subprojects under MailCore will throw errors about "config.h not found" if your path to MailCore contains a space. 如果您到MailCore的路径包含空格,则MailCore下的子项目将引发有关“找不到config.h”的错误。 I found a closed issue in the github issue discussion stuff abou this. 我在github问题讨论中找到了一个封闭的问题。 Thus, "/usr/home/me/dev/MailCore" is fine... but "/usr/home/me/dev stuff/MailCore" is not. 因此,“ / usr / home / me / dev / MailCore”很好...但是“ / usr / home / me / dev东西/ MailCore”不是。

For #2, put your MailCore download somewhere where there's no spaces in the path. 对于#2,请将您的MailCore下载文件放置在路径中没有空格的地方。 you can drag the MailCore.xcodeproj into your project to add it no matter where on disk your project is located. 您可以将MailCore.xcodeproj拖到您的项目中以添加它,无论项目位于磁盘上的任何位置。 Doesn't have to be in the same folder. 不必位于同一文件夹中。

From the Getting Started documentation on the project: 从项目的入门文档中:

IPHONE USE IPHONE使用

MailCore has an included iPhone target, but it requires some additional compiled binaries (OpenSSL and CyrusSSL). MailCore包含一个iPhone目标,但它需要一些其他已编译的二进制文件(OpenSSL和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. 我目前无法提供这些信息,但是Remail公司正在为iPhone提供二进制文件和MailCore的编译副本。 Contact Remail for more information: 有关更多信息,请联系重新发送邮件:

mailcore@remail.com mailcore@remail.com

It seems like you'd need to get those before building against the iPhone target. 在针对iPhone目标进行构建之前,您似乎需要获取这些内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM