I have a Mac with Big Sur and Apple's chip M1, which is ARM's chip, as you probably know.
Problem arises when I try to include Google's libwebp.a to my project. Xcode says that "it is not build for architecture arm64".
I installed Homebrew and then installed libwebp with brew install libwebp (or similar, I am writing from memory), opened directory where it was saved, copied libwebp.a and Xcode gave me same error.
Then I downloaded source and did:
./configure
make
make install
I copied compiled library and Xcode again gave me the same error. It seems that libwebp is not compiled for arm64.
Is it even possible to compile it for arm64 on Big Sur, and if yes, how?