diff --git a/Sources/VariantsCore/Factory/iOS/XCConfigFactory.swift b/Sources/VariantsCore/Factory/iOS/XCConfigFactory.swift index 1e4968c..69d1eeb 100644 --- a/Sources/VariantsCore/Factory/iOS/XCConfigFactory.swift +++ b/Sources/VariantsCore/Factory/iOS/XCConfigFactory.swift @@ -159,7 +159,6 @@ class XCConfigFactory: XCFactory { private func populateConfig(with target: NamedTarget, configFile: Path, variant: iOSVariant) { logger.logInfo("Populating: ", item: "'\(configFile.lastComponent)'") - importPodsIfNeeded(target: target, configFile: configFile) variant.getDefaultValues(for: target.value).forEach { (key, value) in let stringContent = "\(key) = \(value)" logger.logDebug("Item: ", item: stringContent, indentationLevel: 1, color: .purple) @@ -197,22 +196,6 @@ class XCConfigFactory: XCFactory { xcodeFactory.modify(mainTargetSettings, in: projectPath, target: target.value) } - private func importPodsIfNeeded(target: NamedTarget, configFile: Path) { - guard StaticPath.Pod.podFileFile.exists else { return } - // this regex finds a folder that starts with Pods and ends with the target key, with a ".release.xcconfig" extension. - let podConfigFileRegex: String = "./Pods/Target Support Files/Pods.*-\(target.key)/.*\\.release\\.xcconfig" - guard let podsConfigFile: String = try? Bash("find | head -n 1", arguments: ".", "-regex", podConfigFileRegex).capture(), - !podsConfigFile.isEmpty else { - logger.logError("❌ ", item: "Failed to import Pods config in .xcconfig, Pod config file not found") - return - } - let includeStatement = "#include \"\(podsConfigFile)\"" - let (success, _) = write(includeStatement, toFile: configFile, force: false) - if !success { - logger.logError("❌ ", item: "Failed to add item to .xcconfig") - } - } - private func updateInfoPlist(with target: iOSTarget, configFile: Path, variant: iOSVariant) { let configFilePath = configFile.absolute().description do { diff --git a/Sources/VariantsCore/Helpers/Constants.swift b/Sources/VariantsCore/Helpers/Constants.swift index baf9306..6ff3840 100644 --- a/Sources/VariantsCore/Helpers/Constants.swift +++ b/Sources/VariantsCore/Helpers/Constants.swift @@ -30,10 +30,6 @@ struct StaticPath { static let variantsFileName = "Variants.swift" } - struct Pod { - static let podFileFile = Path("Podfile") - } - struct Template { static let variantsScriptFileName = "variants-template.gradle" static let fastlaneParametersFileName = "variants_params_template.rb"