[英]adding ios core framework to podfile
我在Podfile中添加了一个pod,并且在构建时出现编译器错误:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_CLLocation", referenced from:
objc-class-ref in MoPubAdapter(GADMAdapterMoPub.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
然后,我转到Build Settings > Target > Debug > Other Linker Files
并手动添加-framework
和"CoreLocation"
。
编译器不再抱怨。 我认为它们是作为吊舱的先决条件而被遗忘的。
现在,我不喜欢手动更改此值的事实。 如果Cocoapods即再次覆盖此值,我可能会忘记这样做。 有什么办法可以将CoreLocation
框架添加到Podfile中,以便Cocoapods可以将其包括在内?
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.