Xcode 12 Compilation Errors (While running with iOS 14 Simulators)

Note: Tested Project is a large project which is having many popular third-party cocoa pods [Swift + ObjC] AFNetworking, Firebase, RN Modules, Notification Extension target, etc.

Suddenly these errors Why?

Xcode 12 Official Release Note

Below are 2 Main reasons for raised erros due to this change:

Xcode 11 used to automatically translate building for arm64 for the simulator into building for x86_64, but now that arm64 is a valid simulator architecture (it’s the Apple Silicon architecture), that translation no longer occurs.So now whenever you try to build this test project under selected iOS 14 simulator, it will return you with the mentioned errors as the link target type will be an unknown type ‘arm64-apple-ios11.0-simulator’ which cause the build failed.

Steps To get fixes of these errors:

You can manually add the Excluded Architechure in your Pod project's Build Settings, but it will be overwritten when you use pod install.

In place of this, you can add this snippet in your Podfile. It will write the neccessary Build Settings every time you run pod install

post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"

Still, in case errors not got fixed by performing above Steps, then additionally you need to do following:

rm -rf ~/Library/Developer/Xcode/DerivedData/
pod deintegrate
pod update



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store