[英]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.