简体   繁体   English

Cocoapods找不到库

[英]Library not found with Cocoapods

I'm trying to integrate Flurry into my App and I keep getting the following error: 我试图将Flurry集成到我的应用程序中,但不断出现以下错误:

ld: library not found for -lFlurry_5.1.0

I am installing with Cocoapods (0.33.1) 我正在用Cocoapods(0.33.1)安装

There is a linker flag -lFlurry_5.1.0 added by pods to the project and it does not resolve. -lFlurry_5.1.0链接器标志-lFlurry_5.1.0添加到项目中,并且不会解析。

The solution is to link against this library in your targets build phases as shown below. 解决方案是在目标构建阶段中将此库链接到该库,如下所示。 You can do this by clicking the '+' button below 'Link With Binary Libraries'. 您可以通过单击“与二进制库链接”下方的“ +”按钮来执行此操作。 The library is located at (PROJECT_DIR)/Pods/FlurrySDK/Flurry/Flurry_5.1.0.a 该库位于(PROJECT_DIR)/Pods/FlurrySDK/Flurry/Flurry_5.1.0.a

After adding this, you need to remove -lFlurry_5.1.0 flag from 'Other Linker Flags' under 'Build Settings' tab for your target. 添加后,需要从目标的“构建设置”选项卡下的“其他链接器标志”中删除-lFlurry_5.1.0标志。

Below are some screenshots for these steps. 以下是这些步骤的屏幕截图。

Pod安装后的构建阶段添加Flury库后构建阶段安装Pod后的链接器标志删除标记后的链接器标记

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM