Fixed issue with incompatible return type when doing IOS build.