Add ios support to the cmake build system. (#20333)