My project link a .a static library, and when I try to build for Mac os, I get an error:
Building for UIKit for Mac, but the linked library 'libprotobuf.a' was built for <unknown>. You may need to restrict the platforms for which this library should be linked in the target editor.
But the ibprotobuf.a did contain x86_64, lipo -info is:
Architectures in the fat file: /Users/power/Documents/trunk/isdk/apple/protocolbuffer/Products/ios/libprotobuf.a are: armv7 i386 x86_64 arm64
And I also choose macOS + iOS platfroms in the tartget -> Build Phases -> LinkBinary With Libraries.
So I can't find any other ways to solve this issue.
Is this Xcode 11 bug? or any workaround way?