[iOS][PyTorch][OSS] fix iOS nightly build (#52197)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/52197
D26187854 (https://github.com/pytorch/pytorch/commit/6045663f391e9bebac31e006a98c1dd381792936) added `from typing_extensions import Literal` to `tools/codegen/gen.py` whereas `typing_extensions` was not installed while building iOS binary
Was reproduced here: https://app.circleci.com/pipelines/github/pytorch/pytorch/273256/workflows/a1c66866-87ad-4ace-a0f7-f8c17524091c/jobs/10882828
ghstack-source-id: 121621817
Test Plan:
Created a PR to trigger the nightly build which also includes the fix.
https://github.com/pytorch/pytorch/pull/52195
The nightly build was successful: https://app.circleci.com/pipelines/github/pytorch/pytorch/273262/workflows/ed7a0f14-2b48-4599-877f-45271473dd86/jobs/10883042
{F372504913}
Reviewed By: linbinyu
Differential Revision: D26420298
fbshipit-source-id: d88c9203473def936aaf1c1756c3c926d087a959