'"No such module" when building iOS app with Xcode on M1 (Apple Silicon)
I am developing on an M1 chip. My project depends on one library that isn't built for ARM. I'm able to get around this and build my app by running Xcode in Rosetta and launching the app in a Simulator.
However, when I try running my app in a connected iPhone, I run into the same issue where, when Xcode tries to build, it fails due to this dependency (the error is a nondescript "No such module.." message).
I don't fully understand why running Xcode in Rosetta allows me to build and run in Simulator, but won't allow me to build for actual iPhone device.
Is there any way to resolve this myself? Is the only resolution to have the developers of the third-party library release a build for ARM?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
