Details
Description
While compiling Qt Creator from inside Qt Creator + qbs plugin I get the following error:
linking libProjectExplorer_debug.dylib compiling fakevim_test.cpp compiling diffeditorfactory.cpp compiling moc_diffview.cpp compiling sidebysidediffeditorwidget.cpp lrelease qtcreator_uk.ts moc emacskeysplugin.h /Users/alex/Dev/qtcreator/build-qtcreator-Qt_5_6_x_v2-Release/bin/Qt Creator.app/Contents/Resources/qbs/share/qbs/modules/ib/IBModule.qbs:191:26 Error while calling Rule.outputArtifacts: Error: Error running 'actool': No such file or directory The following products could not be built for configuration qtc_Qt_5_6_x_38236a72-debug: Translations Qt Creator qtcjson ....... Error while building/deploying project qtcreator (kit: Qt 5.6.x) When executing step "Qbs Build"
Looking into it a bit:
- actoolPath is just "actool"
- At top of IBModule.qbs there is a comment
"Depends { name: "cpp" }// to put toolchainInstallPath in the PATH for actool"
- Checking toolchainInstallPath for my Qt 5.6 Kit in Qt Creator Preferences -> Qbs -> cpp -> toolchainInstallPath is equal just to = "/usr/bin"
- By looking into qbs config-ui there are 2 toolchain profiles:
xcode-macosx-clang for which toolchainInstallPath is "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"
and xcode-macosx-gcc for which toolchainInstallPath is "/Applications/Xcode.app/Contents/Developer/usr/bin"
A thing to note that actool is only present in the second directory.
> xcrun --find actool
/Applications/Xcode.app/Contents/Developer/usr/bin/actool