From 82b2b00ee3cd22237851589c06f13104af2c9e5b Mon Sep 17 00:00:00 2001 From: Alexandre Podlewski Date: Mon, 4 Mar 2024 15:34:31 +0100 Subject: [PATCH] Add SwiftLint build phase --- .../project.pbxproj | 48 ++++++++++++++++--- 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/NavigationBarExtension.xcodeproj/project.pbxproj b/NavigationBarExtension.xcodeproj/project.pbxproj index 0c9ce1c..a80c10b 100644 --- a/NavigationBarExtension.xcodeproj/project.pbxproj +++ b/NavigationBarExtension.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -196,6 +196,7 @@ buildPhases = ( 2791622B06362A6507B006C9 /* [CP] Check Pods Manifest.lock */, 607FACCC1AFB9204008FA782 /* Sources */, + AC88E9EC2B9611ED0073F85B /* SwiftLint */, 607FACCD1AFB9204008FA782 /* Frameworks */, 607FACCE1AFB9204008FA782 /* Resources */, 3DDDF70962B4934782466AD9 /* [CP] Embed Pods Frameworks */, @@ -336,6 +337,26 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NavigationBarExtension_Example/Pods-NavigationBarExtension_Example-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; + AC88E9EC2B9611ED0073F85B /* SwiftLint */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = SwiftLint; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/SwiftLint/swiftlint\"\n\n"; + showEnvVarsInLog = 0; + }; EB67672EA378BB5EF4ABA0DD /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -502,7 +523,8 @@ IPHONEOS_DEPLOYMENT_TARGET = 14.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; VALIDATE_PRODUCT = YES; }; name = Release; @@ -515,7 +537,10 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = U5M7X5V6ZG; INFOPLIST_FILE = "$(SRCROOT)/Example/NavigationBarExtension/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); MARKETING_VERSION = 0.1.0; MODULE_NAME = ExampleApp; PRODUCT_BUNDLE_IDENTIFIER = "com.applidium.NavigationBarExtension-Example"; @@ -534,7 +559,10 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = U5M7X5V6ZG; INFOPLIST_FILE = "$(SRCROOT)/Example/NavigationBarExtension/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); MARKETING_VERSION = 0.1.0; MODULE_NAME = ExampleApp; PRODUCT_BUNDLE_IDENTIFIER = "com.applidium.NavigationBarExtension-Example"; @@ -558,7 +586,11 @@ "$(inherited)", ); INFOPLIST_FILE = Example/Tests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default; @@ -576,7 +608,11 @@ "$(inherited)", ); INFOPLIST_FILE = Example/Tests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_SWIFT3_OBJC_INFERENCE = Default;