ios-cmake icon indicating copy to clipboard operation
ios-cmake copied to clipboard

Trying to use `ios-cmake` toolchain but I get an empty project

Open oskargargas opened this issue 3 years ago • 2 comments

Hi,

I try to incorporate ios-cmake into our build setup but I consistently get empty Xcode project.

My goal is to build RapidFuzz C++ library as a dynamic framework for iOS and Simulator https://github.com/maxbachmann/rapidfuzz-cpp/tree/b2240f75cb0308cdf928ead4e1f6422a7a3c4efa

I use following command:

mkdir build
cd build
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../../ios-cmake/ios.toolchain.cmake -DPLATFORM=OS64COMBINED -DDEPLOYMENT_TARGET=13.0

Is it problem on my side? Is it problem with CMakeList? Can I do something without modifying external CMakeList?

oskargargas avatar Feb 14 '22 15:02 oskargargas

I'll look into this as soon as i've figured out the fixes needed to get XCode 13.3+ and CMake 3.23+ to work with this toolchain!

leetal avatar Apr 04 '22 10:04 leetal

Ok, so I'm pretty sure that after looking through Kitware's documentation, that the combined builds support only works for static libraries. That might be the issue you are seeing here. Please try to build it as a static library first to verify that's the case :)

leetal avatar May 20 '22 08:05 leetal