Because of this unsolved problem I have to assemble my Qt Creator projects to Xcode projects and run it there. So, I need to setup icon for iOS app version. I tried two ways:
1. I can add icons and Info.plist inside ready Xcode project. It works pretty well, but I have no desire to do that every time I assemble Qt project to Xcode project.
2. Thus, I tried to add icons and plist to pro-file:
ios {
ios_icon.files = $$files($$PWD/ios/AppIcon*.png)
QMAKE_BUNDLE_DATA += ios_icon
QMAKE_INFO_PLIST = ios/Info.plist
}
This way I get incorrect Xcode project. There is no Info.plist in the files of project tree, however I have references to that file (in the folder of Qt project, it's not copied) in Target -> Build Settings -> Packaging -> Info.plist file
. App icons of different size are presented in Xcode project, but they are references, not copies. When trying to run, I get:
Installation failed. Invalid argument.
After coping icons and plist to that project, it runs well, but application title is ${PRODUCT_NAME}
.
I also tried to setup copying of Info.plist in pro-file these ways, but got the same results.
Does anybody know what is going on here??