Environmental Requirements

  • protobuf (version >= 3.0 is required)

Steps

  1. cd /path/to/MNN
  2. ./schema/generate.sh
  3. ./tools/script/get_model.sh(optional, models are needed only in demo project). Note get_model.sh requires you to build the MNNConvert tool first. See its build instructions here.
  4. open project/ios/MNN.xcodeproj with Xcode on macOS, then build.

Copy mnn.metallib to the application’s main bundle directory if the Metal backend is in your need. You can also refer to Run Script in Build Phases of the Playground target.