Use Terminal to Compress SMML Files to a .zip File on Mac

If you use a development tool other than the SMML editor to create or edit a semantic model, you must use the zip command to compress the SMML files to a .zip file. You import this .zip file into Semantic Modeler to create or update a model in your Oracle Analytics instance.

You must use the zip command to compress the SMML files to a .zip file. If you use the Compress menu option in Finder, the compress to ZIP fails.
Don't run the zip command on the root folder. If you compress the root folder and import the resulting .zip file into Semantic Modeler, the import fails.
Instead in the zip command, navigate to the root folder and specify the logical, physical, presentation, and variables folders.
  1. Open Terminal and navigate to the root folder containing your Semantic Model's SMML development files. This folder contains the physical, logical, presentation and variables child folders.
  2. Run this command to compress the folders into a .zip file:
    zip -r <path>/<zip file name>.zip physical logical presentation variables