This seems to be related to https://github.com/pytorch/pytorch/pull/39591 9. Can you manually apply the PR and recompile from the source? Please refer to the section here - https://pytorch.org/mobile/ios/#build-pytorch-ios-libraries-from-source 2