I did as you suggested, and am still getting these errors. Seems like Xcode can’t find some header file.
Undefined symbols for architecture x86_64:   "torch::jit::Object::find_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:       torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in TorchModule.o   "at::GradMode::is_enabled()", referenced from:       at::AutoGradMode::AutoGradMode(bool) in TorchModule.o   "at::GradMode::set_enabled(bool)", referenced from:       at::AutoGradMode::AutoGradMode(bool) in TorchModule.o       at::AutoGradMode::~AutoGradMode() in TorchModule.o
I tried replacing the force_load flag with all_load and Objc but it has the same result. My header search path is $(PROJECT_DIR)/install/include. If I toggle this to “recursive”, the above errors disappear and are replaced by errors like:
No member named 'signbit' in the global namespace; did you mean 'sigwait'?
Seems like the recursive setting makes it so that cmath is incorrectly loaded. I have been trying to fix this for a while, and I was wondering if you had any suggestions! Thanks for the help.