I am encountering this non-breaking issue every now and then, where Xcode will show the following error message:
Could not find module 'MyModule' for target 'x86_64-apple-macos'; found: arm64, arm64-apple-macos
Sometimes, it resolves itself by starting a build again. Other times, I have to re-start Xcode to make the message go away.
I have seen people reporting this for cross-platform support here, but I am running into this when developing on my target machine (M1 MacBook Air). It seems to me that this particular random issue is due to Xcode's build process.
I am not expecting a solution here. This is more to raise awareness about this.