最近Xcode 升级到了Version 11.4 (11E146)版本。运行了之前的项目直接报错

当时感觉像是某些库引入的问题,当时就把framework的引入去掉,重新引入,但是依然不行,还是报错。
自己经过尝试解决问题,然后总结出有2种解决方案。
1.修改当前工程的Workspaces Setting,可以将工程的Build System修改成Legacy Build System。编译可以编译成功。(一般修改到Legacy Build System到有其他问题,若有报错,可以查看Legacy Build System下报错,可以一步步解决)。

2.若使用New Build System的,可以去Build Settings中搜索EXCLUDED_SOURCE_FILE_NAMES,添加Debug模式下,用模拟器编译下忽略的文件。

推荐第一种方案
网友评论