尝试在我的 Xcode 项目中安装 Intercom pod 时,控制台出现错误:
[Intercom] ERROR - 💥👎 The Intercom.bundle hasn't been added to your app correctly. This will result in images not appearing in the SDK's messaging UI. More information on how to correctly integrate Intercom is available here: https://developers.intercom.com/docs/ios-installation.
最佳答案
cocoapods 安装 Intercom 的方式似乎有些不对。也许腐败了,通过执行这些步骤,它将清除所有椰子足类并重新开始。这可能会解决您的问题。
打开你的 Podfile 并复制你在那里列出的现有 pod(Podfile 在你的项目目录中)。
关闭 Xcode 工作区。
- 打开终端
cd
到您的项目目录。- 从终端运行
pod deintegrate
- 删除所有与 cocoapods 相关的文件和文件夹(Podfile、Podfile.lock、Pods 文件夹和 xcworkspace 文件)(如果还有的话)。
- 从终端运行
pod init
- 将 pod 列表添加到保存目录中的 Podfile。
- 从终端运行
pod install
打开项目文件夹中的 xcworkspace 文件。
关于objective-c - 尝试通过 Cocoapods 安装 'Intercom' pod 时 Intercom.bundle 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35673714/