From 12e719125fff25c31741693ca1bad13862db1f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=E4=BA=86=E4=B8=AAJ?= <199109106@qq.com> Date: Mon, 4 Nov 2019 11:54:49 +0800 Subject: [PATCH] Fix for iOS9 --- CHANGELOG.md | 4 +++- KakaJSON.podspec | 2 +- README.md | 4 ++-- Sources/KakaJSON/Metadata/Metadata.swift | 4 +++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6ce5e7..640079a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ --- -## new +## [1.1.1](https://github.com/kakaopensource/KakaJSON/releases/tag/1.1.1) (2019-11-04) +- Closed issues + - [iOS 9 Crash](https://github.com/kakaopensource/KakaJSON/issues/31) - Merged pull requests - [use isUppercase to check if the character is uppercase](https://github.com/kakaopensource/KakaJSON/pull/20) - [A key should be able to contain dot](https://github.com/kakaopensource/KakaJSON/pull/21) diff --git a/KakaJSON.podspec b/KakaJSON.podspec index c74f505..f497a84 100644 --- a/KakaJSON.podspec +++ b/KakaJSON.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "KakaJSON" - s.version = "1.1.0" + s.version = "1.1.1" s.summary = "Fast conversion between JSON and model in Swift" s.homepage = "https://github.com/kakaopensource/KakaJSON" s.license = { :type => "MIT" } diff --git a/README.md b/README.md index 1e2564d..df5833a 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ ### CocoaPods ```ruby -pod 'KakaJSON', '~> 1.1.0' +pod 'KakaJSON', '~> 1.1.1' ``` ### Carthage ```ruby -github "kakaopensource/KakaJSON" ~> 1.1.0 +github "kakaopensource/KakaJSON" ~> 1.1.1 ``` ### Swift Package Manager diff --git a/Sources/KakaJSON/Metadata/Metadata.swift b/Sources/KakaJSON/Metadata/Metadata.swift index 9888445..71acd95 100644 --- a/Sources/KakaJSON/Metadata/Metadata.swift +++ b/Sources/KakaJSON/Metadata/Metadata.swift @@ -19,7 +19,9 @@ public struct Metadata { // name let name = String(describing: type) - if name == "Swift._SwiftObject" || name == "NSObject" { return nil } + if name == "Swift._SwiftObject" + || name == "NSObject" + || name == "_TtCs12_SwiftObject" { return nil } typeLock.lock() defer { typeLock.unlock() }