Xcode升级到12.3后,运行工程报错“Building for iOS Simulator, but the linked and embedded framework '***' wa...

1、背景:

Xcode升级到12.3后,运行已有工程,会报类似的错误“Building for iOS Simulator, but the linked and embedded framework '***' was built for iOS + tvOS Simulator”
image.png
2、修改Xcode配置:
image.png

将validate workspace改YES后,工程可以正常工作。但是之前的错误会变成警告!!!(将validate workspace再改为NO,警告就会消失!!!)
image.png
PS:
validate workspace的作用:
If enabled, perform validation checks on the workspace configuration as part of the build process.

如果开启了(设置为Yes),那么在构建版本的过程中将对工作区配置进行验证检查。
xcode配置说明链接
https://xcodebuildsettings.com/

你可能感兴趣的:(Xcode升级到12.3后,运行工程报错“Building for iOS Simulator, but the linked and embedded framework '***' wa...)