Search code examples
iosxcode4importworkspace

Unable to correctly import framework into xcode project


I'm trying to add KKGridView to my project. I've followed thier description from github as best I can:

  • Create a new workspace in Xcode in the same directory as your existing *.xcodeproj.
  • Drag in your existing Xcode project
  • Locate your copy of KKGridView, drag KKGridView.xcodeproj into the workspace so that it stays at the top of the hierarchy, just like your original project.
  • In the Build Phases section of your original project, link your project with libKKGridView.a.
  • Now, simply import KKGridView just like an Apple framework:

But libKKGridView appears in red in my project, and I am unable to import any of the code with

#import <KKGridView/KKGridView.h>

enter image description here

Any ideas?


Solution

  • Copy this file physically to your folder,and then add file to xcode from there.Drag and drop create this problem sometimes. Hope this helps you.