2013-02-12 82 views
4

所以我要把落實到我目前的項目是:用於建築armv7s未定義的符號:

https://github.com/mobitar/MBAlertView

德恩我嘗試使用這個在我的應用我得到這個錯誤:

Ld /Users/florianschaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Products/Debug-iphoneos/Janssenapp.app/Janssenapp normal armv7s cd /Users/florianschaal/Developer/Janssenapp setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/florianschaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Products/Debug-iphoneos -L/Users/florianschaal/Developer/Janssenapp/Janssenapp/ZBarSDK -F/Users/florianschaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Products/Debug-iphoneos -filelist /Users/florianschaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Intermediates/Janssenapp.build/Debug-iphoneos/Janssenapp.build/Objects-normal/armv7s/Janssenapp.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.1 -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/florianschaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Products/Debug-iphoneos/Janssenapp.app/Janssenapp

Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CABasicAnimation", referenced from: objc-class-ref in MBSpinningCircle.o "_kCAMediaTimingFunctionEaseOut", referenced from: -[MBAlertView animationWithValues:times:duration:] in MBAlertView.o "_kCATransitionFade", referenced from: -[UIView(Animations) addFadingAnimationWithDuration:] in UIView+Animations.o "_kCAMediaTimingFunctionEaseInEaseOut", referenced from: -[UIView(Animations) animationPop] in UIView+Animations.o -[UIView(Animations) addPulsingAnimation] in UIView+Animations.o -[UIView(Animations) addFadingAnimationWithDuration:] in UIView+Animations.o "_kCATransitionFromBottom", referenced from: -[UIView(Animations) addFadingAnimationWithDuration:] in UIView+Animations.o "_OBJC_CLASS_$_CATransition", referenced from: objc-class-ref in UIView+Animations.o "_kCAMediaTimingFunctionEaseIn", referenced from: -[MBAlertView addDismissAnimation] in MBAlertView.o "_kCAFillModeForwards", referenced from: -[UIView(Animations) animationPop] in UIView+Animations.o -[UIView(Animations) addPulsingAnimation] in UIView+Animations.o -[MBAlertView animationWithValues:times:duration:] in MBAlertView.o "_OBJC_CLASS_$_CAMediaTimingFunction", referenced from: objc-class-ref in UIView+Animations.o objc-class-ref in MBAlertView.o "_OBJC_CLASS_$_CAKeyframeAnimation", referenced from: objc-class-ref in UIView+Animations.o objc-class-ref in MBAlertView.o "_CATransform3DMakeScale", referenced from: -[UIView(Animations) animationPop] in UIView+Animations.o -[UIView(Animations) addPulsingAnimation] in UIView+Animations.o -[MBAlertView addDismissAnimation] in MBAlertView.o -[MBAlertView addBounceAnimationToLayer:] in MBAlertView.o -[MBAlertView didSelectBodyLabel:] in MBAlertView.o -[MBAlertView didHighlightButton:] in MBAlertView.o ld: symbol(s) not found for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)

+0

如果你不需要它,只需扔掉該項目的演示,這似乎是罪魁禍首。 – mrueg 2013-02-12 14:01:15

回答

6

我已經下載了MBAlertView存儲庫比編譯示例項目,它的工作。之後,我已經將MBAlertView目錄添加到我的項目中,並且在添加了鏈接二進制文件中的QuartzCore.framework和項目文件中的構建階段的Librarys部分之後,它開始工作。

+0

好吧生病嘗試 – 2013-02-12 14:29:30

+2

添加了QuartzCore.framework,現在所有的錯誤都消失了。謝謝! – 2013-02-13 09:25:48

0

除非你正在寫一個高性能的遊戲和裝配寫,只需打開在構建設置中關閉armv7s體系結構。這對普通應用程序沒有任何影響(它是iphone5中的處理器)。

+0

我在哪裏改變這個? – 2013-02-12 14:49:41

+0

構建設置:有效的體系結構 - 只是刪除armv7s – ahwulf 2013-02-12 21:31:20

+0

現在我得到這個錯誤:沒有體系結構編譯(ONLY_ACTIVE_ARCH = YES,活動拱= armv7s,VALID_ARCHS = armv7)。 那麼我如何設置armv7活動? – 2013-02-13 07:43:58

相關問題