I've just migrated from ssh to ssh2.
App works fine on Android (debug and release), and on iOS in debug mode, but it doens't build in release mode.
flutter build ios or flutter build ipa fails :
Xcode's output:
↳
warning: [CP] Unable to find matching .xcframework slice in 'ios-x86_64-simulator ios-arm64 ios-x86_64-maccatalyst' for the current build architectures (arm64 armv7).
warning: [CP] Unable to find matching .xcframework slice in 'ios-arm64 ios-x86_64-simulator ios-x86_64-maccatalyst' for the current build architectures (arm64 armv7).
warning: [CP] Unable to find matching .xcframework slice in 'ios-x86_64-simulator ios-x86_64-maccatalyst ios-arm64' for the current build architectures (arm64 armv7).
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Command Ld failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
Encountered error while building for device.
It's the same error on my mac and on my CI/CD.
Note that flutter run --release works fine.
I'm using Flutter 2.5.1 with null-safety.
Any idea ?
I've just migrated from ssh to ssh2.
App works fine on Android (debug and release), and on iOS in debug mode, but it doens't build in release mode.
flutter build iosorflutter build ipafails :It's the same error on my mac and on my CI/CD.
Note that
flutter run --releaseworks fine.I'm using Flutter 2.5.1 with null-safety.
Any idea ?