Xcode not building ComponentKit checked out via cocoapods
carolinea87 opened this issue · 2 comments
carolinea87 commented
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"
platform :ios, '13.0'
use_frameworks!
project 'XYZ/XYZ.xcodeproj'
target 'XYZ' do
pod 'ComponentKit', '~> 0.30'
pod 'Protobuf', '~> 3.13'
end
carolinea87 commented
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.
aCorrado commented
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