facebook/componentkit

Xcode not building ComponentKit checked out via cocoapods

carolinea87 opened this issue · 2 comments

I used cocoapods to add componentkit as a dependency. When I try to build the project I get build error:

"Could not build module ComponentKit"

Here is my podfile
Screen Shot 2020-10-17 at 11 52 21 PM

platform :ios, '13.0'
use_frameworks!

project 'XYZ/XYZ.xcodeproj'

target 'XYZ' do
  pod 'ComponentKit', '~> 0.30'
  pod 'Protobuf', '~> 3.13'
end

Can anyone help? Now importing ComponentKit/ComponentKit.h works but I am unable to import CKCollectionViewDataSource.h. I am planning to ditch ComponentKit if I keep getting these issues. It is so painful to use a library which is not maintained well.

If you try to rename your file from "ViewController.m" to "ViewController.mm" it should work.

ComponentKit is an ObjectiveC++ library and this means that the files that import CK should use the ".mm" extension