简体   繁体   English

我不再使用的库在启动时崩溃应用程序。 如何完全删除它? Xcode / Swift

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

相关问题 如何在快速应用程序中从键盘上完全删除“隐藏/完成”按钮? - How can I completely remove the hide/done button from a keyboard in a swift app? 如何完全删除 Xcode 中的命名颜色集? - How can I remove Named Color Set in Xcode completely? 在应用程序购买之后,应用程序在启动时崩溃。 产品识别=无? - Following in app purchase, app crashing on startup. productIdentifier=nil? UIImagePickerController 使应用程序崩溃 | Swift3,Xcode8 - UIImagePickerController crashes app | Swift3, Xcode8 如何完全从Xcode和回购中删除podspec? - How to remove podspecs completely from Xcode and repo? App crashes, Xcode 11.5, Swift 5. NSInternalInconsistencyException … Use the statusBarManager object on the window scene instead - App crashes, Xcode 11.5, Swift 5. NSInternalInconsistencyException … Use the statusBarManager object on the window scene instead 完全删除XCode Target - Completely remove XCode Target 如何在我的IOS(Swift)项目Xcode 9中导入Java库并使用它 - How to Import Java Library and use It In my IOS(Swift) Project, Xcode 9 安装已发布的 Xcode 9 后如何完全删除 Xcode 9 beta? - How to completely remove Xcode 9 beta after installing released Xcode 9? 如何快速删除(或不使用)xcode中的启动屏幕故事板 - how to remove(or not use) launch screen storyboard in xcode with swift
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM