> On Jun 26, 2017, at 7:10 AM, Christian Kandeler <christian.kande...@qt.io> > wrote: > > On Mon, 26 Jun 2017 12:40:40 +0300 > Иван Комиссаров <abba...@gmail.com> wrote: > >> I want to install library products into the application bundle, like Qt >> Creator does. >> >> I modified install-bundle example so the framework is installed into >> >> Here’s the example https://pastebin.com/dU3gxjQ4 >> <https://pastebin.com/dU3gxjQ4> >> >> However, i get the following error when i try to launch app from Qt Creator: >> >> Starting >> /Users/arch/Programming/qt5/build-install-bundle-Desktop_Qt_5_7_1_clang_64bit-Debug/qtc_Desktop__1f2d618d-debug/.tmp/Window... >> dyld: Library not loaded: CoreUtils.framework/Versions/A/CoreUtils >> Referenced from: >> /Users/arch/Programming/qt5/build-install-bundle-Desktop_Qt_5_7_1_clang_64bit-Debug/qtc_Desktop__1f2d618d-debug/.tmp/Window >> Reason: image not found >> >> Ok, i didn’t set the cpp.rpath property, however, why does QtC launches app >> from .tmp but not from install-root? Is this a bug? > > Possibly. It appears your executable does not have qbs.install set for > some reason. The logic for choosing the executable to run is in > qbs::ProductData::targetExecutable(). Debugging into this function might give > you more insight into what is going on. > You might also want to check whether the same thing happens with the original > install-bundle example.
Sorry. This is actually a bug by omission which broke somewhere during the refactoring of bundle handling in Qbs. Here's the patch which fixes bundled application running for macOS, iOS, and tvOS: https://codereview.qt-project.org/198542 Hopefully this will be part of the 1.8.1 release. > Christian > _______________________________________________ > Qbs mailing list > Qbs@qt-project.org > http://lists.qt-project.org/mailman/listinfo/qbs -- Jake Petroules - jake.petrou...@qt.io The Qt Company - Silicon Valley Qbs build tool evangelist - qbs.io _______________________________________________ Qbs mailing list Qbs@qt-project.org http://lists.qt-project.org/mailman/listinfo/qbs