diff --git a/AutoCatCore/DependencyInjection/ServiceContainer.swift b/AutoCatCore/DependencyInjection/ServiceContainer.swift index 5b26e74..1cbd45e 100644 --- a/AutoCatCore/DependencyInjection/ServiceContainer.swift +++ b/AutoCatCore/DependencyInjection/ServiceContainer.swift @@ -41,7 +41,7 @@ public class ServiceContainer { cache[String(describing: service.self)] = instance } - public func resolve(_ service: Service.Type) throws -> Service { + public func resolve(_ service: Service.Type) -> Service { let type = String(describing: service.self) diff --git a/AutoCatCoreTests/LocationServiceTests.swift b/AutoCatCoreTests/LocationServiceTests.swift index d937d6a..c125145 100644 --- a/AutoCatCoreTests/LocationServiceTests.swift +++ b/AutoCatCoreTests/LocationServiceTests.swift @@ -10,6 +10,7 @@ import Testing import CoreLocation import Mockable import Intents +import Contacts @testable import AutoCatCore @MainActor diff --git a/AutoCatTests/LocationPickerTests.swift b/AutoCatTests/LocationPickerTests.swift index 5f1e0a3..f5eb4d0 100644 --- a/AutoCatTests/LocationPickerTests.swift +++ b/AutoCatTests/LocationPickerTests.swift @@ -10,6 +10,7 @@ import Testing import CoreLocation import Mockable import Intents +import Contacts @testable import AutoCat @testable import AutoCatCore