When installing LyX on Mac, one might experience the error “error converting to loadable format” when including pdf files. This is likely because of missing of ImageMagick. To fix the problem, you will need to install ImageMagick. To do it, the following steps need to follow.
xcode-select –install, and click the Install button to install the required command line developer tools.
sudo port install ImageMagickin terminal