Xcode 11.5 : clang: error: linker command failed with exit code 1 (use -v to see invocation) building for Mac Catalyst, but linking in object file built for iOS Simulator

I am trying to build my iOS/iPadOS project on my mac using the new Mac Catalyst. When I build it on the simulator for iPhone everything is fine but when I build it on my Mac, I get this error


ld: in /Users/Desktop/[PROJECT NAME]/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a(GAITrackerImpl.o), building for Mac Catalyst, but linking in object file built for iOS Simulator, file '/Users/Desktop/[PROJECT NAME]/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a' for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

linking in object file built for iOS Simulator, file '/Users/Desktop/[PROJECT NAME]/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a' for architecture x86_64

It looks like this cocoa pod contains a static library that does not support Catalyst yet. You should contact the vendor/maintainer of the pod you are using to see if there is a version that supports Catalyst.
Xcode 11.5 : clang: error: linker command failed with exit code 1 (use -v to see invocation) building for Mac Catalyst, but linking in object file built for iOS Simulator
 
 
Q