Launch Storyboard images with CMake?
-
I can't find a solution to this. I'm building an iOS app using CMake. I want to use a LaunchScreen.storyboard file. That storyboard has an image in it. I created the storyboard and the xcassets in XCode. I've got the image placed in the storyboard just fine. I've set up the CMakeLists.txt file to use the AppIcon and the storyboard. This works to a point. The AppIcon is correct. It's loading the storyboard (because I have a customized Label item in it) but I don't get the image. If I look at the app's package contents, it looks like the image file wasn't copied in there. So the question is, what's the correct way to do this? The Qt docs are no help because it skips over including images and I don't want to use the deprecated LaunchImage method.
-
Absolutely! To include LaunchScreen.storyboard images, list them explicitly in CMakeLists.txt within the add_executable command. This ensures proper file copying during build, resolving the issue and displaying images correctly on your iOS app launch screen.