'SecureRandom' is imported from both 'package:encrypt/encrypt.dart' and 'package:pointycastle/api.dart'.
winnie-chaintope opened this issue · comments
winnie-chaintope commented
i had no issue running flutter pub get
but when i flutter run
i had this issue
Xcode build done. 24.9s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
../../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/steel_crypt-0.5.5+1/lib/src/steel_crypt_base.dart:14:1: Error: 'SecureRandom' is imported from both 'package:encrypt/encrypt.dart'
and 'package:pointycastle/api.dart'.
import 'package:pointycastle/api.dart';
^^^^^^^^^^^^
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.6 19G2021, locale en-MY)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.48.2)
[✓] Connected device (1 available)
• No issues found!
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.3
rxdart: ^0.24.1
barcode_scan: any
path_provider: ^1.6.11
flutter_email_sender: ^3.0.1
http: ^0.12.2
state_notifier: ^0.6.0
provider: ^4.3.2+1
flutter_state_notifier: ^0.6.1
steel_crypt: ^0.5.3+2
sorry i didn't realised it is an old version steel_crypt. Closing this