-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
  • 8,291
  • 106
  • 37
  • 47
belle tian
  • 897
  • 8
  • 20

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,381
  • 4
  • 33
  • 58