Hi @Hiroko ,
The issue is that libc++.dylib is not found when referencing dynamic library. This article explains why it can't be found. To put it simply, macOS has added a defensive wall to prevent third parties from maliciously modifying the app, and does not allow the app to load dynamic libraries or scripts.
You can use the install_name_tool to relocate libc++.dylib in the executable on a command line like this. Please note to change the path to your owns when use it:
install_name_tool -change @rpath/libc++.dylib executable_path/libc++.dylib <full pathname to your executable>
You can also refer to this thread for more information.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Regards,
Yu Zhou