To build MacDown from source, ensure you have the following requirements installed:
Requirements
- OS X SDK (10.14 or later)
- Git
- Bundler
- Xcode 5 or later (includes appropriate SDK)
- Note: If compilation fails, you may need to install Command Line Tools (CLT) using
xcode-select --install.
Environment Setup Steps
After cloning the repository, execute these commands in the repository root to initialize submodules and install dependencies:
- Initialize submodules:
git submodule update --init - Install Ruby dependencies:
bundle install - Install CocoaPods dependencies:
bundle exec pod install - Build the markdown highlighter:
make -C Dependency/peg-markdown-highlight
Finally, open MacDown.xcworkspace in Xcode to begin development.
Updating Dependencies
If you encounter build issues later, try updating the dependencies with:
git submodule update
bundle exec pod install
git submodule update --init
bundle install
bundle exec pod install
make -C Dependency/peg-markdown-highlight