diff --git a/MHIdentityKit.podspec b/MHIdentityKit.podspec index 792f636..3945f9e 100644 --- a/MHIdentityKit.podspec +++ b/MHIdentityKit.podspec @@ -1,14 +1,14 @@ Pod::Spec.new do |s| s.name = "MHIdentityKit" - s.version = "1.10.0" + s.version = "1.10.1" s.source = { :git => "https://github.com/KoCMoHaBTa/#{s.name}.git", :tag => "#{s.version}" } s.license = { :type => "MIT", :file => "LICENSE" } s.author = "Milen Halachev" s.summary = "OAuth2 and OpenID connect iOS Protocol Oriented Swift client library." s.homepage = "https://github.com/KoCMoHaBTa/#{s.name}" - s.swift_version = "5.0" + s.swift_version = "5.1" s.ios.deployment_target = "8.0" s.osx.deployment_target = "10.10" s.watchos.deployment_target = "3.0" diff --git a/MHIdentityKit.xcodeproj/project.pbxproj b/MHIdentityKit.xcodeproj/project.pbxproj index 25eb7d0..4c35328 100644 --- a/MHIdentityKit.xcodeproj/project.pbxproj +++ b/MHIdentityKit.xcodeproj/project.pbxproj @@ -372,6 +372,7 @@ E6B39C27206BB23700CB1435 /* ClientCredentialsGrantFlowTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClientCredentialsGrantFlowTests.swift; sourceTree = ""; }; E6B39C2B206BB24300CB1435 /* ResourceOwnerPasswordCredentialsGrantFlowTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResourceOwnerPasswordCredentialsGrantFlowTests.swift; sourceTree = ""; }; E6B493A11ED350DC00580178 /* MHIdentityKitError.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MHIdentityKitError.swift; sourceTree = ""; }; + E6C767D32332271100C10BAB /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitignore; sourceTree = ""; }; E6DC216B1F028FEA008D182A /* KeychainIdentityStorage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KeychainIdentityStorage.swift; sourceTree = ""; }; E6DC216D1F0292C9008D182A /* Keychain.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Keychain.swift; sourceTree = ""; }; E6DC21781F0293D9008D182A /* OSStatus.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OSStatus.swift; sourceTree = ""; }; @@ -464,6 +465,7 @@ 9954AE3B1E9D169700F2A73D = { isa = PBXGroup; children = ( + E6C767D32332271100C10BAB /* .gitignore */, E66D60571ED85F590049657F /* README.md */, E648E8F6217A296F00FC15BA /* LICENSE */, E648EF9921F8A77F00CC79D6 /* MHIdentityKit.podspec */, @@ -1529,6 +1531,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.KoCMoHaBTa.MHIdentityKit; PRODUCT_NAME = MHIdentityKit; SDKROOT = iphoneos; + SUPPORTS_MACCATALYST = NO; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; TARGETED_DEVICE_FAMILY = "1,2"; @@ -1590,6 +1593,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.KoCMoHaBTa.MHIdentityKit; PRODUCT_NAME = MHIdentityKit; SDKROOT = iphoneos; + SUPPORTS_MACCATALYST = NO; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; TARGETED_DEVICE_FAMILY = "1,2"; TVOS_DEPLOYMENT_TARGET = 10.0; diff --git a/MHIdentityKit/Infrastructure/OSStatus.swift b/MHIdentityKit/Infrastructure/OSStatus.swift index 3fa85a7..5651f6f 100644 --- a/MHIdentityKit/Infrastructure/OSStatus.swift +++ b/MHIdentityKit/Infrastructure/OSStatus.swift @@ -398,7 +398,7 @@ func OSStatusGetErrorCodeMessage(_ status: OSStatus) -> String { func OSStatusGetError(_ status: OSStatus) -> Error { - return NSError(domain: NSOSStatusErrorDomain, code: Int(status), userInfo: [NSLocalizedDescriptionKey: NSLocalizedString(OSStatusGetErrorCodeMessage(status), comment: "")]) + return NSError(domain: NSOSStatusErrorDomain, code: Int(status), userInfo: [NSLocalizedDescriptionKey: Bundle.main.localizedString(forKey: OSStatusGetErrorCodeMessage(status), value: nil, table: nil)]) }