xcode – module map naming in iOS for static library


After I used the title module.modulemap for a framework, I acquired an error saying “redefinition” of module. Which seems to be a bug from Apple:

Recognized Points

When constructing a framework that has module maps in each the supply and the set up directories that outline the identical module, the compiler will present a redefinition message. (28638816)

Workaround: Rename the module map file within the supply listing to a non-default title (the default title is
module.modulemap
or
module.map
), and set the Module Map File construct setting to the renamed module map.

So after altering the title to my_module.modulemap (and updating the construct settings path), it labored high-quality. After I construct it, Xcode will generate a module.modulemap file, with the content material of my_module.modulemap prepended.

Nonetheless, after I tried out the static library, I am unable to use my_module.modulemap anymore. Even when I write non-exist recordsdata it is not complaining:

module Foo {
header “NonExistFile.h”
}

After I have a look at the exported header in ultimate product, the module map file doesn’t present up in any respect. How do I repair it?

See also  How one can move the question string worth in ([self.launchview setAlpha:1];) launchview goal c utilizing cordova ios

Leave a Reply