Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 236 Vote(s) - 3.51 Average
  • 1
  • 2
  • 3
  • 4
  • 5
#include of a system header from a modularized project header file gives "Include of non-modular header inside framework module..." error

#1
I am trying to embed libarchive in a Swift-based framework I am building.

I created a module map to privately include `archive.h` (inside module `libarchive` near the end)

framework module X
{
requires objc, blocks, objc_arc
umbrella header "X.h"

private header "XPrivate.h"
private header "x.h"

use Darwin.C

module libarchive
{
private header "archive.h"
export *
}
}

Inside `archive.h`, the following line is causing the error:

#include <inttypes.h>

I don't understand why this include isn't being mapped to the correct inttypes module in my SDK.

There is a module Darwin.C.inttypes is defined inside my SDK, here:

/Applications/Xcode.app/.../MacOSX10.12.sdk/usr/include/module.modulemap

Can someone tell me how to get the `#include` in `archive.h` to map to the declared module?
Reply

#2
Pretend to be a system framework by changing to ```framework module X [system]```.

Not the correct solution but it seems to work.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through