CocoaPods / CocoaPods/Xcodeproj

Not all targets respond to test_target_type

Open
#563 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Ruby
Stars
2.4k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

In https://github.com/fastlane/fastlane/pull/12212, @joshdholtz had to do the following because aggregate targets don't respond to `test_target_type?`:

```diff
- non_test_targets = targets.reject(&:test_target_type?)
+ non_test_targets = targets.reject do |t|
+ # Not all targets respond to `test_target_type?`
+ t.respond_to?(:test_target_type?) && t.test_target_type?
+ end
```

It would be nice if aggregate targets (and others?) would respond to `test_target_type?` by returning `false` instead of throwing an exception

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.