cgrindel / rules_swift_package_manager

Collection of utilities and Bazel rules to aid in the development and maintenance of Swift repositories using Bazel.
Apache License 2.0
68 stars 22 forks source link

fix: Remove unused source `module.modulemap` files #1085

Closed brentleyjones closed 1 month ago

brentleyjones commented 1 month ago

Fixes #987.

These can cause module redefinition errors when sandboxing is disabled. Since we never want to use them, we remove them from the repository. We keep around modulemaps that we pass to objc_library and any inside frameworks.

This should remove the need for enabling sandboxing on Objective-C compiles.

brentleyjones commented 1 month ago

The exclude isn't working 100% correctly yet, debugging. If I get that working, I can add an example for this (OCMock).

brentleyjones commented 1 month ago

It's correct now. I'll add the OCMock example in a followup PR.