dyld:找不到符号:_OBJC_CLASS _ $ _ Reachability,Xcode 11崩溃 [英] dyld: Symbol not found: _OBJC_CLASS_$_Reachability, Xcode 11 crash

查看:181
本文介绍了dyld:找不到符号:_OBJC_CLASS _ $ _ Reachability,Xcode 11崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅在安装pod PusherSwift 后,我才遇到以下崩溃.

I encountered the following crash only after installing the pod PusherSwift.

在应用程序启动时,使用以下崩溃日志导致崩溃:

On application launch, getting a crash with the following crash logs:

dyld: Symbol not found: _OBJC_CLASS_$_Reachability
  Referenced from: /Users/abc/Library/Developer/CoreSimulator/Devices/387D652C-CB80-4739-88B1-DD04ACAFA8D6/data/Containers/Bundle/Application/D9CEB1B3-9B9D-42E8-AFB6-8BCA056DDE1C/LalaFood-User.app/Frameworks/ChatSDK.framework/ChatSDK
  Expected in: /Users/abc/Library/Developer/CoreSimulator/Devices/387D652C-CB80-4739-88B1-DD04ACAFA8D6/data/Containers/Bundle/Application/D9CEB1B3-9B9D-42E8-AFB6-8BCA056DDE1C/LalaFood-User.app/Frameworks/Reachability.framework/Reachability
 in /Users/abc/Library/Developer/CoreSimulator/Devices/387D652C-CB80-4739-88B1-DD04ACAFA8D6/data/Containers/Bundle/Application/D9CEB1B3-9B9D-42E8-AFB6-8BCA056DDE1C/LalaFood-User.app/Frameworks/ChatSDK.framework/ChatSDK

我直接复制了以下文件到我的项目.当我检查 PusherSwift.podspec 时,它具有 ReachabilitySwift 作为依赖项.所以,我猜这就是问题的出处.我尝试删除 Reachability file 直接复制到我的项目中,但是运行后,崩溃仍然存在.

I have the following file copied directly to my project. As I checked PusherSwift.podspec, it has ReachabilitySwift as a dependency. So, I'm guessing that's where the problem came from. I tried deleting the Reachability file that was directly copied on my project, but after running, the crash is still there.

我也有Tony Million的 Reachability 库,但我不知道哪个库

I also have Reachability library by Tony Million through another pod, but I have no idea which one.

我还尝试在一个新的新项目上实现 PusherSwift ,它工作得很好.但是当我尝试现有项目时,它总是崩溃.

I also tried implementing PusherSwift on a fresh new project and it works perfectly fine. But when I try on my existing project, it always crashes.

是否需要导入某些内容(例如头文件)或要添加的内容?我一直看到在 Frameworks,Libraries和Embedded Content 上添加框架.我试图在此添加 Reachability.framework ,但没有成功.

Is there something I have to import like the header file or something to add? I keep seeing to add the framework on Frameworks, Libraries, and Embedded Content. I tried to add Reachability.framework there, but it did not work.

希望有人可以提供帮助.

Hoping someone could help.

谢谢!

推荐答案

目前,我只是对此进行了变通.我只是从 PusherSwift 中手动复制了需要的文件,而不是通过Cocoapods安装了它.然后,pod安装了它的依赖项.

For the time being, I just did a workaround on this. I just manually copied the files I need from PusherSwift, instead of installing it via Cocoapods. Then, pod installed its dependencies.

这篇关于dyld:找不到符号:_OBJC_CLASS _ $ _ Reachability,Xcode 11崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆