peripheryapp / periphery

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

Is build-for-testing compatible with schemes without test targets? #793

Open ileitch opened 1 month ago

ileitch commented 1 month ago

Is the behavior the same for different Xcode projects?

rofle100lvl commented 3 weeks ago

Hm, it looks like build-for-testing setting breaks my project.


__swift_FORCE_LOAD_$_XCTestSwiftSupport, referenced from:

      __swift_FORCE_LOAD_$_XCTestSwiftSupport_$_UIComponentsUnitTests in BubbleModifierTests.o

      __swift_FORCE_LOAD_$_XCTestSwiftSupport_$_SnapshotTesting in SnapshotTesting[3](AssertSnapshot.o)

      __swift_FORCE_LOAD_$_XCTestSwiftSupport_$_TSnapshotKit in TSnapshotKit[3](SnapshotBatch.o)

```But XCTests is included explicitly everywhere
ileitch commented 2 weeks ago

Is this project public? If not, are you able to create a sample project that demonstrates the issue?