iOS: Device and Simulator binaries are build into the same folder
Hi,
we are using CMake to generate an Xcode project. When we build our app for a device (arm64) and simulator(x86_64), the objects are put into the same folder. This results in an error message when we try to build for simulator after we already built for device. Because the compiler sees that an object file is already there, tries to link it and then figures out that it is built for the wrong architecture.
In Xcode the variable CONFIGURATION_BUILD_DIR defines the folder, where the objects are put. Overwriting it with
set_property(TARGET ${_targetName} PROPERTY XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR ${CONFIGURATION}${EFFECTIVE_PLATFORM_NAME})
did not work. It seems to be hardcoded somewhere in CMake.
Can you fix this? Or is there a workaround I could use?
Best regards,
Sascha