Questions tagged [module-map]

For questions about Clang modules and module map syntax.

For questions about Clang modules and module map syntax. Clang modules are documented here

36 questions
0
votes
0 answers

XCFramework cannot import other module

I created a XCFramework from a C Library (say a libc.a and corresponding “include” folder with header files) , lets call it C.xcframework. I want to interact with it from Swift, so I created a modulemap and corresponding header file, like…
Pravin Kulkarni
  • 253
  • 2
  • 9
0
votes
1 answer

Swift not using pkgconfig for system library

I try to write a RabbitMQ wrapper in Swift (CRabbitMQ), using the rabbitmq-c library from Brew. To tell Swift who to include and link files, I specified the pkg-config file librabbitmq in package.swift: let package = Package( name:…
ugocottin
  • 64
  • 8
0
votes
1 answer

Custom framework cannot find other pod that required Bridging-Header file: "No such module 'InsiderMobile'"

Currently we are developing a custom framework which need to use InsiderMobile cocoapods. According to this guideline, we will need o create Bridging-Header File to use InsiderMobile. However, Bridging-Header or Umbrella file did not work inside our…
0
votes
1 answer

Modulemap won't compile after switching to macOS Catalina - tcp_var.h

I am the developer of a small tool that will track the network speed. This code resides in a small framework which sues a module map, so I can use the C code in Swift. Here is my (old) modulemap: module PrivateNetwork [system] { header…
inexcitus
  • 2,471
  • 2
  • 26
  • 41
0
votes
1 answer

How do I use libproc.h in a modular Swift framework?

I've followed all the steps from other similar questions, and I'm still stuck. I need to use the function proc_pidpath in libproc.h to get the path of a BSD process by its PID. However, libproc.h is not a modular header, so I can't include it in my…
Ky -
  • 30,724
  • 51
  • 192
  • 308
0
votes
0 answers

Hack a module map to expose fileprivate constructs?

I'm implementing my own JSON encoder/decoder, à la Swift's Encoder & Decoder protocols. The thing is, I only want to override a small subset of the functionality already provided by JSONEncoder in Foundation. JSONEncoder, contrary to its name, is…
Vatsal Manot
  • 17,695
  • 9
  • 44
  • 80
1 2
3