No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 arm64) Xcode 12

Viewed 3155

When I update to Xcode 12 beta 5, I can't build my project as usually. It's normal with Xcode 11.6 and Xcode 12 beta 4.

Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv7 arm64)

Does someone facing the same issue?

4 Answers

In "build settings" go to "User-Defined->VALID_ARCHS" and add x86_64.

1, Target -> "Build settings" -> "User-Defined" -> "VALID_ARCHS" and add "x86_64", it works.

2, Target -> "Build settings" -> "User-Defined", delete "VALID_ARCHS", it works too.

Because Xcode 12 has eliminated "VALID_ARCHS".

Using Xcode 11.6 Set empty value for Vaild Architectures

Then open it on Xcode 12 / Xcode 12 beta 5

enter image description here

I solved this problem by adding x86_64 along with arm64 separated by a space to the VALID_ARCHS item.

enter image description here

Related