Xcode Deployment Information and Icons Using CMake

I tried looking for information on how to install them (in red) using CMake, but so far no luck:

enter image description here

The problem with the 1st red field:

First of all, although the device looks like it is set to "Universal" correctly, the value is not interpreted correctly by Xcode. When I install it in the "Universal" manually using the drop-down list, it gives a tab for iPhone and iPad. In addition, I know that this is not correctly interpreted, because the application does not work correctly (in my case, neither the launching image, nor the application itself starts in full screen mode).

I don't think setting orientation programmatically is an option for me, since I also need the launch image in the correct orientation. So I canโ€™t do something like this: How to programmatically set device orientation in iOS7?

The second problem with the red field:

I use the asset file for all of my icons, so for now I need to create using CMake, and then click "Use Asset Directory" every time. I found this, but not very useful: http://cmake.3232098.n2.nabble.com/Icon-and-Launch-image-support-for-iOS-apps-td7590970.html

+5
source share
2 answers

Regarding the โ€œfirst-box problemโ€, I found that the approach used in this demo project works very well.

https://github.com/forexample/testapp/blob/master/CMakeLists.txt

They use the templated Info.plist to enter the package identifier, etc. during setup. The good part is that you can change the orientation in the plist.in file, after which they will be fully translated to Info.plist after opening the project.

+3
source

Regarding the second problem with the red border, I found that the attribute I needed to set was XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME

For instance:

 set_target_properties(${TARGET} PROPERTIES XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon") 

To run the images, I made it work by setting it in the plist.in file under UILaunchStoryboardName, as described in the previous answer.

0
source

All Articles