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
I'm trying to use PDColoredProgressView from here. It was working, but for some reason, XCode decided it wasn't having it and throws up 27 Apple Mach-O Linker (Id) Errors. Huh? Can anyone decode this? Thanks!
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
Thank you!
*Note: I removed my username and app name from the error message and replaced them with x's
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从错误日志中,我相信您缺少项目或库架构设置(取决于您使用上述代码的位置)。只需在项目设置中添加armv6(或其等效的架构名称),一切就应该没问题。
From Error log, I believe you are missing project or library Architecture settings (depending on where you used above code). Just add armv6(or its equivalent architecture name) in project settings and things should be fine.
您还没有安装 Core Graphics 库!添加核心图形库,然后在 PDColoredProgressView.h 中添加
#import
..您可能还需要 QuartzCore 来完成您正在做的一些事情! armv7 与它无关,我不知道他们为什么把它扔在那里哈哈!
You don't have the Core Graphics library installed! Add the core graphics library then in the PDColoredProgressView.h add
#import <CoreGraphics/CoreGraphics.h>
..You may also need QuartzCore for some of the stuff you are doing! armv7 has nothing to do with it I dunno why they threw that in there haha!