Flutter Xcode 12存档构建失败,并带有未定义符号:_OBJC_CLASS _ $ _ STPAPIClient

问题描述

enter image description here

Flutter 1.22.2版 Xcode 12.1

该应用在模拟器中的构建良好,但尝试为App Store生成存档失败,并失败了:构建iOS-armv7,但尝试链接至为iOS-arm64构建的文件 架构armv7的未定义符号: 从以下位置引用的“ OBJC_CLASS $ _ STPapiclient” TPsstripeManager.o中的objc-class-ref

解决方法

Xcode吊舱:Adding armv7 to excluded architectures solved the issue.

这对我有用。

,

我的部署目标是11.0。

XCode-> Pods-> stripe_payment->构建设置。将iOS部署目标更改为11.0。不知道问题的确切原因,但这对我有用。

我已经附上了xcode ss。

enter image description here