It looks like #38288 has started happening again.
- Clone https://github.com/dart-lang/samples
- open the ffi/hello_world sample
cd c && make dylib
cd .. && dart hello.dart
- observe “Failed to load dynamic library” exception
dart hello.dart Unhandled exception: Invalid argument(s): Failed to load dynamic library (dlopen(hello_world.dylib, 1): no suitable image found. Did find: hello_world.dylib: code signature in (hello_world.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:10:55) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:17:12) #2 main (file:///Users/ryjohn/code/github/dart-lang/samples/ffi/hello_world/hello.dart:17:36) #3 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:19) #4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)