Initial Setup

1. Add the CometChat SDK to your app:

Drag the MessageSDKFramework.framework into your Xcode project folder target. Make sure the “Copy items to destination’s group folder” checkbox is checked.


2. Add Dependencies:

Click on Targets → Your app name → and then the ‘Build Phases’ tab.
Expand ‘Link Binary With Libraries’ as given below. And add following frameworks.

  • SystemConfigurarion.framework
  • MobileCoreServices.framework
  • CoreGraphics.framework
  • CFNetwork.framework
  • libxml2.dylib
  • libz.dylib
  • libsqlite3.dylib
  • CC_2

    3. Add Linker Flag:

    Click on Targets → Your app name → and then the ‘Build Settings’ tab.
    Scroll down to the ‘Linking’ section, and double-click to the right of where it says ‘Other Linker Flags’. Click on the “+” button to add the following:

  • -ObjC
  • -all_load
  • CC_3

    CometChat allows users to converse through One-on-One Chat as well as Chatrooms

    Not finding what you need?

    The CometChat team is here to help!