cdto your project directory, initialize git, and Add MessageKit as a git submodule by running the following command:
$ git submodule add https://github.com/MessageKit/MessageKit.gitcdto the newMessageKitfolder and trigger carthage update by the following command:
$ carthage update --platform iOS- Open
MessageKitfolder, and drag theMessageKit.xcodeprojinto the Project Navigator of your application's Xcode project. It should appear nested underneath your application's blue project icon. - Select the
MessageKit.xcodeprojin the Project Navigator and verify the deployment target matches that of your application target. - Next, select your application project in the Project Navigator (blue project icon), navigate to the target configuration window and select the application target.
- In the tab bar at the top of that window, open the "General" panel.
- Click on the
+button under the "Embedded Binaries" section. - You will see two different
MessageKit.xcodeprojfolders each with two different versions of theMessageKit.frameworknested inside aProductsfolder. - Select the top
MessageKit.frameworkfor iOS and the bottom one for OS X. - Voila! Now you can
import MessageKitand build the project.