CocoaPods 组件问题之 `normal arm64`

1,979 阅读1分钟

前言

组件化实践,记录一下遇到问题的解决方案。

问题描述

更新Xcode 12之后,更新组件时pod lib lint指令会报错:

The following build commands failed:
    Ld /Users/distiller/Library/Developer/Xcode/DerivedData/App-akgkjxxbwilmbdbiwbdaapxfpold/Build/Intermediates.noindex/App.build/Release-iphonesimulator/App.build/Objects-normal/arm64/Binary/App normal arm64
    (1 failure)

解决方案

通过添加下面代码解决:

s.pod_target_xcconfig = {
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
  }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

参考链接