Instagram / IGListKit

A data-driven UICollectionView framework for building fast and flexible lists.
https://instagram.github.io/IGListKit/
MIT License
12.87k stars 1.54k forks source link

Could not build Objective-C module 'IGListKit' #316

Closed lutetium71 closed 7 years ago

lutetium71 commented 7 years ago

Hi I'm handling weird problem. "Could not build Objective-C module 'IGListKit'" There's someone have any idea what could cause this problem? Attach File is my project. Cocoapods version is 1.1.1 Xcode 8.1 OS 10.11.6.

Another question, can I use IGListKit in a Objective-C project? How to user it? Thanks.

IGListDemoSwift.zip

rnystrom commented 7 years ago

@lutetium71 Thanks for providing a sample project! However it looks like its 404ing. We're using the same version of CocoaPods. I wonder if Xcode is breaking, make sure you try:

can I use IGListKit in a Objective-C project

Definitely! The whole framework is written in Objective-C (with a sprinkle of C++). It should work just fine. You can use CocoaPods, Carthage, or just drag and drop the files into your Objective-C project. You just need to:

#import <IGListKit/IGListKit.h>

And you're good to go!

lutetium71 commented 7 years ago

Thanks! It works!