Always Embed Swift binaries in Qt Creator
-
I am integrating the Helpshift API into my Qt / QML Application and having some problems, setting everything up only in the Qt Creator / Project.
Because I am using no swift code, I need to follow the given instructions, mentioned from the Helpshift developer info:
If your app does not contain any swift code, follow the additional steps: - Set Always Embed Swift binaries in the build settings to YES - Add /usr/lib/swift to the runpath search paths in the build settings. Make sure it is above the $(inherited) and @executable_path/Frameworks flags - Add $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) for Xcode 11.x or $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) for Xcode 10.x to the Library Search Paths in the build settings.A was able to follow all this steps in the generated Xcode project, but I was wondering, if there is any way to integrate this in the Qt Creator?
Otherwise it is kind of troublesome, because everytime I recompile the project from inside the Qt Creator, a new Xcode project file is generated and I have to do the setup again :/Is anybody out there, who could help me with these or at least point me in any helpful direction?
I have the feeling, that such cross-compilation settings are not very well documented, or at least, I did not found something anywhere near those informations.best regards,
SyntaX -
I managed to include the path to swift libraries as dir with the following flags in my .pri file:
# set additional Library directory for swift support QMAKE_LIBDIR += \ /usr/lib/swift \ # adding "Runtime Search Paths" for swift support QMAKE_RPATHDIR += \ /usr/lib/swift \"Always Embed Swift binaries" seems not to be needed, my app compiles and is executable.