I installed a pod (which went fine) but when I try building my .xcworkspace it would fail, regardless of whether I imported the pod in the code or not.
This is the error I get:
error build: Building for iOS Simulator, but linking in object file built for iOS, file '.../Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/GoogleMapsBase' for architecture arm64
I've found what seems like the exact problem here. The solution proposed here is to update the library.
I tried
sudo xcode-select --switch /Library/Developer/CommandLineTools/
but what I got was
error: invalid developer directory '/Library/Developer/CommandLineTools/'
Do you want to try the same method as the image below?
Build Settings
-> Architectures
-> Excluded Architectures
, arm64
.