简体   繁体   English

xcode simultor-找不到库

[英]xcode simultor - library not found for

I'm trying to run my ios project on the simulator but I'm told that: 我正在尝试在模拟器上运行ios项目,但被告知:

ld: library not found for -lPods-.....

This is not happening if I run it on my device. 如果我在设备上运行它,则不会发生这种情况。

I tried looking into the search paths in my Pods project, but I didn't see anything suspicious... Maybe i'm not looking for the right thing. 我尝试调查Pods项目中的搜索路径,但没有发现任何可疑...也许我不是在寻找正确的东西。

Can anyone help me by telling me what should I look for? 谁能告诉我我要寻找什么来帮助我?

Thanks 谢谢

Ok, 好,

I went to the Pods project file and saw that "Build Active Architecture Only" is set to Yes on debug but set to No on release... I just set it to No on both and it works... 我转到Pods项目文件,发现“仅调试时构建Active Architecture”设置为“是”,而在发布时设置为“否” ...我都将其设置为“否”,并且可以正常工作...

That means that there is no libPods-....dylib in the library search path that you passed to the linker. 这意味着您传递给链接器的库搜索路径中没有libPods -.... dylib。 I can't be more specific because you omitted the rest of the library name in your question. 我无法具体说明,因为您在问题中省略了其余的库名。 You should make sure that your library search paths are correctly pointing to where you have the iOS Simulator version of your library. 您应该确保您的媒体库搜索路径正确指向您拥有iOS模拟器版本的媒体库的位置。

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

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