I use M1 Pro Mac, the project uses CocoaPods. After running the project it fails.
Build Active Architecture Only
Debug: Yes
Release: No
Excluded Architectures
Empty
error build: In /Project/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a(GAIUtil.o), building for iOS Simulator, but linking in object file built for iOS, file '/Project/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a' for architecture arm64
I found this solution. Building for iOS Simulator, but linking in object file built for iOS in xcode
When I add arm64 for all targets this error comes.
error build: Command PhaseScriptExecution failed with a nonzero exit code
Excluded Architectures .plist value:
I tried to clean Build folder and Derived data, restarted Mac and Xcode but it does not help.
Please help me to find the way to fix it. Thanks.