diff --git a/GPXTracker2/GPXTracker2.xcodeproj/project.pbxproj b/GPXTracker2/GPXTracker2.xcodeproj/project.pbxproj index e3ed116..3083338 100644 --- a/GPXTracker2/GPXTracker2.xcodeproj/project.pbxproj +++ b/GPXTracker2/GPXTracker2.xcodeproj/project.pbxproj @@ -402,7 +402,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = E0767966E32D469CA8B635CF /* Pods-GPXTracker2.debug.xcconfig */; buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; INFOPLIST_FILE = GPXTracker2/Info.plist; @@ -418,7 +417,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = 17DBFA0F9565D349935C5913 /* Pods-GPXTracker2.release.xcconfig */; buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; INFOPLIST_FILE = GPXTracker2/Info.plist; diff --git a/GPXTracker2/GPXTracker2/KMLParser.swift b/GPXTracker2/GPXTracker2/KMLParser.swift index 9ddc6bd..8800310 100644 --- a/GPXTracker2/GPXTracker2/KMLParser.swift +++ b/GPXTracker2/GPXTracker2/KMLParser.swift @@ -36,9 +36,9 @@ class KMLParser { for _ in placemark.css("Point") { guard let coordinates = placemark.css("coordinates").first?.text else {continue} - let split = coordinates.characters.split{$0 == ","}.map(String.init) - let lon:NSString = split[0] as NSString - let lat:NSString = split[1] as NSString + let split = coordinates.components(separatedBy: ",") + let lon:NSString = split[0].trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) as NSString + let lat:NSString = split[1].trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) as NSString let location = CLLocationCoordinate2D(latitude: lat.doubleValue, longitude: lon.doubleValue) guard let styleUrlString = placemark.css("styleUrl").first?.text else {continue} let styleUrl = styleUrlString.replacingOccurrences(of: "#", with: "") diff --git a/GPXTracker2/Podfile.lock b/GPXTracker2/Podfile.lock index bab9c35..21164d2 100644 --- a/GPXTracker2/Podfile.lock +++ b/GPXTracker2/Podfile.lock @@ -1,15 +1,15 @@ PODS: - - Kanna (2.0.0) - - PKHUD (4.0.0) + - Kanna (2.2.1) + - PKHUD (4.2.1) DEPENDENCIES: - Kanna - PKHUD (~> 4.0) SPEC CHECKSUMS: - Kanna: 9a6637f72f5c77fe9c045b1efb2a5bb074754af8 - PKHUD: 2bb45c936bb8afa39f3cd33ec14e8cc89f624255 + Kanna: 182789ab065e8f9a6ccc2a74ce6283d3401c0c4a + PKHUD: 957ce2a68b3c97a51839b30216120c1dbc0c3a78 PODFILE CHECKSUM: ccfb35d564849c3d1ed350b45ab5bc6b3ca1646e -COCOAPODS: 1.1.1 +COCOAPODS: 1.2.0