commonmark-swift
commonmark-swift copied to clipboard
Can't compile in Xcode 10
Got the following error message when compiling:
/Users/Projects/test/MarkDown/MarkDown/ViewController.swift:10:8: No such module 'CommonMark'
Here is my steps to add CommonMark:
- Create a single view project
-
pod init
- Add
pod 'CommonMark'
in myPodfile
-
pod install
- Open workspace
- Add
import CommonMark
in myViewController.swift
Then got this error message. Any suggestion? Thanks.
Hm, we currently don't support CocoaPods, you can only install through SPM.
Thanks for your reply. Not familiar with how to use SPM. Any guideline?
I can't compile CommonMark in Xcode project. It shows:
/Users/Projects/test/MarkDown/commonmark-swift/Sources/Ccmark/module.modulemap:2:12: Header '/usr/local/include/cmark.h' not found
Need to install Cmark first?
Yes, you need cmark installed. So currently it won't work on iOS unless you manually add those files as well.