libpython2.7.tbd cannot link directly with dylib/framework
Hello,
I am build an C++ project,while linking project I got the error below:
ld: cannot link directly with dylib/framework, your binary is not an allowed client of /Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/usr/lib/libpython2.7.tbd for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I solve this problem, what can i do? I have been upgreade my python、upgreade xcode-select、upgreade macOS, but all of this haven't work
running on macOS Catalina 12.0.1 python2.7