您的位置:首页 > Web前端

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

2013-02-25 14:36 387 查看
现象:
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主页。如需要请微博@我
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐