用 pod lib lint --verbose 命令,查看详细日志。
The following build commands failed:
Ld /Users/LaiMing/Library/Developer/Xcode/DerivedData/App-dshoiqbeihuxecdyxxvinuyrngsr/Build/Intermediates.noindex/App.build/Release-iphonesimulator/App.build/Objects-normal/arm64/Binary/App normal arm64
解决办法:
在podspec文件中, 添加
spec.pod_target_xcconfig = { 'VALID_ARCHS' => 'x86_64 armv7 arm64' }
很多文章写s.pod_target_xcconfig会直接报错的。