Cocoapods: use_frameworks! causes linker errors

两盒软妹~` 提交于 2019-12-11 04:09:37

问题


I want to provide my Objective-C library as cocoapod and some users wants to get it with 'use_frameworks!' option. Without this key it works fine but after including it in Podfile Xcode 7.1 Beta throws these errors:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_***", referenced from:
objc-class-ref in ***.o
"_OBJC_CLASS_$_***", referenced from:
_OBJC_CLASS_$_*** in ***.o
objc-class-ref in ***.o
objc-class-ref in ***.o
(maybe you meant: _OBJC_CLASS_$_***)
"_OBJC_CLASS_$_***", referenced from:
objc-class-ref in ***.o
objc-class-ref in ***.o
objc-class-ref in ***.o
"_OBJC_METACLASS_$_***", referenced from:
_OBJC_METACLASS_$_*** in ***.o
(maybe you meant: _OBJC_METACLASS_$_***)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

来源:https://stackoverflow.com/questions/32530058/cocoapods-use-frameworks-causes-linker-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!