项目中使用cocoapods管理三方库,主要用到以下三方库
- FSPagerView
- Kingfisher
- EmptyKit
- IQKeyboardManagerSwift
- BMPlayer
- Alamofire
- ZLPhotoBrowser
第一个报错如下
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
Command CompileSwiftSources failed with a nonzero exit code
用ZLPhotoBrowser后还会发生第二个报错
LLVM ERROR: out of memory
Allocation failed
error: Abort trap: 6 (in target 'ZLPhotoBrowser' from project 'Pods')
针对第一个报错,凡是报第一个错误的三方库都按如下方法添加 armv7
armv7.png
针对第二个报错,做如下处理,分别找到工程和对应的库的TARGETS
,将 Enable Bitcode
改为 NO
bitcode_target.png
bitcode.png