【问题标题】:Having this stripe issue after updating Xcode ^更新 Xcode 后出现此条纹问题 ^
【发布时间】:2021-07-21 15:44:55
【问题描述】:

我更新了我的 MacBook,现在我从 Xcode 收到了这个关于我的项目的问题并且可以运行它:

/Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:51:81:
    error: 'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
                                                    deserializer:[STPIssuingCardPin new]
                                                                                    ^
    In file included from
    /Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:11:
    /Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/PublicHeaders/STPIssuingCardPin.h:22:
    1: note: 'init' has been explicitly marked unavailable here
    - (instancetype)init __attribute__((unavailable("You cannot directly instantiate an STPIssuingCardPin")));
    ^
    /Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:101:81:
    error: 'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin
                                                    deserializer:[STPIssuingCardPin new]
                                                                                    ^
    In file included from
    /Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/STPPinManagementService.m:11:
    /Users/ralucaraluca/Downloads/tariffo/tariffo/ios/Pods/Stripe/Stripe/PublicHeaders/STPIssuingCardPin.h:22:
    1: note: 'init' has been explicitly marked unavailable here
    - (instancetype)init __attribute__((unavailable("You cannot directly instantiate an STPIssuingCardPin")));

    ^

任何想法我能做什么???

【问题讨论】:

    标签: flutter


    【解决方案1】:

    是的,这实际上是更新 XCode 引起的问题。

    here 中有一些解决方法。其中之一是 XCode 降级:/

    【讨论】:

    • 我的临时解决方法是暂时使用 Android 进行开发,直到修复出现。
    【解决方案2】:

    同样的事情发生在我身上,我改变了我的 macbook,现在 xcode 出现了这个奇怪的问题。我点击此链接并更新了我的“条纹”版本。

    'new' is unavailable: You cannot directly instantiate an STPIssuingCardPin

    这是我遵循的:

    • 注释掉 pod 'stripe' 行
    • 运行 pod 安装
    • 取消注释行
    • 运行 pod 安装

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-09
      • 2018-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多