Answer the question
In order to leave comments, you need to log in
How to disable library signature verification on mac?
I am writing an application in Flutter, part of the functionality is written in C and used as a library via dart ffi.
The application works on Android and iOS, but the application has tests that refuse to run on a macbook due to the fact that the C library is not signed. Nothing happened with a self-signed certificate either. Error:
Invalid argument(s): Failed to load dynamic library (dlopen(build/mylib.dylib, 1): no suitable image found. Did find:
build/mylib.dylib: code signature in (build/mylib.dylib) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?))
There seems to be a setting that disables library validation, but I didn't understand how to use it.
Tried removing signature from dart as described here - didn't help either.
I write in VSCode, I use CMake to build the C-library for tests.
The goal is to run unsigned or self-signed libraries. Ideally, I'd like to completely disable library signature verification on my macbook.
Please suggest a solution.
Answer the question
In order to leave comments, you need to log in
The answer from SO helped me:
https://apple.stackexchange.com/a/208481/360047
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question