How to properly load the custom framework
There is a framework written by XCode QTWebContainer, try to use the right to add the library to load into the pro file, as follows：
mac: LIBS + = -F $$ PWD / output / framework / -framework QTWebContainer
INCLUDEPATH + = $$ PWD / output / framework
DEPENDPATH + = $$ PWD / output / framework
Compile no problem, but the implementation will be incorrect, as follows:
dyld: Library not loaded: @ rpath / QTWebContainer.framework / Versions / A / QTWebContainer
Referenced from: /Users/elliyu/Documents/hujiang/cctalk_qt/output/bin/test.app/Contents/MacOS/test
Reason: image not found
How to solve
Where does that framework come from ? Are you building it ?
Yes, when I compile it, I copy QTWebContainer.framework to the $$PWD/output/framework directory
@SGaist I try to put QTWebContainer.framework on/Users/elliyu Qt5.9.1 5.9.1 / clang_64 / lib directory, pro file simply add QMAKE_LFLAGS + = - framework QTWebContainer, you can run
Is that framework part of your project or is it an external dependency ?