Rollback of commit 9348eec8b70417b7255a45353388da92132e3559
Rollback of commit 9348eec8b70417b7255a45353388da92132e3559

*** Reason for rollback ***

Broke some internal projects.

*** Original change description ***

Copybara import of the project:

--
8f19a2e15329d4a6556cded33e27c759be62a2bc by Keith Smiley <keithbsmiley@gmail.com>:

Pass is_test = True for testonly binaries

rules_swift uses this value to determine if it should pass the new
library location to the linker. This is required to link a `testonly`
Swift framework that uses XCTest.

RELNOTES: None.
PiperOrigin-RevId: 268547239

bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple,bazelbuild/rules_apple