rules_swift_package_manager icon indicating copy to clipboard operation
rules_swift_package_manager copied to clipboard

Dummy SPM targets with no headers fail with error - fail("No header files were provided.")

Open mikhailmulyar opened this issue 1 year ago • 4 comments

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?

mikhailmulyar avatar Jul 31 '24 07:07 mikhailmulyar