Apple Mach-O链接器Id错误PDColoredProgressView

问题描述

| 我正在尝试从此处使用PDColoredProgressView。它正在运行,但是由于某种原因,XCode决定没有它,并抛出27个Apple Mach-O Linker(Id)错误。 ??有人可以解码吗?谢谢!
Ld /Users/xxxxxxxx/Library/Developer/Xcode/DerivedData/xxxxx-cqamvgtgfzdealbjtkomtjzxkdgr/Build/Intermediates/xxxxxxx.build/Debug-iphoneos/xxxxx.build/Objects-normal/armv6/xxxxx normal armv6
    cd \"/Users/xxxxxxx/Documents/iPhone Apps/xxxxx\"
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.0
    setenv PATH \"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin\"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -L/Users/xxxxxxxxx/Library/Developer/Xcode/DerivedData/xxxxx-cqamvgtgfzdealbjtkomtjzxkdgr/Build/Products/Debug-iphoneos -F/Users/xxxxxxxxx/Library/Developer/Xcode/DerivedData/xxxxx-cqamvgtgfzdealbjtkomtjzxkdgr/Build/Products/Debug-iphoneos -filelist /Users/xxxxxxxxx/Library/Developer/Xcode/DerivedData/xxxxx-cqamvgtgfzdealbjtkomtjzxkdgr/Build/Intermediates/xxxxx.build/Debug-iphoneos/xxxxx.build/Objects-normal/armv6/xxxxx.LinkFileList -dead_strip -miphoneos-version-min=4.0 -framework UIKit -framework Foundation -framework QuartzCore -o /Users/xxxxxxxxx/Library/Developer/Xcode/DerivedData/xxxxx-cqamvgtgfzdealbjtkomtjzxkdgr/Build/Intermediates/xxxxx.build/Debug-iphoneos/xxxxx.build/Objects-normal/armv6/xxxxx

Undefined symbols for architecture armv6:
  \"_CGRectGetMinX\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGRectGetMinY\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGContextSetRGBstrokeColor\",referenced from:
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGContextSetlinewidth\",referenced from:
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGContextIsPathEmpty\",referenced from:
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGColorSpaceCreateDeviceRGB\",referenced from:
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGContextSaveGState\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGRectGetHeight\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
  \"_CGContextstrokeRect\",referenced from:
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGContextRestoreGState\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGContextSetFillColorWithColor\",referenced from:
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGRectGetWidth\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
  \"_CGContextTranslateCTM\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGContextScaleCTM\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
  \"_CGContextSetRGBFillColor\",referenced from:
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGContextMovetoPoint\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGContextFillRect\",referenced from:
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGContextClip\",referenced from:
      _fillRectWithLinearGradient in PDColoredProgressView.o
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGContextAddLinetoPoint\",referenced from:
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGContextstrokePath\",referenced from:
      -[PDColoredProgressView drawRect:] in PDColoredProgressView.o
  \"_CGContextAddRect\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
  \"_CGGradientRelease\",referenced from:
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGContextDrawLinearGradient\",referenced from:
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGColorSpaceRelease\",referenced from:
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGContextAddArcToPoint\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
  \"_CGGradientCreateWithColorComponents\",referenced from:
      _fillRectWithLinearGradient in PDColoredProgressView.o
  \"_CGContextClosePath\",referenced from:
      _addRoundedRectToPath in PDColoredProgressView.o
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status
谢谢! *注意:我从错误消息中删除了我的用户名和应用名称,并将其替换为x \     

解决方法

        从错误日志中,我相信您缺少项目或库体系结构设置(取决于您在上面的代码中使用的位置)。只需在项目设置中添加armv6(或等效的体系结构名称),一切就可以了。     ,        您没有安装Core Graphics库!添加核心图形库,然后在PDColoredProgressView.h中添加“ 1”。 您可能还需要QuartzCore来完成某些工作! armv7与它无关,我不知道为什么他们在那扔了哈哈!     

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...