thipoo24
thipoo24

Reputation: 138

how to import MBCalendarKit in your swift project

when I try to import MBCalendarKit in my project, it shows no such module error and linker command error. I tried all the solution given in stackoverflow under this topic and no success. help me. Thanks in advance.enter image description here

Upvotes: 0

Views: 204

Answers (1)

Ollie
Ollie

Reputation: 1946

I've just imported into a test project, and using the latest version of Xcode (7.2.1) it's slightly different than the installation instructions.

  1. Assuming you're using pods, install the pod and make sure to open the .xcworkspace file.

  2. Next add a bridging header to the project, and import the main calendar kit file, like so

    #import <MBCalendarKit/CalendarKit.h>

  3. Inside your UIViewController subclass, import MBCalendarKit like so:

    import MBCalendarKit

  4. Celebrate!

Upvotes: 0

Related Questions