Hi everyone!
I currently moved my macOS/iOS app (mainly C++ / Objective-C++) to CMake. So far, so good!
I can properly generate each Xcode project, one targeting the macOS platform, and the other one for iOS.
Before moving to CMake, I would usually create an Xcode workspace that would include both projects (iOS+macOS), for ease of use and to be able to build and run the app without switching projects.
For that matter, I created a very simple Ruby script using a tool called “Xcodeproj” (from the CocoaPod team), to create a new Xcode workspace from the two Xcode projects created by CMake.
However, it seems Xcode workspace overrides the intermediate built product location, which makes all my third-party libraries being created in a custom Xcode folder (derived data). Because it overrides the product output directories that CMake initially set during the autogeneration of the projects, I am facing a link error since the static libs are not found.
Anybody faced a similar issue? Is there a way to fix this, and/or can CMake output a single mixed iOS/macOS Xcode project, as an alternative?
Thanks in advance!
Best.