Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Mac M1 tutorial failure #210

Open
mefeinberg opened this issue Apr 7, 2023 · 2 comments
Open

Mac M1 tutorial failure #210

mefeinberg opened this issue Apr 7, 2023 · 2 comments

Comments

@mefeinberg
Copy link

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
Copy link

duplicate of #201

@shahidjabbar
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants