Mac creating simple dylib?

2019-08-27 15:05发布

问题:

I need to create a dylib using XCode for my client. The dylib will have only two function start, and stop. The people i m making this for use mono and they will call this dylib. How can I create this? Thanks.

回答1:

Xcode has project templates for Cocoa, C++ and C dynamic libraries. Just create one of these and add you functions to it.