peripheryapp / periphery

A tool to identify unused code in Swift projects.
MIT License
5.17k stars 186 forks source link

Development Pods support #485

Closed d1mster closed 3 months ago

d1mster commented 2 years ago

Does library support development pods? I run script, it works properly, but periphery found unused code only in my main target.

andraskadar commented 2 years ago

Hi @d1mster! I have just recently tried it and it works for me without issues. The only thing is that the --setup did not detect the target automatically. My yml file looks like this:

retain_public: true
schemes:
- DevelopmentPod
- SampleApp
targets:
- DevelopmentPod
- SampleApp
- SampleAppTests
- SampleAppUITests
workspace: Soteria/Soteria.xcworkspace
xuekevin commented 2 years ago

have same question: wonder if we planning to support DevelopmentPod, thanks

xuekevin commented 2 years ago

basically when seeing my project structure in xcode, it is like below

| MyProject | AppDelegate | Pods | Development Pods | modulePod1 | modulePod2 | modulePod3

if I add modulePod1 's target name into yml file, the error will be Target 'modulePod1' does not exist inMyProject.xcworkspace`

ileitch commented 2 years ago

Hey all, thanks for reporting. I will take a look shortly!

canhth commented 1 year ago

Hi @ileitch , Can we ask if there is any progress on this issue so far? Or you can provide us a hint or suggestion to contribute to this?

ileitch commented 1 year ago

Sorry @canhth I've not had time yet to look into this.

canhth commented 1 year ago

Hi @ileitch , I think most of the projects which use Development Pod will need this support. Can we start to find the solution?

rarias84 commented 1 year ago

Hi, any solution how to use it for Development Pods?

NiallKhaibullin commented 9 months ago

@ileitch Are there any plans to introduce periphery for Development Pods?

ileitch commented 3 months ago

SwiftPM is rapidly replacing CocoaPods in adoption, and many projects no longer provide CocoaPods support. Therfore I'm going to close this issue, as I think my time is better spent on other issues and feature requests.