diff --git a/README.md b/README.md index 243d746..40d61a7 100644 --- a/README.md +++ b/README.md @@ -47,16 +47,17 @@ This will run a default set of rules. But, you can customize its behavior with a ```yaml # Some rules may not be appropriate for all projects. You must opt-in those. opt_in_rules: - - embedded_build_setting # checks for build settings in the project file - - groups_sorted # checks that all group contents are alphabetically sorted - - implicit_dependencies # checks for any schemes that have "Find Implicit Dependencies" enabled - - targets_use_xcconfig # checks for any targets without a XCConfig file set - - projects_use_xcconfig # checks for any projects without a XCConfig file set + - embedded_build_setting # checks for build settings in the project file + - groups_sorted # checks that all group contents are alphabetically sorted + - implicit_dependencies # checks for any schemes that have "Find Implicit Dependencies" enabled + - targets_use_xcconfig # checks for any targets without a XCConfig file set + - projects_use_xcconfig # checks for any projects without a XCConfig file set + - shared_scheme_skips_tests # checks for any shared schemes that have disabled tests # Other rules make sense for all projects by default. You must opt-out of those. disabled_rules: - - build_files_ordered # checks that the ordering of techincally-unordered collections Xcode writes out is preserved - - validate_build_settings # checks that build settings have valid values + - build_files_ordered # checks that the ordering of techincally-unordered collections Xcode writes out is preserved + - validate_build_settings # checks that build settings have valid values ``` ## Alternatives diff --git a/Sources/XCLinting/Rules/SharedSchemeSkipsTestsRule.swift b/Sources/XCLinting/Rules/SharedSchemeSkipsTestsRule.swift new file mode 100644 index 0000000..bc78f4f --- /dev/null +++ b/Sources/XCLinting/Rules/SharedSchemeSkipsTestsRule.swift @@ -0,0 +1,69 @@ +import Foundation + +import XcodeProj +import XCConfig + +// this is needed for XCScheme creation +import PathKit + +/// Detect when a shared scheme has disabled tests. +struct SharedSchemeSkipsTestsRule { + func run(_ environment: XCLinter.Environment) throws -> [Violation] { + let sharedSchemesURL = environment + .projectRootURL + .appendingPathComponent("xcshareddata/xcschemes", isDirectory: true) + .standardizedFileURL + + let fileManager = FileManager.default + + guard fileManager.isReadableFile(atPath: sharedSchemesURL.path) else { return [] } + + var violations = [Violation]() + + for entry in try fileManager.contentsOfDirectory(atPath: sharedSchemesURL.path) { + let entryPath = sharedSchemesURL + .appendingPathComponent(entry, isDirectory: false) + .standardizedFileURL + .path + + let scheme = try XCScheme(path: Path(entryPath)) + + guard let testAction = scheme.testAction else { continue } + + if testAction.testables.contains(where: { $0.skipped == true }) { + violations.append(.init("Scheme \"\(entry)\" has skipped test bundles")) + } + + if testAction.testables.contains(where: { $0.skippedTests.isEmpty == false }) { + violations.append(.init("Scheme \"\(entry)\" has skipped tests")) + } + } + + + return violations + } + + private func validateSchemes(in url: URL) throws -> [Violation] { + let fileManager = FileManager.default + + guard fileManager.isReadableFile(atPath: url.path) else { return [] } + + var violations = [Violation]() + + for entry in try fileManager.contentsOfDirectory(atPath: url.path) { + let entryPath = url + .appendingPathComponent(entry, isDirectory: false) + .standardizedFileURL + .path + + let scheme = try XCScheme(path: Path(entryPath)) + + if scheme.buildAction?.buildImplicitDependencies == true { + violations.append(.init("Scheme \"\(entry)\" has implicit dependencies enabled")) + } + } + + return violations + } +} + diff --git a/Sources/XCLinting/XCLinter.swift b/Sources/XCLinting/XCLinter.swift index 99bc3fa..3d6fd92 100644 --- a/Sources/XCLinting/XCLinter.swift +++ b/Sources/XCLinting/XCLinter.swift @@ -81,5 +81,6 @@ extension XCLinter { "implicit_dependencies": { try ImplicitDependenciesRule().run($0) }, "targets_use_xcconfig": { try TargetsUseXCConfigRule().run($0) }, "projects_use_xcconfig": { try ProjectsUseXCConfigRule().run($0) }, + "shared_scheme_skips_tests": { try SharedSchemeSkipsTestsRule().run($0) } ] } diff --git a/Tests/XCLintTests/SharedSchemeSkipsTestsRuleTests.swift b/Tests/XCLintTests/SharedSchemeSkipsTestsRuleTests.swift new file mode 100644 index 0000000..5fa9bad --- /dev/null +++ b/Tests/XCLintTests/SharedSchemeSkipsTestsRuleTests.swift @@ -0,0 +1,54 @@ +import XCTest + +@testable import XCLinting +import XcodeProj + +final class SharedSchemeSkipsTestsRuleTests: XCTestCase { + func testProjectWithNoSkippedTests() throws { + let url = try Bundle.module.testDataURL(named: "StockMacOSApp.xcodeproj") + + let project = try XcodeProj(pathString: url.path) + + let env = XCLinter.Environment( + project: project, + projectRootURL: url, + configuration: Configuration() + ) + + let violations = try SharedSchemeSkipsTestsRule().run(env) + + XCTAssertTrue(violations.isEmpty) + } + + func testProjectWithSkippedTests() throws { + let url = try Bundle.module.testDataURL(named: "SchemeSkipsTests.xcodeproj") + + let project = try XcodeProj(pathString: url.path) + + let env = XCLinter.Environment( + project: project, + projectRootURL: url, + configuration: Configuration() + ) + + let violations = try SharedSchemeSkipsTestsRule().run(env) + + XCTAssertFalse(violations.isEmpty) + } + + func testProjectWithSkippedTestBundles() throws { + let url = try Bundle.module.testDataURL(named: "SchemeSkipsTestBundles.xcodeproj") + + let project = try XcodeProj(pathString: url.path) + + let env = XCLinter.Environment( + project: project, + projectRootURL: url, + configuration: Configuration() + ) + + let violations = try SharedSchemeSkipsTestsRule().run(env) + + XCTAssertFalse(violations.isEmpty) + } +} diff --git a/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/project.pbxproj b/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/project.pbxproj new file mode 100644 index 0000000..dac70a5 --- /dev/null +++ b/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/project.pbxproj @@ -0,0 +1,586 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + C973DFC72B616E0A000998F7 /* SchemeSkipsTestsApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFC62B616E0A000998F7 /* SchemeSkipsTestsApp.swift */; }; + C973DFC92B616E0A000998F7 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFC82B616E0A000998F7 /* ContentView.swift */; }; + C973DFCB2B616E0B000998F7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C973DFCA2B616E0B000998F7 /* Assets.xcassets */; }; + C973DFCE2B616E0B000998F7 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C973DFCD2B616E0B000998F7 /* Preview Assets.xcassets */; }; + C973DFD92B616E0B000998F7 /* SchemeSkipsTestsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFD82B616E0B000998F7 /* SchemeSkipsTestsTests.swift */; }; + C973DFE32B616E0B000998F7 /* SchemeSkipsTestsUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFE22B616E0B000998F7 /* SchemeSkipsTestsUITests.swift */; }; + C973DFE52B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFE42B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + C973DFD52B616E0B000998F7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C973DFBB2B616E0A000998F7 /* Project object */; + proxyType = 1; + remoteGlobalIDString = C973DFC22B616E0A000998F7; + remoteInfo = SchemeSkipsTests; + }; + C973DFDF2B616E0B000998F7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C973DFBB2B616E0A000998F7 /* Project object */; + proxyType = 1; + remoteGlobalIDString = C973DFC22B616E0A000998F7; + remoteInfo = SchemeSkipsTests; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + C973DFC32B616E0A000998F7 /* SchemeSkipsTests.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SchemeSkipsTests.app; sourceTree = BUILT_PRODUCTS_DIR; }; + C973DFC62B616E0A000998F7 /* SchemeSkipsTestsApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SchemeSkipsTestsApp.swift; sourceTree = ""; }; + C973DFC82B616E0A000998F7 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + C973DFCA2B616E0B000998F7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + C973DFCD2B616E0B000998F7 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + C973DFCF2B616E0B000998F7 /* SchemeSkipsTests.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SchemeSkipsTests.entitlements; sourceTree = ""; }; + C973DFD42B616E0B000998F7 /* SchemeSkipsTestsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SchemeSkipsTestsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + C973DFD82B616E0B000998F7 /* SchemeSkipsTestsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SchemeSkipsTestsTests.swift; sourceTree = ""; }; + C973DFDE2B616E0B000998F7 /* SchemeSkipsTestsUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SchemeSkipsTestsUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + C973DFE22B616E0B000998F7 /* SchemeSkipsTestsUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SchemeSkipsTestsUITests.swift; sourceTree = ""; }; + C973DFE42B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SchemeSkipsTestsUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + C973DFC02B616E0A000998F7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFD12B616E0B000998F7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFDB2B616E0B000998F7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + C973DFBA2B616E0A000998F7 = { + isa = PBXGroup; + children = ( + C973DFC52B616E0A000998F7 /* SchemeSkipsTests */, + C973DFD72B616E0B000998F7 /* SchemeSkipsTestsTests */, + C973DFE12B616E0B000998F7 /* SchemeSkipsTestsUITests */, + C973DFC42B616E0A000998F7 /* Products */, + ); + sourceTree = ""; + }; + C973DFC42B616E0A000998F7 /* Products */ = { + isa = PBXGroup; + children = ( + C973DFC32B616E0A000998F7 /* SchemeSkipsTests.app */, + C973DFD42B616E0B000998F7 /* SchemeSkipsTestsTests.xctest */, + C973DFDE2B616E0B000998F7 /* SchemeSkipsTestsUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + C973DFC52B616E0A000998F7 /* SchemeSkipsTests */ = { + isa = PBXGroup; + children = ( + C973DFC62B616E0A000998F7 /* SchemeSkipsTestsApp.swift */, + C973DFC82B616E0A000998F7 /* ContentView.swift */, + C973DFCA2B616E0B000998F7 /* Assets.xcassets */, + C973DFCF2B616E0B000998F7 /* SchemeSkipsTests.entitlements */, + C973DFCC2B616E0B000998F7 /* Preview Content */, + ); + path = SchemeSkipsTests; + sourceTree = ""; + }; + C973DFCC2B616E0B000998F7 /* Preview Content */ = { + isa = PBXGroup; + children = ( + C973DFCD2B616E0B000998F7 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + C973DFD72B616E0B000998F7 /* SchemeSkipsTestsTests */ = { + isa = PBXGroup; + children = ( + C973DFD82B616E0B000998F7 /* SchemeSkipsTestsTests.swift */, + ); + path = SchemeSkipsTestsTests; + sourceTree = ""; + }; + C973DFE12B616E0B000998F7 /* SchemeSkipsTestsUITests */ = { + isa = PBXGroup; + children = ( + C973DFE22B616E0B000998F7 /* SchemeSkipsTestsUITests.swift */, + C973DFE42B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift */, + ); + path = SchemeSkipsTestsUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + C973DFC22B616E0A000998F7 /* SchemeSkipsTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = C973DFE82B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTests" */; + buildPhases = ( + C973DFBF2B616E0A000998F7 /* Sources */, + C973DFC02B616E0A000998F7 /* Frameworks */, + C973DFC12B616E0A000998F7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SchemeSkipsTests; + productName = SchemeSkipsTests; + productReference = C973DFC32B616E0A000998F7 /* SchemeSkipsTests.app */; + productType = "com.apple.product-type.application"; + }; + C973DFD32B616E0B000998F7 /* SchemeSkipsTestsTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = C973DFEB2B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTestsTests" */; + buildPhases = ( + C973DFD02B616E0B000998F7 /* Sources */, + C973DFD12B616E0B000998F7 /* Frameworks */, + C973DFD22B616E0B000998F7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + C973DFD62B616E0B000998F7 /* PBXTargetDependency */, + ); + name = SchemeSkipsTestsTests; + productName = SchemeSkipsTestsTests; + productReference = C973DFD42B616E0B000998F7 /* SchemeSkipsTestsTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + C973DFDD2B616E0B000998F7 /* SchemeSkipsTestsUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = C973DFEE2B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTestsUITests" */; + buildPhases = ( + C973DFDA2B616E0B000998F7 /* Sources */, + C973DFDB2B616E0B000998F7 /* Frameworks */, + C973DFDC2B616E0B000998F7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + C973DFE02B616E0B000998F7 /* PBXTargetDependency */, + ); + name = SchemeSkipsTestsUITests; + productName = SchemeSkipsTestsUITests; + productReference = C973DFDE2B616E0B000998F7 /* SchemeSkipsTestsUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + C973DFBB2B616E0A000998F7 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + C973DFC22B616E0A000998F7 = { + CreatedOnToolsVersion = 15.2; + }; + C973DFD32B616E0B000998F7 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = C973DFC22B616E0A000998F7; + }; + C973DFDD2B616E0B000998F7 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = C973DFC22B616E0A000998F7; + }; + }; + }; + buildConfigurationList = C973DFBE2B616E0A000998F7 /* Build configuration list for PBXProject "SchemeSkipsTests" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = C973DFBA2B616E0A000998F7; + productRefGroup = C973DFC42B616E0A000998F7 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + C973DFC22B616E0A000998F7 /* SchemeSkipsTests */, + C973DFD32B616E0B000998F7 /* SchemeSkipsTestsTests */, + C973DFDD2B616E0B000998F7 /* SchemeSkipsTestsUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + C973DFC12B616E0A000998F7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C973DFCE2B616E0B000998F7 /* Preview Assets.xcassets in Resources */, + C973DFCB2B616E0B000998F7 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFD22B616E0B000998F7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFDC2B616E0B000998F7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + C973DFBF2B616E0A000998F7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C973DFC92B616E0A000998F7 /* ContentView.swift in Sources */, + C973DFC72B616E0A000998F7 /* SchemeSkipsTestsApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFD02B616E0B000998F7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C973DFD92B616E0B000998F7 /* SchemeSkipsTestsTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFDA2B616E0B000998F7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C973DFE52B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift in Sources */, + C973DFE32B616E0B000998F7 /* SchemeSkipsTestsUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + C973DFD62B616E0B000998F7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = C973DFC22B616E0A000998F7 /* SchemeSkipsTests */; + targetProxy = C973DFD52B616E0B000998F7 /* PBXContainerItemProxy */; + }; + C973DFE02B616E0B000998F7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = C973DFC22B616E0A000998F7 /* SchemeSkipsTests */; + targetProxy = C973DFDF2B616E0B000998F7 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + C973DFE62B616E0B000998F7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + C973DFE72B616E0B000998F7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + }; + name = Release; + }; + C973DFE92B616E0B000998F7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = SchemeSkipsTests/SchemeSkipsTests.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"SchemeSkipsTests/Preview Content\""; + DEVELOPMENT_TEAM = 77X93NZ3G2; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + C973DFEA2B616E0B000998F7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = SchemeSkipsTests/SchemeSkipsTests.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"SchemeSkipsTests/Preview Content\""; + DEVELOPMENT_TEAM = 77X93NZ3G2; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + C973DFEC2B616E0B000998F7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 77X93NZ3G2; + GENERATE_INFOPLIST_FILE = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTestsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SchemeSkipsTests.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/SchemeSkipsTests"; + }; + name = Debug; + }; + C973DFED2B616E0B000998F7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 77X93NZ3G2; + GENERATE_INFOPLIST_FILE = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTestsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SchemeSkipsTests.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/SchemeSkipsTests"; + }; + name = Release; + }; + C973DFEF2B616E0B000998F7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 77X93NZ3G2; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTestsUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_TARGET_NAME = SchemeSkipsTests; + }; + name = Debug; + }; + C973DFF02B616E0B000998F7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 77X93NZ3G2; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTestsUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_TARGET_NAME = SchemeSkipsTests; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + C973DFBE2B616E0A000998F7 /* Build configuration list for PBXProject "SchemeSkipsTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C973DFE62B616E0B000998F7 /* Debug */, + C973DFE72B616E0B000998F7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C973DFE82B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C973DFE92B616E0B000998F7 /* Debug */, + C973DFEA2B616E0B000998F7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C973DFEB2B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTestsTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C973DFEC2B616E0B000998F7 /* Debug */, + C973DFED2B616E0B000998F7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C973DFEE2B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTestsUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C973DFEF2B616E0B000998F7 /* Debug */, + C973DFF02B616E0B000998F7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = C973DFBB2B616E0A000998F7 /* Project object */; +} diff --git a/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/xcshareddata/xcschemes/SchemeSkipsTests.xcscheme b/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/xcshareddata/xcschemes/SchemeSkipsTests.xcscheme new file mode 100644 index 0000000..ac2af97 --- /dev/null +++ b/Tests/XCLintTests/TestData/SchemeSkipsTestBundles.xcodeproj/xcshareddata/xcschemes/SchemeSkipsTests.xcscheme @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/project.pbxproj b/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/project.pbxproj new file mode 100644 index 0000000..dac70a5 --- /dev/null +++ b/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/project.pbxproj @@ -0,0 +1,586 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + C973DFC72B616E0A000998F7 /* SchemeSkipsTestsApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFC62B616E0A000998F7 /* SchemeSkipsTestsApp.swift */; }; + C973DFC92B616E0A000998F7 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFC82B616E0A000998F7 /* ContentView.swift */; }; + C973DFCB2B616E0B000998F7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C973DFCA2B616E0B000998F7 /* Assets.xcassets */; }; + C973DFCE2B616E0B000998F7 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C973DFCD2B616E0B000998F7 /* Preview Assets.xcassets */; }; + C973DFD92B616E0B000998F7 /* SchemeSkipsTestsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFD82B616E0B000998F7 /* SchemeSkipsTestsTests.swift */; }; + C973DFE32B616E0B000998F7 /* SchemeSkipsTestsUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFE22B616E0B000998F7 /* SchemeSkipsTestsUITests.swift */; }; + C973DFE52B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C973DFE42B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + C973DFD52B616E0B000998F7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C973DFBB2B616E0A000998F7 /* Project object */; + proxyType = 1; + remoteGlobalIDString = C973DFC22B616E0A000998F7; + remoteInfo = SchemeSkipsTests; + }; + C973DFDF2B616E0B000998F7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C973DFBB2B616E0A000998F7 /* Project object */; + proxyType = 1; + remoteGlobalIDString = C973DFC22B616E0A000998F7; + remoteInfo = SchemeSkipsTests; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + C973DFC32B616E0A000998F7 /* SchemeSkipsTests.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SchemeSkipsTests.app; sourceTree = BUILT_PRODUCTS_DIR; }; + C973DFC62B616E0A000998F7 /* SchemeSkipsTestsApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SchemeSkipsTestsApp.swift; sourceTree = ""; }; + C973DFC82B616E0A000998F7 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + C973DFCA2B616E0B000998F7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + C973DFCD2B616E0B000998F7 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + C973DFCF2B616E0B000998F7 /* SchemeSkipsTests.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SchemeSkipsTests.entitlements; sourceTree = ""; }; + C973DFD42B616E0B000998F7 /* SchemeSkipsTestsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SchemeSkipsTestsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + C973DFD82B616E0B000998F7 /* SchemeSkipsTestsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SchemeSkipsTestsTests.swift; sourceTree = ""; }; + C973DFDE2B616E0B000998F7 /* SchemeSkipsTestsUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SchemeSkipsTestsUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + C973DFE22B616E0B000998F7 /* SchemeSkipsTestsUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SchemeSkipsTestsUITests.swift; sourceTree = ""; }; + C973DFE42B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SchemeSkipsTestsUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + C973DFC02B616E0A000998F7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFD12B616E0B000998F7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFDB2B616E0B000998F7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + C973DFBA2B616E0A000998F7 = { + isa = PBXGroup; + children = ( + C973DFC52B616E0A000998F7 /* SchemeSkipsTests */, + C973DFD72B616E0B000998F7 /* SchemeSkipsTestsTests */, + C973DFE12B616E0B000998F7 /* SchemeSkipsTestsUITests */, + C973DFC42B616E0A000998F7 /* Products */, + ); + sourceTree = ""; + }; + C973DFC42B616E0A000998F7 /* Products */ = { + isa = PBXGroup; + children = ( + C973DFC32B616E0A000998F7 /* SchemeSkipsTests.app */, + C973DFD42B616E0B000998F7 /* SchemeSkipsTestsTests.xctest */, + C973DFDE2B616E0B000998F7 /* SchemeSkipsTestsUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + C973DFC52B616E0A000998F7 /* SchemeSkipsTests */ = { + isa = PBXGroup; + children = ( + C973DFC62B616E0A000998F7 /* SchemeSkipsTestsApp.swift */, + C973DFC82B616E0A000998F7 /* ContentView.swift */, + C973DFCA2B616E0B000998F7 /* Assets.xcassets */, + C973DFCF2B616E0B000998F7 /* SchemeSkipsTests.entitlements */, + C973DFCC2B616E0B000998F7 /* Preview Content */, + ); + path = SchemeSkipsTests; + sourceTree = ""; + }; + C973DFCC2B616E0B000998F7 /* Preview Content */ = { + isa = PBXGroup; + children = ( + C973DFCD2B616E0B000998F7 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + C973DFD72B616E0B000998F7 /* SchemeSkipsTestsTests */ = { + isa = PBXGroup; + children = ( + C973DFD82B616E0B000998F7 /* SchemeSkipsTestsTests.swift */, + ); + path = SchemeSkipsTestsTests; + sourceTree = ""; + }; + C973DFE12B616E0B000998F7 /* SchemeSkipsTestsUITests */ = { + isa = PBXGroup; + children = ( + C973DFE22B616E0B000998F7 /* SchemeSkipsTestsUITests.swift */, + C973DFE42B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift */, + ); + path = SchemeSkipsTestsUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + C973DFC22B616E0A000998F7 /* SchemeSkipsTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = C973DFE82B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTests" */; + buildPhases = ( + C973DFBF2B616E0A000998F7 /* Sources */, + C973DFC02B616E0A000998F7 /* Frameworks */, + C973DFC12B616E0A000998F7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SchemeSkipsTests; + productName = SchemeSkipsTests; + productReference = C973DFC32B616E0A000998F7 /* SchemeSkipsTests.app */; + productType = "com.apple.product-type.application"; + }; + C973DFD32B616E0B000998F7 /* SchemeSkipsTestsTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = C973DFEB2B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTestsTests" */; + buildPhases = ( + C973DFD02B616E0B000998F7 /* Sources */, + C973DFD12B616E0B000998F7 /* Frameworks */, + C973DFD22B616E0B000998F7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + C973DFD62B616E0B000998F7 /* PBXTargetDependency */, + ); + name = SchemeSkipsTestsTests; + productName = SchemeSkipsTestsTests; + productReference = C973DFD42B616E0B000998F7 /* SchemeSkipsTestsTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + C973DFDD2B616E0B000998F7 /* SchemeSkipsTestsUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = C973DFEE2B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTestsUITests" */; + buildPhases = ( + C973DFDA2B616E0B000998F7 /* Sources */, + C973DFDB2B616E0B000998F7 /* Frameworks */, + C973DFDC2B616E0B000998F7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + C973DFE02B616E0B000998F7 /* PBXTargetDependency */, + ); + name = SchemeSkipsTestsUITests; + productName = SchemeSkipsTestsUITests; + productReference = C973DFDE2B616E0B000998F7 /* SchemeSkipsTestsUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + C973DFBB2B616E0A000998F7 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + C973DFC22B616E0A000998F7 = { + CreatedOnToolsVersion = 15.2; + }; + C973DFD32B616E0B000998F7 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = C973DFC22B616E0A000998F7; + }; + C973DFDD2B616E0B000998F7 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = C973DFC22B616E0A000998F7; + }; + }; + }; + buildConfigurationList = C973DFBE2B616E0A000998F7 /* Build configuration list for PBXProject "SchemeSkipsTests" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = C973DFBA2B616E0A000998F7; + productRefGroup = C973DFC42B616E0A000998F7 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + C973DFC22B616E0A000998F7 /* SchemeSkipsTests */, + C973DFD32B616E0B000998F7 /* SchemeSkipsTestsTests */, + C973DFDD2B616E0B000998F7 /* SchemeSkipsTestsUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + C973DFC12B616E0A000998F7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C973DFCE2B616E0B000998F7 /* Preview Assets.xcassets in Resources */, + C973DFCB2B616E0B000998F7 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFD22B616E0B000998F7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFDC2B616E0B000998F7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + C973DFBF2B616E0A000998F7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C973DFC92B616E0A000998F7 /* ContentView.swift in Sources */, + C973DFC72B616E0A000998F7 /* SchemeSkipsTestsApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFD02B616E0B000998F7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C973DFD92B616E0B000998F7 /* SchemeSkipsTestsTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + C973DFDA2B616E0B000998F7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C973DFE52B616E0B000998F7 /* SchemeSkipsTestsUITestsLaunchTests.swift in Sources */, + C973DFE32B616E0B000998F7 /* SchemeSkipsTestsUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + C973DFD62B616E0B000998F7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = C973DFC22B616E0A000998F7 /* SchemeSkipsTests */; + targetProxy = C973DFD52B616E0B000998F7 /* PBXContainerItemProxy */; + }; + C973DFE02B616E0B000998F7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = C973DFC22B616E0A000998F7 /* SchemeSkipsTests */; + targetProxy = C973DFDF2B616E0B000998F7 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + C973DFE62B616E0B000998F7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + C973DFE72B616E0B000998F7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + }; + name = Release; + }; + C973DFE92B616E0B000998F7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = SchemeSkipsTests/SchemeSkipsTests.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"SchemeSkipsTests/Preview Content\""; + DEVELOPMENT_TEAM = 77X93NZ3G2; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + C973DFEA2B616E0B000998F7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = SchemeSkipsTests/SchemeSkipsTests.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"SchemeSkipsTests/Preview Content\""; + DEVELOPMENT_TEAM = 77X93NZ3G2; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + C973DFEC2B616E0B000998F7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 77X93NZ3G2; + GENERATE_INFOPLIST_FILE = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTestsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SchemeSkipsTests.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/SchemeSkipsTests"; + }; + name = Debug; + }; + C973DFED2B616E0B000998F7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 77X93NZ3G2; + GENERATE_INFOPLIST_FILE = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTestsTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SchemeSkipsTests.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/SchemeSkipsTests"; + }; + name = Release; + }; + C973DFEF2B616E0B000998F7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 77X93NZ3G2; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTestsUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_TARGET_NAME = SchemeSkipsTests; + }; + name = Debug; + }; + C973DFF02B616E0B000998F7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 77X93NZ3G2; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.SchemeSkipsTestsUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_TARGET_NAME = SchemeSkipsTests; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + C973DFBE2B616E0A000998F7 /* Build configuration list for PBXProject "SchemeSkipsTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C973DFE62B616E0B000998F7 /* Debug */, + C973DFE72B616E0B000998F7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C973DFE82B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C973DFE92B616E0B000998F7 /* Debug */, + C973DFEA2B616E0B000998F7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C973DFEB2B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTestsTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C973DFEC2B616E0B000998F7 /* Debug */, + C973DFED2B616E0B000998F7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C973DFEE2B616E0B000998F7 /* Build configuration list for PBXNativeTarget "SchemeSkipsTestsUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C973DFEF2B616E0B000998F7 /* Debug */, + C973DFF02B616E0B000998F7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = C973DFBB2B616E0A000998F7 /* Project object */; +} diff --git a/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/xcshareddata/xcschemes/SchemeSkipsTests.xcscheme b/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/xcshareddata/xcschemes/SchemeSkipsTests.xcscheme new file mode 100644 index 0000000..92585b0 --- /dev/null +++ b/Tests/XCLintTests/TestData/SchemeSkipsTests.xcodeproj/xcshareddata/xcschemes/SchemeSkipsTests.xcscheme @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +