-1

I have two files : lib.c and lib.h. I need to use this C source code in my swift code .

How to import these two C files?

HaveNoDisplayName
  • 7,993
  • 106
  • 33
  • 46
belle tian
  • 897
  • 8
  • 19

1 Answers1

0

There would be a lib-Bridging-Header.h file and you need to put your C function in that header. See also here.

Community
  • 1
  • 1
Willjay
  • 6,132
  • 4
  • 31
  • 58