AliSoftware/OHAttributedLabel — Issue #63: i got 26 apple mach-o linker error
Author: gn1749465
Created: 2012-02-28 03:14:58+00:00
State: open

NSAttributedString+Attributes.h and .m
OHAttributedLabel.h and .m were added.
after that, the CoreText framework is added.
when I try to build the project
these error is shown

Undefined symbols for architecture armv7:
"_kCTFontFamilyNameAttribute", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setFontFamily:size:bold:italic:range:] in NSAttributedString+Attributes.o
"_CTFrameDraw", referenced from:
-[OHAttributedLabel drawTextInRect:] in OHAttributedLabel.o
"_CTFontCreateWithFontDescriptor", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setFontFamily:size:bold:italic:range:] in NSAttributedString+Attributes.o
"_CTLineGetStringRange", referenced from:
_CTLineContainsCharactersFromStringRange in OHAttributedLabel.o
"_CTLineGetTypographicBounds", referenced from:
_CTLineGetTypographicBoundsAsRect in OHAttributedLabel.o
(maybe you meant: _CTLineGetTypographicBoundsAsRect)
"_CTRunGetTypographicBounds", referenced from:
_CTRunGetTypographicBoundsAsRect in OHAttributedLabel.o
(maybe you meant: _CTRunGetTypographicBoundsAsRect)
"_kCTFontTraitsAttribute", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setFontFamily:size:bold:italic:range:] in NSAttributedString+Attributes.o
"_CTRunGetStringRange", referenced from:
_CTRunGetTypographicBoundsAsRect in OHAttributedLabel.o
_CTRunContainsCharactersFromStringRange in OHAttributedLabel.o
"_CTFontCopyFullName", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setTextBold:range:] in NSAttributedString+Attributes.o
"_CTLineGetOffsetForStringIndex", referenced from:
_CTRunGetTypographicBoundsAsRect in OHAttributedLabel.o
"_kCTUnderlineStyleAttributeName", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setTextUnderlineStyle:range:] in NSAttributedString+Attributes.o
"_CTFontCreateCopyWithSymbolicTraits", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setTextBold:range:] in NSAttributedString+Attributes.o
"_CTLineGetGlyphRuns", referenced from:
-[OHAttributedLabel drawActiveLinkHighlightForRect:] in OHAttributedLabel.o
"_CTFrameGetLines", referenced from:
-[OHAttributedLabel linkAtPoint:] in OHAttributedLabel.o
-[OHAttributedLabel drawActiveLinkHighlightForRect:] in OHAttributedLabel.o
"_kCTFontSymbolicTrait", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setFontFamily:size:bold:italic:range:] in NSAttributedString+Attributes.o
"_CTFramesetterCreateWithAttributedString", referenced from:
-[NSAttributedString(OHCommodityConstructors) sizeConstrainedToSize:fitRange:] in NSAttributedString+Attributes.o
-[OHAttributedLabel drawTextInRect:] in OHAttributedLabel.o
"_CTFrameGetLineOrigins", referenced from:
-[OHAttributedLabel linkAtPoint:] in OHAttributedLabel.o
-[OHAttributedLabel drawActiveLinkHighlightForRect:] in OHAttributedLabel.o
"_CTParagraphStyleCreate", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setTextAlignment:lineBreakMode:range:] in NSAttributedString+Attributes.o
"_kCTParagraphStyleAttributeName", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setTextAlignment:lineBreakMode:range:] in NSAttributedString+Attributes.o
"_CTFontCreateWithName", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setFontName:size:range:] in NSAttributedString+Attributes.o
"_CTFramesetterCreateFrame", referenced from:
-[OHAttributedLabel drawTextInRect:] in OHAttributedLabel.o
"_CTFontDescriptorCreateWithAttributes", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setFontFamily:size:bold:italic:range:] in NSAttributedString+Attributes.o
"_kCTFontAttributeName", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setFontName:size:range:] in NSAttributedString+Attributes.o
-[NSMutableAttributedString(OHCommodityStyleModifiers) setFontFamily:size:bold:italic:range:] in NSAttributedString+Attributes.o
-[NSMutableAttributedString(OHCommodityStyleModifiers) setTextBold:range:] in NSAttributedString+Attributes.o
"_CTLineGetStringIndexForPosition", referenced from:
-[OHAttributedLabel linkAtPoint:] in OHAttributedLabel.o
"_CTFramesetterSuggestFrameSizeWithConstraints", referenced from:
-[NSAttributedString(OHCommodityConstructors) sizeConstrainedToSize:fitRange:] in NSAttributedString+Attributes.o
-[OHAttributedLabel drawTextInRect:] in OHAttributedLabel.o
"_kCTForegroundColorAttributeName", referenced from:
-[NSMutableAttributedString(OHCommodityStyleModifiers) setTextColor:range:] in NSAttributedString+Attributes.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status

please help me :(