Reason: image not found macos application

521 Views Asked by At

I am deploying qt application for macos so in order to create .app I am using macdeployqt tool.

My problem is that when I run the application I get this error:

dyld: Library not loaded: @rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets

Referenced from: /Users/raulsanchez/Documents/workspace/Myapp.app/Contents/MacOS/Myapp Reason: image not found

I have checked with otool and i have this:

@rpath/QtWebEngineWidgets.framework/Versions/5/QtWebEngineWidgets (compatibility version 5.9.0, current version 5.9.7)

If it matters I have used macdeployqt with option -use-debug-libs and -no-strip

Could anyone help me on this?

Thanks in advance

1

There are 1 best solutions below

0
RuLoViC On

I finally found the solution. Since I was using debug version of the Frameworks '_debug' suffix was being appended. That was the reason why it was not being found