Xcode12 build error. The linked framework 'Pods_projectA.framework'is missing one or more architectures required by this target: arm64

This morning, the Xcode, which had been doing well, has been updated to version 12, and it has not been built since the error 'The linked framework 'Pods_CafeHome.framework'is missing one or more architectures required by this target: arm64' occurred.

I updated Cocoa pod.
I removed all about pod and installed again.
but i could not resolve
Post marked as unsolved Up vote post of yongchul Down vote post of yongchul
806 views

8 Replies

I've encountered this issue too.

Try to add $(ARCHS_STANDARD) to VALID_ARCHS in Build Settings.

Steps:
Build Settings -> User-Defined -> VALID_ARCHS ->
add $(ARCHS_STANDARD)

heres more info in stackoverflow.

Environment: Xcode 12.2 beta3
Had the same problem, but solved.
  1. You can try to add arm64 to the Build Settings -> Architectures -> Excluded Architectures for Any iOS Simulator SDK. It helps many of devs, but for me it didn't work.

  2. You can Clean Build Folder (⇧ + ⌘ + K), clean DerivedData directory, CocoaPods caches, and restart macOS, Xcode and Simulator. This solution works for me.

I also ran into this problem when running my project on the simulator - I forgot I had switched over to the "Release" build configuration a couple days before, and switching back to "Debug" fixed the issue.
same here, the proposed solution seems to resolve this, but can we get some insight why is this happening?
This issue has been fixed for me after adding "arm64" to Project -> Build Settings -> Excluded Architecture for varients.
I'm having the same problem with a project of mine after updating to Xcode 12, except the "embedded framework" here is one of my own from a subproject.

Framework has Standard architectures set in build settings...trying to run on the iOS simulator, the app won't build. If I switch to an iOS device Build succeeds.
Adding "arm64" to Project -> Build Settings -> Excluded Architecture fixed the issue for me
I'm having the same problem after upgrading to Xcode 12