I use protobuf lib for my project.
When building scheme Development-Editor to run on MacOS 10.15, getting this error:
ld: building for macOS, but linking in object file built for iOS Simulator, for architecture x86_64
I’ve tried all of solutions:
-
Build only active architexture: YES
-
Add Valid_arch: x86_64
but there is no hope.
I also runotool -l ./libprotobuf.a | grep platform
and the result is:
platform 1
which means the lib is build for macOS,
It was a warning on XCode11 but is an error on XCode12.
Every idea is appreciated.