简体   繁体   中英

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

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?

在“构建设置”中,转到“用户定义->VALID_ARCHS”并添加 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

在此处输入图片说明

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

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM