I'm trying to run a hello world macOS project that runs Tensorflow models. Documentation for Tensorflow (not to be confused by Tensorflow Lite) lack instructions on how to add the libtensorflow_framework to an XCode project that targets macOS.
What I did so far is:
- create a conda environment (pip, python3.8.3)
- pip install tensorflow==2.3.0rc0
- locate the path to the tensorflow package, and drag and drop the
libtensorflow_framework.2.3.0.dylib
file into a group calledlib
that is located directly under the project root.
The I tried to run the app, but I got the following error:
ld: library not found for -ltensorflow_framework.2.3.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
which doesn't even make sense, because the file name is libtensorflow_framework.2.3.0.dylib
and not ltensorflow_framework.2.3.0