Closed Luten closed 4 years ago
Looks like libcmark
module is used to import c code in swift, so removing import was a wrong way.
Then the problem is No such module 'libcmark'
- issue updated
Found that path to libcmark module.modulemap should be added to Swift Compiler - Import Paths.
Now receiving a lot of Could not build module 'Foundation'
errors.
I suggest an importing loop created by cmark
Finally I've built it. Can't say exactly what caused the problem, feels like some Xcode cache or bug resolved itself on 50th try of the settings that should work Mostly I did what all guides say:
In Podspec:
spec.source_files
- add sourcesspec.preservepath
- add modulemap and .inc files spec.pod_target_xcconfig
- add 'SWIFT_INCLUDE_PATHS' => '$(PODS_TARGET_SRCROOT)/<path to cmark modulemap>'
spec.public_header_files
, as pod generated umbrella caused build errors like unknown type name 'cmark_reference_map'
in #209I'm a bit confused @Luten ; are you integrating it via pods or manually?
Please help prevent duplicate issues before submitting a new one:
120 [Carthage] Missing required module 'libcmark'
209 Unable to build Swift package in Xcode 11.4.1
Report
What did you do?
Down/Source
into my project (I can't reference external frameworks)What did you expect to happen?
I expected the project to build successfully
What happened instead?
unknown type name 'cmark_reference_map'
in inlines.h#include <references.h> in inlines.h
No such module 'libcmark'
That all happens Xcode 11.4.1, Legacy Build System. Gonna give a try on New Build System
Maybe there is a guide on using Down as copied sources?
P.S: building with Down as CocoaPods dependency works fine