我试图在ios模拟器上运行我的示例应用程序时出错

时间:2015-12-16 13:00:12

标签: ios linker-errors

我无法理解的意外错误如下:

    "_CGAffineTransformIdentity", referenced from:
      -[TTTAttributedLabel drawTextInRect:] in TTTAttributedLabel.o
  "_CGContextAddLineToPoint", referenced from:
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CGContextAddPath", referenced from:
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
  "_CGContextFillPath", referenced from:
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
  "_CGContextMoveToPoint", referenced from:
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CGContextScaleCTM", referenced from:
      -[TTTAttributedLabel drawTextInRect:] in TTTAttributedLabel.o
  "_CGContextSetFillColorWithColor", referenced from:
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
  "_CGContextSetGrayStrokeColor", referenced from:
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CGContextSetLineJoin", referenced from:
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
  "_CGContextSetLineWidth", referenced from:
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CGContextSetShadowWithColor", referenced from:
      -[TTTAttributedLabel drawTextInRect:] in TTTAttributedLabel.o
  "_CGContextSetStrokeColorWithColor", referenced from:
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CGContextSetTextMatrix", referenced from:
      -[TTTAttributedLabel drawTextInRect:] in TTTAttributedLabel.o
  "_CGContextSetTextPosition", referenced from:
      -[TTTAttributedLabel drawFramesetter:attributedString:textRange:inRect:context:] in TTTAttributedLabel.o
  "_CGContextStrokePath", referenced from:
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CGContextTranslateCTM", referenced from:
      -[TTTAttributedLabel drawTextInRect:] in TTTAttributedLabel.o
  "_CGPathAddRect", referenced from:
      -[TTTAttributedLabel characterIndexAtPoint:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawFramesetter:attributedString:textRange:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel sizeThatFits:] in TTTAttributedLabel.o
  "_CGPathCreateMutable", referenced from:
      -[TTTAttributedLabel characterIndexAtPoint:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawFramesetter:attributedString:textRange:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel sizeThatFits:] in TTTAttributedLabel.o
  "_CGRectContainsPoint", referenced from:
      -[TTTAttributedLabel characterIndexAtPoint:] in TTTAttributedLabel.o
  "_CGRectGetWidth", referenced from:
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CGRectInset", referenced from:
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
  "_CGRectZero", referenced from:
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CGSizeZero", referenced from:
      -[TTTAttributedLabel drawTextInRect:] in TTTAttributedLabel.o
  "_CTFontCreateCopyWithAttributes", referenced from:
      ___NSAttributedStringByScalingFontSize_block_invoke in TTTAttributedLabel.o
  "_CTFontCreateWithName", referenced from:
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
      _NSAttributedStringAttributesFromLabel in TTTAttributedLabel.o
  "_CTFontGetSize", referenced from:
      ___NSAttributedStringByScalingFontSize_block_invoke in TTTAttributedLabel.o
  "_CTFontGetUnderlineThickness", referenced from:
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CTFrameGetLineOrigins", referenced from:
      -[TTTAttributedLabel characterIndexAtPoint:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawFramesetter:attributedString:textRange:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
  "_CTFrameGetLines", referenced from:
      -[TTTAttributedLabel characterIndexAtPoint:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawFramesetter:attributedString:textRange:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawBackground:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawStrike:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel sizeThatFits:] in TTTAttributedLabel.o
  "_CTFramesetterCreateFrame", referenced from:
      -[TTTAttributedLabel characterIndexAtPoint:] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawFramesetter:attributedString:textRange:inRect:context:] in TTTAttributedLabel.o
      -[TTTAttributedLabel sizeThatFits:] in TTTAttributedLabel.o
  "_CTFramesetterCreateWithAttributedString", referenced from:
      -[TTTAttributedLabel framesetter] in TTTAttributedLabel.o
      -[TTTAttributedLabel drawTextInRect:] in TTTAttributedLabel.o
  "_CTFramesetterSuggestFrameSizeWithConstraints", referenced from:
      -[TTTAttributedLabel textRectForBounds:limitedToNumberOfLines:] in TTTAttributedLabel.o
      -[TTTAttributedLabel sizeThatFits:] in TTTAttributedLabel.o
  "_CTLineCreateTruncatedLine", referenced from:
      -[TTTAttributedLabel drawFramesetter:attributedString:textRange:inRect:context:] in TTTAttributedLabel.o
  "_CTLineCreateWithAttributedString", referenced from:
      -[TTTAttributedLabel drawFramesetter:attributedString:textRange:inRect:context:] in TTTAttributedLabel.o
  "_CTLineDraw", referenced from:
      -[TTTAttributedLabel drawFramesetter:attributedString:textRange:inRect:context:] in TTTAttributedLabel.o

1 个答案:

答案 0 :(得分:2)

CoreText CoreGraphics 框架添加到您的应用中。