今天,我使用cocoapods源代码管理将其添加到我的项目MWPhotoBrowser中。
在模拟器中的测试是正确的,但当我开始在设备(ipode touch 5gen和iphone4s)上测试应用程序时,我遇到了一些问题:
ld: warning: directory not found for option '-L/Users/user/Pods/build/Debug-iphoneos'
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_MWPhotoBrowser", referenced from:
objc-class-ref in KYMUFinalPageTVC.o
"_OBJC_CLASS_$_MWPhoto", referenced from:
objc-class-ref in KYMUFinalPageTVC.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)发布于 2014-12-31 18:37:50
如果您在MWPhotoBrowser中遇到此错误,并且您使用的是Xcode6.1,请执行以下操作:
转到您的项目-> Build Settings,搜索"Other Linked Flags“并添加$(OTHER_LDFLAGS)。
https://stackoverflow.com/questions/22407832
复制相似问题