Xcode 12: build Error on FIRAnalyticsConnector Xcode 12: build Error on FIRAnalyticsConnector xcode xcode

Xcode 12: build Error on FIRAnalyticsConnector


Ok, I finally found a fix for the issue.

Change "Build Active Architecture Only" to "Yes" also for "Release".
The setting can be found selecting your project > "Build Settings" > "Targets" (your target) > "Architectures"

Image of settings that need to be changed

Source and more elaborate explanation can be found here:
https://stackoverflow.com/a/64139830/4134160

Please note that the problem is not related to Firebase. I'll still leave it since it might lead others to this issue and help them to resolve this.


I fixed the issue by running xcode12 under Rosetta (Apple M1).

Open Finder -> Application -> locate Xcode -> right click -> get info -> check open using rosetta.

then reopen xcode.


After adding arm64 to Excluded Architectures for the main project AND for the Pods project, I was able to resolve this issue I ran into on an Apple M1.

I also had to clear the DerivedData folder and restart Xcode.

For more information, see: https://medium.com/@khushwanttanwar/xcode-12-compilation-errors-while-running-with-ios-14-simulators-5731c91326e9