Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
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?