[QBS] Could not run compiled application on MacOs

Jake Petroules jake.petroules at petroules.com
Mon Jul 6 11:23:51 CEST 2015


> On Jul 3, 2015, at 1:04 AM, Андрей Семененко <admin at geo-nadir.ru> wrote:
> 
> Hello.
> 
> My application is not run after upgrade XCode Command Line Tools to latest version. There are three binaries in my application: application and two dynamic libraries.
> Application structures is changed. Before upgrade my dynamic libraries are placed directly at Contents/Frameworks directory. But after upgrade every library is at separate __lbrary__.framework directory. Thus a have an error like this:  
> Starting /Users/semenenko/build-limon-Desktop_Qt_5_5_0_clang_64bit-Debug/qtc_Desktop__e049b762-debug/install-root/LiMon...
> dyld: Library not loaded: @executable_path/../Frameworks/LiMonWidgets.framework/Versions/A/LiMonWidgets
> Referenced from: /Users/semenenko/build-limon-Desktop_Qt_5_5_0_clang_64bit-Debug/qtc_Desktop__e049b762-debug/install-root/LiMon
> Reason: image not found
> The program has unexpectedly finished.
> /Users/semenenko/build-limon-Desktop_Qt_5_5_0_clang_64bit-Debug/qtc_Desktop__e049b762-debug/install-root/LiMon crashed
> 
> I look like dynamic library now building as not library but framework.
> How to fix this?
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs


Hi Andrei,

Libraries now build as frameworks by default on OS X and iOS. To turn this off for any given product, specify `bundle.isBundle: false` and it'll built as a regular shared library just as before.
-- 
Jake Petroules - jake.petroules at petroules.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150706/f74880a8/attachment.html>


More information about the Qbs mailing list