Open mefeinberg opened 1 year ago
This is caused by the instruction sets mismatch between the new Macs and the iOS simulators.
DISCLAIMER: The following is just a workaround until LibTorch-Lite libraries are compiled with the new framework.
Restart Xcode in Rosetta mode, for Xcode < 14.3. For Xcode >= 14.3, add a simulator scheme. https://armen-mkrtchian.medium.com/run-rosetta-simulator-on-xcode-14-3-381d341364ee
Tutorial Select
Get Started
Feedback
ld: in /Users/..../pytorch-model-test/ios/Pods/LibTorch-Lite/install/lib/libtorch.a(empty.cpp.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users...e/pytorch-model-test/ios/Pods/LibTorch-Lite/install/lib/libtorch.a' for architecture arm64