Archive 17/01/2023.

Building for macOS 10.11 and earlier deployment target

elissa-ross

Hello!
I’m having problems building Urho for a macOS deployment target of 10.11 and earlier. I am using Xcode, and running 10.12. I am building for Standard architectures. When I select the 10.11 deployment target I get number of linker errors (see image). Any suggestions gratefully received…

weitjong

Instead of selecting the deployment target within the Xcode IDE, use the Urho3D build option “CMAKE_OSX_DEPLOYMENT_TARGET” when configuring/generating the build tree (Xcode project). See here for more details.

elissa-ross

Thank you weitjong.
Indeed I found this shortly after posting my question. However, the build fails for 10.10 (and earlier). It does work for macOS 10.11, but when I build for 10.10 (using the cmake build option) the errors return.

weitjong

Are you reusing the same build tree location for different deployment target? If you are then you need to clean the CMake cache first before reconfiguring. It is easier to use separate build tree locations for each target.