当编译出错时,到Issue navitgator中查找相关信息
XCode升级到12.0后项目编译报错
Showing All Messages
/Users/zhenghonghao/Desktop/adda/adda.xcodeproj The linked library 'libPods-adda.a'
is missing one or more architectures required by this target: arm64.
查找原因如下:
debug下的Any iOS Simulator SDK中应该只有x86_64一种架构。
将方框中的值改为空后如下图
此时再运行项目,报错:
The file “yingqiDm” couldn’t be opened because you don’t have permission to view
在issue navigator中看到相关警告⚠️:
There are no architectures to compile for because the VALID_ARCHS build setting
is an empty list.
需要将debug下的any iOS Simulator SDK和Any iOS SDK中的值清空后重新设置,可能是xcode的bug。
最后结果样式应该为下图所示: