Build C++ project on Xcode 12.4 with M1 Chip got error: linked library libntl.a is missing one or more architectures required by this target: x86_64

  apple-m1, build-error, c++, ntl, xcode12

When I built C++ project on Xcode 12.4 with M1 Chip Mac, for the linked NTL library (libntl.a), got the error:
the linked library libntl.a is missing one or more architectures required by this target: x86_64.

Any suggestions for this issue? I have tried to modify architecture variables in build settings but didn’t wortk.

Settings-Architectures

Settings-Search Paths

Link Libraries

Source: Windows Questions C++

LEAVE A COMMENT