Why does XCode build fail on Macbook M1 when XCode build runs on my older machine?

I have been building and running and debugging an iOS application on my older macbook without any issue for a while.

Today, I tried setting up my dev environment on a Macbook M1 and I have had nothing but trouble. I have finally gotten the build to run at least partially before it fails with this last message:

ld: library not found for -lAppAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  • I tried adding AppAuth to the Podfile and running pod install but that did not help.
  • I tried using the Legacy build system, but that did not help.
  • I tried opening XCode with Rosetta mode, but that did not help.
Why does XCode build fail on Macbook M1 when XCode build runs on my older machine?
 
 
Q