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
72 stars 26 forks source link

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

Open mikhailmulyar opened 1 month ago

mikhailmulyar commented 1 month ago

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?

cgrindel commented 3 weeks ago

Sorry for the delay. I will need to investigate to better understand what is happening.