bazel-ios / cocoapods-bazel

A Cocoapods plugin for automatically generating Bazel BUILD files
Apache License 2.0
110 stars 21 forks source link

[Question] How to exclude the generation of BUILD for 'Development Pods' #70

Closed SeanWit closed 2 years ago

SeanWit commented 2 years ago

Hi! I'm trying to test out cocoapods-bazel to integrate pods into a project. Thanks, it's beneficial for me.

But my project has some 'Development Pods,' and I don't want to generate BUILD files. If I force this wrong, there will be some errors.

So, how do we exclude certain pods when cocoapods-bazel generates BUILD files?

thiagohmcruz commented 2 years ago

AFAIK this doesn't exist atm, for certain use cases it would be useful to tell the plugin to ignore some pods indeed! PRs are welcome :)

Maybe a workaround for now is to maybe tell Bazel to ignore the packages you don't want to use via --deleted_packages?