iphone - 架构 armv7s 的 undefined symbol :

标签 iphone ios objective-c

所以我正在尝试将其应用到我当前的项目中:

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

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)

最佳答案

我已经下载了 MBAlertView 存储库,然后编译了示例项目并且成功了。之后,我将 MBAlertView 目录添加到我的项目中,并且在项目文件的构建阶段的链接二进制文件和库部分中添加 QuartzCore.framework 后它开始工作。

关于iphone - 架构 armv7s 的 undefined symbol :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14834194/

相关文章:

javascript - 在用户关闭/更改移动浏览器选项卡之前检测

iphone - 在 Xcode 中使用 AutoLayout 会禁用我的代码(动态地)工作?

html - 输入行为异常?

ios - 未调用嵌套 UITextField 的 UITextFieldDelegate

iPhone:TableView 下的 ImageView 和按钮

ios - 如何以编程方式将 UIView(或更具体地说,UITextAreas)嵌入到文本中?

ios - UIScrollView 在 iOS 7 中没有滚动到底部

ios - 如何为 UITableView 中的部分添加标题?

ios - 我有 UIViewController。而UIView里面如何独立检测触摸?

ios - Storyboard不包含带有标识符的 View Controller ......使用多个 Storyboard文件时