[英]A library I no longer use crashes the app on startup. How to remove it completely? Xcode / Swift
I installed a library using cocoapods and decided I no longer need it and deleted. 我使用cocoapods安装了一个库,并决定我不再需要它并删除。 However, when I try to launch the app, it crashes with this error: 但是,当我尝试启动应用程序时,它会因此错误而崩溃:
dyld: Library not loaded: @rpath/LiquidFloatingActionButton.framework/LiquidFloatingActionButton
Referenced from: /var/containers/Bundle/Application/98CA3428-C3A7-45F3-BA24-E91D51D10503/MyProject.app/MyProject
Reason: image not found
(lldb)
LiquidFloatingActionButton is the name of the framework I deleted. LiquidFloatingActionButton是我删除的框架的名称。 How can I get rid of this? 我怎么能摆脱这个?
Go to your Build phases and remove the framework from "Link Binary with Libraries" 转到Build阶段并从“Link Binary with Libraries”中删除框架
then remove any associated file in your project directory 然后删除项目目录中的任何关联文件
Also, in your Build phases you must have some copy file/ run script / bundle resource phases associated with that cocoapod.. remove that as well 此外,在您的构建阶段,您必须具有与该cocoapod关联的一些复制文件/运行脚本/捆绑资源阶段..同时删除它
i am not sure how did you remove your framework you should select "REMOVE FROM REFERENCE ".Well you just remove your project from Link Binary with Libraries and also need to clean your drive data then check your framework search path in build setting. 我不确定你是如何删除你的框架你应该选择“从参考中移除”。你刚刚从Link Binary中删除了你的项目,还需要清理你的驱动器数据,然后在构建设置中检查你的框架搜索路径。 if all theses not works then update your cocoa pod. 如果所有这些都不起作用,那么更新你的可可豆荚。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.