【问题标题】:Has anyone seen this compile error with stripe_payments on iOS flutter?有没有人在 iOS Flutter 上看到这个带有 stripe_payments 的编译错误?
【发布时间】:2019-12-13 16:44:02
【问题描述】:

我正在 iOS 上运行一个带有 stripe_payment ^0.1.0 的颤振应用程序。 仅使用 stripe_payment 包运行的演示构建并运行良好。 当我的 pubspec 中有多个包时,它不会编译。

尝试清除 pub 缓存并运行 flutter packages get,尝试删除 pod 文件并再次运行 pod install

错误:

/Users/../flutter/.pub-cache/hosted/pub.dartlang.org/stripe_payment-0.1.0/ios/Classes/STPAddSourceViewController.m:42:32:错误:找不到属性“managedAccountCurrency”在“STPAddSourceViewController *”类型的对象上 cardParams.currency = self.managedAccountCurrency; ^ 产生 6 个警告和 1 个错误。无法为模拟器构建应用程序。在 iPhone Xs 上启动应用程序时出错。退出(sigterm)

我的 pubspec 有以下依赖项:

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_local_notifications:

cupertino_icons: ^0.1.2
firebase_auth: ^0.14.0
firebase_core: ^0.4.0+8
cloud_firestore: ^0.12.9
google_sign_in: ^4.0.6
firebase_messaging: ^5.1.2
url_launcher: ^5.0.1
flutter_auth_buttons: ^0.3.1
geolocator: ^5.1.1
stripe_payment: ^0.1.0
cloud_functions: ^0.4.1

有谁知道这个错误来自哪里? 我认为它与其他软件包之一冲突,但不知道如何找到它

【问题讨论】:

    标签: ios flutter dart stripe-payments


    【解决方案1】:

    我刚刚更新了插件以支持 Android 和 iOS 上的最新 Stripe 插件,这应该可以解决您的问题: https://pub.dev/packages/stripe_payment/versions/0.1.1

    【讨论】:

      【解决方案2】:

      我已将我的 Podfile 更改为:

      platform :ios, '10.0'
      

      flutter clean 之后我可以编译我的项目。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2019-09-28
        • 2022-06-17
        • 2023-04-01
        • 2023-03-16
        • 1970-01-01
        • 1970-01-01
        • 2021-08-24
        相关资源
        最近更新 更多