1,新建c 头文件 lib.h 定义 c 函数 2,新建 c 实现文件,新建模板选中 c File lib.c 3,oc 中调用,引用 c 头文件 lib.h ok 。搞定 转载于:https://www.cnblogs.com/DamonTang/p/3799979.html