Skip to content

Commit fac90e8

Browse files
authored
Use !canImport(ObjectiveC) instead of !os(macOS) (#1916)
There are a bunch of platforms which are not macOS and still have the ObjC runtime. This also brings this check inline with the `generate-linuxmain` command. See rdar://problem/46739400
1 parent a3d2d24 commit fac90e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Workspace/InitPackage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public final class InitPackage {
367367
stream <<< """
368368
import XCTest
369369
370-
#if !os(macOS)
370+
#if !canImport(ObjectiveC)
371371
public func allTests() -> [XCTestCaseEntry] {
372372
return [
373373
testCase(\(moduleName)Tests.allTests),

0 commit comments

Comments
 (0)