facebookresearch / playtorch

PlayTorch is a framework for rapidly creating mobile AI experiences.
https://playtorch.dev/
MIT License
830 stars 101 forks source link

Mac M1 tutorial failure #210

Open mefeinberg opened 1 year ago

mefeinberg commented 1 year ago

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

rraihansaputra commented 1 year ago

duplicate of https://github.com/facebookresearch/playtorch/issues/201

shahidjabbar commented 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