rules_swift_package_manager
rules_swift_package_manager copied to clipboard
Dummy SPM targets with no headers fail with error - fail("No header files were provided.")
After updating to version 0.34 of rules_swift_package_manager some SPM libs stopped to work with following error
fail("No header files were provided.")
For example it appears when trying to add aws_sdk.
It seems in all cases it happens because those sdks create dummy targets in their Package.swift file. Those targets contain only single empty.m file and binary dependencies. Rules_swift_package_manager can't find any headers while creating module map for those targets and fail with error.
https://github.com/aws-amplify/aws-sdk-ios-spm/blob/f7e79d076556210b1aec4289cc0028d7ac785959/Package.swift#L193
Are there any options to bypass this behaviour?