diff --git a/mobile/tool/native_signing_probe.dart b/mobile/tool/native_signing_probe.dart index 0c00c9bc33..c9c99f6c36 100644 --- a/mobile/tool/native_signing_probe.dart +++ b/mobile/tool/native_signing_probe.dart @@ -8,6 +8,15 @@ import 'package:buzz/shared/crypto/event_signer.dart'; Future main() async { WidgetsFlutterBinding.ensureInitialized(); + try { + await runProbe(); + } catch (error) { + debugPrint('SIGNING_PROBE FAILED: $error'); + rethrow; + } +} + +Future runProbe() async { if (!Platform.isIOS) throw StateError('This probe requires an iOS Runner'); final results = []; final key = '0' * 63 + '3'; diff --git a/scripts/test-mobile-linked-signing.sh b/scripts/test-mobile-linked-signing.sh index f02349161d..18b65fa724 100644 --- a/scripts/test-mobile-linked-signing.sh +++ b/scripts/test-mobile-linked-signing.sh @@ -24,6 +24,10 @@ for ((attempt = 0; attempt < 90; attempt++)); do xcrun simctl spawn "$device" log show --last 5m --style compact \ --predicate "processIdentifier == $probe_pid AND eventMessage CONTAINS \"SIGNING_PROBE\"" \ > "$fixture/probe.log" 2>/dev/null + if grep -q 'SIGNING_PROBE FAILED:' "$fixture/probe.log"; then + cat "$fixture/probe.log" + exit 1 + fi if grep -q 'SIGNING_PROBE COMPLETE' "$fixture/probe.log"; then cat "$fixture/probe.log" exit 0