【发布时间】: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