用于存档iOS应用的无效位码版本

问题描述

当我尝试在Xcode 11.2.1中Archive我的应用程序时,它返回错误

我以前使用的是Xcode 13 beta版的应用程序。

我试图将Enable Bitcode改成No,但这并不能解决问题。

Stripe Cocoapod中出现错误

ld: Could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1103.0.32.62.0_0' Reader: '1100.0.33.12_0')',using libLTO version 'LLVM version 11.0.0,(clang-1100.0.33.12)' for architecture armv7 clang: error: linker command Failed with exit code 1 (use -v to see invocation)

解决方法

Stripe CocoaPod使用Xcode 11.5 or 11.6构建。三种选择:

  • 至少升级到Xcode 11.5。
  • 询问条纹以支持Xcode 11.2.1
  • 更改Podfile以使用旧版本的Stripe。