简体   繁体   中英

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>

在此处输入图片说明

Any ideas?

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.

您还需要导入.h文件

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