Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode not building ComponentKit checked out via cocoapods #957

Closed
carolinea87 opened this issue Oct 18, 2020 · 2 comments
Closed

Xcode not building ComponentKit checked out via cocoapods #957

carolinea87 opened this issue Oct 18, 2020 · 2 comments

Comments

@carolinea87
Copy link

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
@carolinea87
Copy link
Author

carolinea87 commented Nov 12, 2020

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
Copy link

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

@cuva cuva closed this as completed Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants