Fixed: iOS build was broken because of deprecated APIs
auto merge of #17477 : vhbit/rust/ios-deprecation-fix, r=alexcrichton