Because of business requirements, we need to develop a command-line tool on macOS. According to Apple's policy, we need to sign and notarize it before distribution. My steps are as follows:
- Sign the executable
- Compress the executable file into a zip package
- Submit the zip to notarization and succeed
- Unzip the zip and execute it on another mac, and report an error: the dynamic library cannot be loaded
How should I solve it?