当我构建使用 Stripe 的 iOS 应用程序并运行它时,我收到以下消息:
⚠️ Warning! You're building your app in a non-debug configuration, but appear to be using your Stripe test key. Make sure not to submit to the App Store with your test keys!⚠️
根据我的理解,我正在使用使用 xCode DEBUG 配置的 DEBUG 方案。
我缺少什么来正确处理并避免收到此警告?
最佳答案
我遇到过这个。我的猜测是您正在使用预构建的框架(可能通过 Carthage)?当 Stripe 检测到 it 没有在 Debug
配置中编译时,即使它使用测试 key ,也会生成此警告。如果您使用的是预构建框架,那么它将在 Release
配置中编译,无论您使用什么配置构建应用。
如果是这样的话,那就是转移注意力了。
关于ios - Stripe iOS,构建配置警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30280284/