【问题标题】:Failed to access the MailCore Classes in any other classes无法访问任何其他类中的 MailCore 类
【发布时间】:2012-08-30 04:14:13
【问题描述】:

我在我的应用程序中添加了 MailCore.xcodeproj,并像在 Remail 应用程序中设置一样设置标题搜索路径、库搜索路径和框架搜索路径。但是当我在导入任何其他类并创建这样的对象后访问 MailCore 的类(如 CTCoreAccount、CTCoreFolder 等)时:

#import "CTCoreAccount.h"
CTCoreAccount* account = [[CTCoreAccount alloc] init];

我会得到以下错误:

架构 i386 的未定义符号:
“_OBJC_CLASS_$_CTCoreAccount”,引用自: ImapSync.old 中的 objc-class-ref:未找到架构 i386 collect2 的符号:ld 返回 1 个退出状态

如何解决此错误?

【问题讨论】:

    标签: iphone objective-c ios mailcore


    【解决方案1】:

    我认为你的导入语句是错误的。

    您应该使用相对标头 - 并且只使用框架的顶级标头:

    #import <MailCore/MailCore.h>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多