6

因此,我正在尝试将其实施到我当前的项目中:

https://github.com/mobitar/MBAlertView

Wenn 我尝试在我的应用程序中使用它,但出现此错误:

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应用程序/Janssenapp应用程序/Janssenapp应用程序/Janssenapp应用程序/JanssenappLinkFileList -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/JanssenappLinkFileList -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

架构 armv7s 的未定义符号:
“_OBJC_CLASS_$_CABasicAnimation”,引用自:MBSpinningCircle.o 中的 objc-class-ref “_kCAMediaTimingFunctionEaseOut”,引用自:MBAlertView.o “_kCATransitionFade”中的-[MBAlertView animationWithValues:times:duration:],引用自:-[UIView(动画) UIView+Animations.o 中的 addFadingAnimationWithDuration:] "_kCAMediaTimingFunctionEaseInEaseOut",引用自:-[UIView(Animations) animationPop] 在 UIView+Animations.o -[UIView(Animations) addPulsingAnimation] 在 UIView+Animations.o -[UIView(动画)在 UIView+Animations.o "_kCATransitionFromBottom" 中的 addFadingAnimationWithDuration:],引用自:-[UIView(Animations) addFadingAnimationWithDuration:] 在 UIView+Animations.o "_OBJC_CLASS_$_CATransition",引用自:UIView+Animations.o 中的objc-class-ref "_kCAMediaTimingFunctionEaseIn",引用自:MBAlertView.o 中的-[MBAlertView addDismissAnimation] "_kCAFillModeForwards",引用自:-[UIView(Animations) animationPop]在 UIView+Animations.o -[UIView(Animations) addPulsingAnimation] 在 UIView+Animations.o -[MBAlertView animationWithValues:times:duration:] 在MBAlertView.o "_OBJC_CLASS_$_CAMediaTimingFunction",引用自:objc-class-ref in UIView +Animations.o objc-class-ref in MBAlertView.o "_OBJC_CLASS_$_CAKeyframeAnimation",引用自: objc-class-ref in UIView+Animations.o objc-class-ref in MBlertView.o "_CATransform3DMakeScale",引用自:-[UIView(Animations) animationPop] 在 UIView+Animations.o -[UIView(Animations) addPulsingAnimation] 在 UIView+Animations.o -[MBAlertView addDismissAnimation] 在 MBAlertView.o -[MBAlertView addBounceAnimationToLayer:] 在 MBAlertView.o -[MBAlertView MBAlertView.o 中的 didSelectBodyLabel:] -MBAlertView.o 中的 [MBAlertView didHighlightButton:] ld:未找到架构 armv7s clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)o -[MBAlertView didHighlightButton:] 在 MBAlertView.old 中:未找到架构 armv7s clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)o -[MBAlertView didHighlightButton:] 在 MBAlertView.old 中:未找到架构 armv7s clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

4

3 回答 3

6

I have downloaded MBAlertView repository than compiled the example project and it worked. After that i have added MBAlertView directory to my project and it started to work after i added QuartzCore.framework in Link Binary With Librarys section of Build Phases in project file.

于 2013-02-12T14:07:39.207 回答
1

您只需查看以下可能对您有所帮助的问题

  1. 问题 1

  2. 问题2

于 2013-02-12T14:11:28.910 回答
0

除非你正在编写高性能游戏并使用汇编编写,否则只需在构建设置中关闭 armv7s 架构即可。这对普通应用程序没有任何影响(它是 iphone5 中的处理器)。

于 2013-02-12T14:13:00.333 回答