编译remail-iphone项目报错 Undefined symbols for architecture armv7 ImapFolderWorker fetchFrom

1 篇文章 0 订阅
1 篇文章 0 订阅

现象:

Undefined symbols for architecture armv7:

  "_IfTrue_RaiseException", referenced from:

      -[ImapFolderWorker fetchFrom:to:seqDelta:syncingNew:progressOffset:progressTotal:alreadySynced:] in ImapFolderWorker.o

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)


我的解决方法:屏蔽类ImapFolderWorker 的代码行,共两行:IfTrue_RaiseException(err != 0, CTUnknownError, [NSString stringWithFormat:@"Error number: %i", err]); 

但这样做只是可以保证编译通过,可以正常run,登录邮箱账号,但不能收邮件,彻底的解决方法:使用与remail相兼容的MailCore版本,见作者原话,如下


原因:见作者在google group 的解释

https://groups.google.com/forum/?fromgroups=#!topic/remail-iphone/SmnEeX9N6As

Hi!


I'm the author of MailCore. I recently made some changes that broke compatibility with Remail, sorry about that :(
Unfortunately it was something I had to do to improve the MailCore API.

For now use this revision of Mailcore to build against Remail, it should still work: https://github.com/mronge/MailCore/commit/7c13b7b9518e0bc2cdd86e092245e0e05afa0239

Eventually I'd like to get Remail working with the latest but I have not had a chance to do so.

Matt

解决:编译错误及不能收邮件的问题:

https://groups.google.com/forum/?fromgroups=#!topic/remail-iphone/SmnEeX9N6As

使用修改前的MailCore版本

https://github.com/mronge/MailCore/tree/7c13b7b9518e0bc2cdd86e092245e0e05afa0239

截图:


大功告成,可以下载邮件了,见截图。


如需要整合后的项目,包括:remail-iphone, mailcore, tree20 ,请关注我的新浪微博@Winters_huang ,稍后我会将所有项目提交到Github主页。如需要请微博@我


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值