I’m getting a bunch of errors like:
Undefined symbols for architecture x86_64:
  "c10::IValue::toModule() const", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::ModulePolicy>::next() in TorchModule.o
      torch::jit::slot_iterator_impl<torch::jit::detail::ParameterPolicy>::next() in TorchModule.o
  "c10::ivalue::Object::type() const", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::ModulePolicy>::valid() const in TorchModule.o
      torch::jit::slot_iterator_impl<torch::jit::detail::ModulePolicy>::next() in TorchModule.o
      torch::jit::slot_iterator_impl<torch::jit::detail::ParameterPolicy>::valid() const in TorchModule.o
      torch::jit::slot_iterator_impl<torch::jit::detail::ParameterPolicy>::next() in TorchModule.o

Seems like something went wrong with the initial build. I followed the posted instructions, and added a few steps.

Pod install LibTorch 1.4.0 then replace the install folder in Pods/LibTorch with the install generated by the build.
Change C++ compiler version in XCode to C++14.

Do you know what the problem might be?
If it is relevant, my cmake version is 3.12.3, and clang version is 11.0.3. I’m using Mac OS Catalina.