title: Framework build failed with cocoapod pod lib lint with xcode 12.0
body: <p>I try to update a existing pod, but when I did pod trunk push NAME.podspec, I got this error :
  <a href="https://i.stack.imgur.com/oKeaS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oKeaS.jpg" alt="enter image description here" /></a></p>
  <p>I try several solution from this post <a href="https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-object-file-built-for-ios/64139830#_">Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64</a>_ but none worked(excluded architecture, only active arch).</p>
  <p>There is no problem when I run the compilatiton on Xcode, my framework is well generated. The only problem is when I try to pod trunk, or pod lib lint</p>
  <p>In my xcode project, In build phase, I run that script :</p>
  <pre><code>xcodebuild -target &quot;${​TARGET_NAME}​&quot; -configuration ${​CONFIGURATION}​ -sdk iphonesimulator -arch x86_64 -arch i386 ONLY_ACTIVE_ARCH=NO EXCLUDED_ARCHS=&quot;arm64&quot; BUILD_DIR=&quot;${​BUILD_DIR}​&quot; BUILD_ROOT=&quot;${​BUILD_ROOT}&quot; clean build
  </code></pre>
  <p>If I put ONLY_ACTIVE_ARCH=TRUE, the error message is a bit different :</p>
  <p><a href="https://i.stack.imgur.com/dWsZM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dWsZM.jpg" alt="enter image description here" /></a></p>