0

在我第一次使用 CocoaPods 时,我遇到了一个问题。我在现有项目上使用 CocoaPods 专门为 DTAttributedLabel 安装 DTCoreText。一切顺利,似乎工作正常,但第二个我包含 DTCoreText.h 我在 CoreText 框架中遇到多个错误,如下所示:

CoreText.framework/Headers/CTRunDelegate.h:130:16: Expected member name or ';' after declaration specifiers

 typedef struct
 {
     CFIndex                            version;
     CTRunDelegateDeallocateCallback    dealloc;
     CTRunDelegateGetAscentCallback getAscent;
     CTRunDelegateGetDescentCallback    getDescent;
     CTRunDelegateGetWidthCallback  getWidth;
 } CTRunDelegateCallbacks;


CoreText.framework/Headers/SFNTLayoutTypes.h:821:23: Expected member name or ';' after declaration specifiers

struct LcarCaretTable {
   Fixed               version;
   UInt16              format;
   SFNTLookupTable     lookup;
 };

我创建了一个单一视图项目只是为了检查我的安装技术,并且能够很好地使用 DTCoreText。

  • 是否有我缺少的设置可能导致这种情况?(部署目标:6.1,SDK 6.1)
  • 也许与现有图书馆发生冲突?
4

1 回答 1

0

我通过创建一个新项目并通过 Cocoapods 安装所有依赖项解决了这个问题。该问题似乎与冲突有关。

于 2013-04-11T14:24:06.737 回答