使用Xcode13時(shí)打包報(bào)錯(cuò)了:
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
Command CompileSwiftSources failed with a nonzero exit code
解決方案1:
Project-Build Setting-Compilation Mode設(shè)置為Incremental。然后Clean一下,重新打包。如果打包還是不行,嘗試方案2.

方案1
方案2:
找到報(bào)錯(cuò)的信息,然后選擇相應(yīng)的Target,然后找到Exclude Architectures,添加一個(gè)armv7.

方案2
把每一個(gè)報(bào)錯(cuò)的包都要添加一遍,圖中還要給Mixpanel 、 ZLPhotoBrowser設(shè)置一遍。
重新打包即可。
加油~