简体   繁体   中英

Error in Intercom.bundle when trying to install 'Intercom' pod via Cocoapods

尝试在我的 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.

Seems something is not right with the way cocoapods installed Intercom. Maybe corrupt, by doing these step it will clear all the cocoapods and start fresh. Which might solve your problem.

Open your Podfile and copy the existing pods you have listed there (The Podfile is in your project directory).

Close your Xcode workspace.

  1. Open Terminal
  2. cd to the directory of your project.
  3. run pod deintegrate from Terminal
  4. delete all files and folders related to cocoapods (Podfile, Podfile.lock, Pods folder and the xcworkspace file) if there are any left.
  5. run pod init from Terminal
  6. add the list of pods to the Podfile in the directory save it.
  7. run pod install from Terminal

Open xcworkspace file in your project folder.

在xcode中右击标记为红色的文件->删除,那么应该就可以解决了:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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