I\'ve compiled a C++ static library by using CMake as my building tool and I want to link it to my iOS app. I created a simple \'Empty\' application in Xcode and linked
By following cmake-toolchains documentation I did like below:
cmake -G Xcode -B build \ -DCMAKE_SYSTEM_NAME=iOS \ -DCMAKE_Swift_COMPILER_FORCED=true \ -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0
Note: That assignment CMAKE_OSX_DEPLOYMENT_TARGET=11.0 is not a mistake when targeting iOS.
CMAKE_OSX_DEPLOYMENT_TARGET=11.0