├── .gitignore ├── .swiftpm └── xcode │ └── package.xcworkspace │ └── contents.xcworkspacedata ├── Example ├── LMGeocoderSwift.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── LMGeocoderSwift-Example.xcscheme ├── LMGeocoderSwift.xcworkspace │ └── contents.xcworkspacedata ├── LMGeocoderSwift │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── background.imageset │ │ │ ├── Contents.json │ │ │ └── background.png │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── LMGeocoderSwift.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── LMGeocoderSwift │ │ ├── Info.plist │ │ ├── LMGeocoderSwift-Info.plist │ │ ├── LMGeocoderSwift-dummy.m │ │ ├── LMGeocoderSwift-prefix.pch │ │ ├── LMGeocoderSwift-umbrella.h │ │ ├── LMGeocoderSwift.modulemap │ │ └── LMGeocoderSwift.xcconfig │ │ ├── Pods-LMGeocoderSwift_Example │ │ ├── Info.plist │ │ ├── Pods-LMGeocoderSwift_Example-Info.plist │ │ ├── Pods-LMGeocoderSwift_Example-acknowledgements.markdown │ │ ├── Pods-LMGeocoderSwift_Example-acknowledgements.plist │ │ ├── Pods-LMGeocoderSwift_Example-dummy.m │ │ ├── Pods-LMGeocoderSwift_Example-frameworks.sh │ │ ├── Pods-LMGeocoderSwift_Example-resources.sh │ │ ├── Pods-LMGeocoderSwift_Example-umbrella.h │ │ ├── Pods-LMGeocoderSwift_Example.debug.xcconfig │ │ ├── Pods-LMGeocoderSwift_Example.modulemap │ │ └── Pods-LMGeocoderSwift_Example.release.xcconfig │ │ └── Pods-LMGeocoderSwift_Tests │ │ ├── Info.plist │ │ ├── Pods-LMGeocoderSwift_Tests-Info.plist │ │ ├── Pods-LMGeocoderSwift_Tests-acknowledgements.markdown │ │ ├── Pods-LMGeocoderSwift_Tests-acknowledgements.plist │ │ ├── Pods-LMGeocoderSwift_Tests-dummy.m │ │ ├── Pods-LMGeocoderSwift_Tests-frameworks.sh │ │ ├── Pods-LMGeocoderSwift_Tests-resources.sh │ │ ├── Pods-LMGeocoderSwift_Tests-umbrella.h │ │ ├── Pods-LMGeocoderSwift_Tests.debug.xcconfig │ │ ├── Pods-LMGeocoderSwift_Tests.modulemap │ │ └── Pods-LMGeocoderSwift_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── LMGeocoderSwift.podspec ├── LMGeocoderSwift ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── Address.swift │ ├── AsynchronousOperation.swift │ ├── Geocoder.swift │ └── GeocodingOperation.swift ├── Package.swift ├── README.md ├── Screenshots ├── screenshot.png └── screenshot@2x.png └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | # Package.resolved 41 | .build/ 42 | 43 | # CocoaPods 44 | # 45 | # We recommend against adding the Pods directory to your .gitignore. However 46 | # you should judge for yourself, the pros and cons are mentioned at: 47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 48 | # 49 | # Pods/ 50 | 51 | # Carthage 52 | # 53 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 54 | # Carthage/Checkouts 55 | 56 | Carthage/Build 57 | 58 | # fastlane 59 | # 60 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 61 | # screenshots whenever they are needed. 62 | # For more information about the recommended setup visit: 63 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 64 | 65 | fastlane/report.xml 66 | fastlane/Preview.html 67 | fastlane/screenshots/**/*.png 68 | fastlane/test_output 69 | -------------------------------------------------------------------------------- /.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 16 | 6A8E5926B1A5339C4B50DA2D /* Pods_LMGeocoderSwift_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FF5E4FAC2ADED906FD8800B7 /* Pods_LMGeocoderSwift_Example.framework */; }; 17 | BF450F42FA25E9A9183CF723 /* Pods_LMGeocoderSwift_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 814D6291BB32B4416A8908A5 /* Pods_LMGeocoderSwift_Tests.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = LMGeocoderSwift; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 37AA6C578E02CF00C47A5BC2 /* Pods-LMGeocoderSwift_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LMGeocoderSwift_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example.release.xcconfig"; sourceTree = ""; }; 32 | 37ECF9021C3EB42DE3B2C54A /* Pods-LMGeocoderSwift_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LMGeocoderSwift_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example.debug.xcconfig"; sourceTree = ""; }; 33 | 607FACD01AFB9204008FA782 /* LMGeocoderSwift_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LMGeocoderSwift_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 36 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 37 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 39 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 40 | 607FACE51AFB9204008FA782 /* LMGeocoderSwift_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LMGeocoderSwift_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 43 | 6BA031E0CC45899EBF8A99FF /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 44 | 814D6291BB32B4416A8908A5 /* Pods_LMGeocoderSwift_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LMGeocoderSwift_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 8BE42FCF86A1376BC26DF88C /* Pods-LMGeocoderSwift_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LMGeocoderSwift_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests.release.xcconfig"; sourceTree = ""; }; 46 | C4FBB13905085B11B0CADCA0 /* LMGeocoderSwift.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LMGeocoderSwift.podspec; path = ../LMGeocoderSwift.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 47 | C94D10FE456E1524797A77F7 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 48 | FDEF6191B41A86484250E43C /* Pods-LMGeocoderSwift_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LMGeocoderSwift_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests.debug.xcconfig"; sourceTree = ""; }; 49 | FF5E4FAC2ADED906FD8800B7 /* Pods_LMGeocoderSwift_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LMGeocoderSwift_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 6A8E5926B1A5339C4B50DA2D /* Pods_LMGeocoderSwift_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | BF450F42FA25E9A9183CF723 /* Pods_LMGeocoderSwift_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 43A27AD3BE4BA96E639EFDC6 /* Frameworks */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | FF5E4FAC2ADED906FD8800B7 /* Pods_LMGeocoderSwift_Example.framework */, 76 | 814D6291BB32B4416A8908A5 /* Pods_LMGeocoderSwift_Tests.framework */, 77 | ); 78 | name = Frameworks; 79 | sourceTree = ""; 80 | }; 81 | 607FACC71AFB9204008FA782 = { 82 | isa = PBXGroup; 83 | children = ( 84 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 85 | 607FACD21AFB9204008FA782 /* Example for LMGeocoderSwift */, 86 | 607FACE81AFB9204008FA782 /* Tests */, 87 | 607FACD11AFB9204008FA782 /* Products */, 88 | E1268F4906A3F6FDF524B7F4 /* Pods */, 89 | 43A27AD3BE4BA96E639EFDC6 /* Frameworks */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | 607FACD11AFB9204008FA782 /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD01AFB9204008FA782 /* LMGeocoderSwift_Example.app */, 97 | 607FACE51AFB9204008FA782 /* LMGeocoderSwift_Tests.xctest */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 607FACD21AFB9204008FA782 /* Example for LMGeocoderSwift */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 106 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 107 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 108 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 109 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 110 | 607FACD31AFB9204008FA782 /* Supporting Files */, 111 | ); 112 | name = "Example for LMGeocoderSwift"; 113 | path = LMGeocoderSwift; 114 | sourceTree = ""; 115 | }; 116 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 607FACD41AFB9204008FA782 /* Info.plist */, 120 | ); 121 | name = "Supporting Files"; 122 | sourceTree = ""; 123 | }; 124 | 607FACE81AFB9204008FA782 /* Tests */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 128 | 607FACE91AFB9204008FA782 /* Supporting Files */, 129 | ); 130 | path = Tests; 131 | sourceTree = ""; 132 | }; 133 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 607FACEA1AFB9204008FA782 /* Info.plist */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | C4FBB13905085B11B0CADCA0 /* LMGeocoderSwift.podspec */, 145 | 6BA031E0CC45899EBF8A99FF /* README.md */, 146 | C94D10FE456E1524797A77F7 /* LICENSE */, 147 | ); 148 | name = "Podspec Metadata"; 149 | sourceTree = ""; 150 | }; 151 | E1268F4906A3F6FDF524B7F4 /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 37ECF9021C3EB42DE3B2C54A /* Pods-LMGeocoderSwift_Example.debug.xcconfig */, 155 | 37AA6C578E02CF00C47A5BC2 /* Pods-LMGeocoderSwift_Example.release.xcconfig */, 156 | FDEF6191B41A86484250E43C /* Pods-LMGeocoderSwift_Tests.debug.xcconfig */, 157 | 8BE42FCF86A1376BC26DF88C /* Pods-LMGeocoderSwift_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* LMGeocoderSwift_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "LMGeocoderSwift_Example" */; 168 | buildPhases = ( 169 | 0B4F0E5BB9B5C335621684F3 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | B42A12EA44C9D94D90DC0AF9 /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = LMGeocoderSwift_Example; 180 | productName = LMGeocoderSwift; 181 | productReference = 607FACD01AFB9204008FA782 /* LMGeocoderSwift_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* LMGeocoderSwift_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "LMGeocoderSwift_Tests" */; 187 | buildPhases = ( 188 | 0C0D0C1E3D861E2D38CD3661 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = LMGeocoderSwift_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* LMGeocoderSwift_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 1020; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | DevelopmentTeam = 6HXC4UA9AV; 216 | LastSwiftMigration = 1020; 217 | }; 218 | 607FACE41AFB9204008FA782 = { 219 | CreatedOnToolsVersion = 6.3.1; 220 | DevelopmentTeam = 6HXC4UA9AV; 221 | LastSwiftMigration = 1020; 222 | TestTargetID = 607FACCF1AFB9204008FA782; 223 | }; 224 | }; 225 | }; 226 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "LMGeocoderSwift" */; 227 | compatibilityVersion = "Xcode 3.2"; 228 | developmentRegion = en; 229 | hasScannedForEncodings = 0; 230 | knownRegions = ( 231 | en, 232 | Base, 233 | ); 234 | mainGroup = 607FACC71AFB9204008FA782; 235 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 236 | projectDirPath = ""; 237 | projectRoot = ""; 238 | targets = ( 239 | 607FACCF1AFB9204008FA782 /* LMGeocoderSwift_Example */, 240 | 607FACE41AFB9204008FA782 /* LMGeocoderSwift_Tests */, 241 | ); 242 | }; 243 | /* End PBXProject section */ 244 | 245 | /* Begin PBXResourcesBuildPhase section */ 246 | 607FACCE1AFB9204008FA782 /* Resources */ = { 247 | isa = PBXResourcesBuildPhase; 248 | buildActionMask = 2147483647; 249 | files = ( 250 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 251 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 252 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | 607FACE31AFB9204008FA782 /* Resources */ = { 257 | isa = PBXResourcesBuildPhase; 258 | buildActionMask = 2147483647; 259 | files = ( 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | /* End PBXResourcesBuildPhase section */ 264 | 265 | /* Begin PBXShellScriptBuildPhase section */ 266 | 0B4F0E5BB9B5C335621684F3 /* [CP] Check Pods Manifest.lock */ = { 267 | isa = PBXShellScriptBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | ); 271 | inputFileListPaths = ( 272 | ); 273 | inputPaths = ( 274 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 275 | "${PODS_ROOT}/Manifest.lock", 276 | ); 277 | name = "[CP] Check Pods Manifest.lock"; 278 | outputFileListPaths = ( 279 | ); 280 | outputPaths = ( 281 | "$(DERIVED_FILE_DIR)/Pods-LMGeocoderSwift_Example-checkManifestLockResult.txt", 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | shellPath = /bin/sh; 285 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 286 | showEnvVarsInLog = 0; 287 | }; 288 | 0C0D0C1E3D861E2D38CD3661 /* [CP] Check Pods Manifest.lock */ = { 289 | isa = PBXShellScriptBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | ); 293 | inputFileListPaths = ( 294 | ); 295 | inputPaths = ( 296 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 297 | "${PODS_ROOT}/Manifest.lock", 298 | ); 299 | name = "[CP] Check Pods Manifest.lock"; 300 | outputFileListPaths = ( 301 | ); 302 | outputPaths = ( 303 | "$(DERIVED_FILE_DIR)/Pods-LMGeocoderSwift_Tests-checkManifestLockResult.txt", 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | shellPath = /bin/sh; 307 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 308 | showEnvVarsInLog = 0; 309 | }; 310 | B42A12EA44C9D94D90DC0AF9 /* [CP] Embed Pods Frameworks */ = { 311 | isa = PBXShellScriptBuildPhase; 312 | buildActionMask = 2147483647; 313 | files = ( 314 | ); 315 | inputPaths = ( 316 | "${PODS_ROOT}/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-frameworks.sh", 317 | "${BUILT_PRODUCTS_DIR}/LMGeocoderSwift/LMGeocoderSwift.framework", 318 | ); 319 | name = "[CP] Embed Pods Frameworks"; 320 | outputPaths = ( 321 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/LMGeocoderSwift.framework", 322 | ); 323 | runOnlyForDeploymentPostprocessing = 0; 324 | shellPath = /bin/sh; 325 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-frameworks.sh\"\n"; 326 | showEnvVarsInLog = 0; 327 | }; 328 | /* End PBXShellScriptBuildPhase section */ 329 | 330 | /* Begin PBXSourcesBuildPhase section */ 331 | 607FACCC1AFB9204008FA782 /* Sources */ = { 332 | isa = PBXSourcesBuildPhase; 333 | buildActionMask = 2147483647; 334 | files = ( 335 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 336 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 337 | ); 338 | runOnlyForDeploymentPostprocessing = 0; 339 | }; 340 | 607FACE11AFB9204008FA782 /* Sources */ = { 341 | isa = PBXSourcesBuildPhase; 342 | buildActionMask = 2147483647; 343 | files = ( 344 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 345 | ); 346 | runOnlyForDeploymentPostprocessing = 0; 347 | }; 348 | /* End PBXSourcesBuildPhase section */ 349 | 350 | /* Begin PBXTargetDependency section */ 351 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 352 | isa = PBXTargetDependency; 353 | target = 607FACCF1AFB9204008FA782 /* LMGeocoderSwift_Example */; 354 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 355 | }; 356 | /* End PBXTargetDependency section */ 357 | 358 | /* Begin PBXVariantGroup section */ 359 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 360 | isa = PBXVariantGroup; 361 | children = ( 362 | 607FACDA1AFB9204008FA782 /* Base */, 363 | ); 364 | name = Main.storyboard; 365 | sourceTree = ""; 366 | }; 367 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 368 | isa = PBXVariantGroup; 369 | children = ( 370 | 607FACDF1AFB9204008FA782 /* Base */, 371 | ); 372 | name = LaunchScreen.xib; 373 | sourceTree = ""; 374 | }; 375 | /* End PBXVariantGroup section */ 376 | 377 | /* Begin XCBuildConfiguration section */ 378 | 607FACED1AFB9204008FA782 /* Debug */ = { 379 | isa = XCBuildConfiguration; 380 | buildSettings = { 381 | ALWAYS_SEARCH_USER_PATHS = NO; 382 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 384 | CLANG_CXX_LIBRARY = "libc++"; 385 | CLANG_ENABLE_MODULES = YES; 386 | CLANG_ENABLE_OBJC_ARC = YES; 387 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 388 | CLANG_WARN_BOOL_CONVERSION = YES; 389 | CLANG_WARN_COMMA = YES; 390 | CLANG_WARN_CONSTANT_CONVERSION = YES; 391 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 392 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 393 | CLANG_WARN_EMPTY_BODY = YES; 394 | CLANG_WARN_ENUM_CONVERSION = YES; 395 | CLANG_WARN_INFINITE_RECURSION = YES; 396 | CLANG_WARN_INT_CONVERSION = YES; 397 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 398 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 399 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 400 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 401 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 402 | CLANG_WARN_STRICT_PROTOTYPES = YES; 403 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 404 | CLANG_WARN_UNREACHABLE_CODE = YES; 405 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 406 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 407 | COPY_PHASE_STRIP = NO; 408 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 409 | ENABLE_STRICT_OBJC_MSGSEND = YES; 410 | ENABLE_TESTABILITY = YES; 411 | GCC_C_LANGUAGE_STANDARD = gnu99; 412 | GCC_DYNAMIC_NO_PIC = NO; 413 | GCC_NO_COMMON_BLOCKS = YES; 414 | GCC_OPTIMIZATION_LEVEL = 0; 415 | GCC_PREPROCESSOR_DEFINITIONS = ( 416 | "DEBUG=1", 417 | "$(inherited)", 418 | ); 419 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 422 | GCC_WARN_UNDECLARED_SELECTOR = YES; 423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 424 | GCC_WARN_UNUSED_FUNCTION = YES; 425 | GCC_WARN_UNUSED_VARIABLE = YES; 426 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 427 | MTL_ENABLE_DEBUG_INFO = YES; 428 | ONLY_ACTIVE_ARCH = YES; 429 | SDKROOT = iphoneos; 430 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 431 | SWIFT_VERSION = 4.2; 432 | }; 433 | name = Debug; 434 | }; 435 | 607FACEE1AFB9204008FA782 /* Release */ = { 436 | isa = XCBuildConfiguration; 437 | buildSettings = { 438 | ALWAYS_SEARCH_USER_PATHS = NO; 439 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 440 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 441 | CLANG_CXX_LIBRARY = "libc++"; 442 | CLANG_ENABLE_MODULES = YES; 443 | CLANG_ENABLE_OBJC_ARC = YES; 444 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 445 | CLANG_WARN_BOOL_CONVERSION = YES; 446 | CLANG_WARN_COMMA = YES; 447 | CLANG_WARN_CONSTANT_CONVERSION = YES; 448 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 449 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 450 | CLANG_WARN_EMPTY_BODY = YES; 451 | CLANG_WARN_ENUM_CONVERSION = YES; 452 | CLANG_WARN_INFINITE_RECURSION = YES; 453 | CLANG_WARN_INT_CONVERSION = YES; 454 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 455 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 456 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 457 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 458 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 459 | CLANG_WARN_STRICT_PROTOTYPES = YES; 460 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 461 | CLANG_WARN_UNREACHABLE_CODE = YES; 462 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 463 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 464 | COPY_PHASE_STRIP = NO; 465 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 466 | ENABLE_NS_ASSERTIONS = NO; 467 | ENABLE_STRICT_OBJC_MSGSEND = YES; 468 | GCC_C_LANGUAGE_STANDARD = gnu99; 469 | GCC_NO_COMMON_BLOCKS = YES; 470 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 471 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 472 | GCC_WARN_UNDECLARED_SELECTOR = YES; 473 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 474 | GCC_WARN_UNUSED_FUNCTION = YES; 475 | GCC_WARN_UNUSED_VARIABLE = YES; 476 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 477 | MTL_ENABLE_DEBUG_INFO = NO; 478 | SDKROOT = iphoneos; 479 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 480 | SWIFT_VERSION = 4.2; 481 | VALIDATE_PRODUCT = YES; 482 | }; 483 | name = Release; 484 | }; 485 | 607FACF01AFB9204008FA782 /* Debug */ = { 486 | isa = XCBuildConfiguration; 487 | baseConfigurationReference = 37ECF9021C3EB42DE3B2C54A /* Pods-LMGeocoderSwift_Example.debug.xcconfig */; 488 | buildSettings = { 489 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 490 | CODE_SIGN_ENTITLEMENTS = LMGeocoderSwift_Example.entitlements; 491 | DEVELOPMENT_TEAM = 6HXC4UA9AV; 492 | INFOPLIST_FILE = LMGeocoderSwift/Info.plist; 493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 494 | MARKETING_VERSION = 1.0.2; 495 | MODULE_NAME = ExampleApp; 496 | PRODUCT_BUNDLE_IDENTIFIER = com.lminhtm.LMGeocoderSwift.demo; 497 | PRODUCT_NAME = LMGeocoderSwift_Example; 498 | SUPPORTS_MACCATALYST = NO; 499 | SWIFT_VERSION = 5.0; 500 | TARGETED_DEVICE_FAMILY = "1,2"; 501 | }; 502 | name = Debug; 503 | }; 504 | 607FACF11AFB9204008FA782 /* Release */ = { 505 | isa = XCBuildConfiguration; 506 | baseConfigurationReference = 37AA6C578E02CF00C47A5BC2 /* Pods-LMGeocoderSwift_Example.release.xcconfig */; 507 | buildSettings = { 508 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 509 | CODE_SIGN_ENTITLEMENTS = LMGeocoderSwift_Example.entitlements; 510 | DEVELOPMENT_TEAM = 6HXC4UA9AV; 511 | INFOPLIST_FILE = LMGeocoderSwift/Info.plist; 512 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 513 | MARKETING_VERSION = 1.0.2; 514 | MODULE_NAME = ExampleApp; 515 | PRODUCT_BUNDLE_IDENTIFIER = com.lminhtm.LMGeocoderSwift.demo; 516 | PRODUCT_NAME = LMGeocoderSwift_Example; 517 | SUPPORTS_MACCATALYST = NO; 518 | SWIFT_VERSION = 5.0; 519 | TARGETED_DEVICE_FAMILY = "1,2"; 520 | }; 521 | name = Release; 522 | }; 523 | 607FACF31AFB9204008FA782 /* Debug */ = { 524 | isa = XCBuildConfiguration; 525 | baseConfigurationReference = FDEF6191B41A86484250E43C /* Pods-LMGeocoderSwift_Tests.debug.xcconfig */; 526 | buildSettings = { 527 | DEVELOPMENT_TEAM = 6HXC4UA9AV; 528 | FRAMEWORK_SEARCH_PATHS = ( 529 | "$(SDKROOT)/Developer/Library/Frameworks", 530 | "$(inherited)", 531 | ); 532 | GCC_PREPROCESSOR_DEFINITIONS = ( 533 | "DEBUG=1", 534 | "$(inherited)", 535 | ); 536 | INFOPLIST_FILE = Tests/Info.plist; 537 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 538 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 539 | PRODUCT_NAME = "$(TARGET_NAME)"; 540 | SWIFT_VERSION = 5.0; 541 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LMGeocoderSwift_Example.app/LMGeocoderSwift_Example"; 542 | }; 543 | name = Debug; 544 | }; 545 | 607FACF41AFB9204008FA782 /* Release */ = { 546 | isa = XCBuildConfiguration; 547 | baseConfigurationReference = 8BE42FCF86A1376BC26DF88C /* Pods-LMGeocoderSwift_Tests.release.xcconfig */; 548 | buildSettings = { 549 | DEVELOPMENT_TEAM = 6HXC4UA9AV; 550 | FRAMEWORK_SEARCH_PATHS = ( 551 | "$(SDKROOT)/Developer/Library/Frameworks", 552 | "$(inherited)", 553 | ); 554 | INFOPLIST_FILE = Tests/Info.plist; 555 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 556 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 557 | PRODUCT_NAME = "$(TARGET_NAME)"; 558 | SWIFT_VERSION = 5.0; 559 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LMGeocoderSwift_Example.app/LMGeocoderSwift_Example"; 560 | }; 561 | name = Release; 562 | }; 563 | /* End XCBuildConfiguration section */ 564 | 565 | /* Begin XCConfigurationList section */ 566 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "LMGeocoderSwift" */ = { 567 | isa = XCConfigurationList; 568 | buildConfigurations = ( 569 | 607FACED1AFB9204008FA782 /* Debug */, 570 | 607FACEE1AFB9204008FA782 /* Release */, 571 | ); 572 | defaultConfigurationIsVisible = 0; 573 | defaultConfigurationName = Release; 574 | }; 575 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "LMGeocoderSwift_Example" */ = { 576 | isa = XCConfigurationList; 577 | buildConfigurations = ( 578 | 607FACF01AFB9204008FA782 /* Debug */, 579 | 607FACF11AFB9204008FA782 /* Release */, 580 | ); 581 | defaultConfigurationIsVisible = 0; 582 | defaultConfigurationName = Release; 583 | }; 584 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "LMGeocoderSwift_Tests" */ = { 585 | isa = XCConfigurationList; 586 | buildConfigurations = ( 587 | 607FACF31AFB9204008FA782 /* Debug */, 588 | 607FACF41AFB9204008FA782 /* Release */, 589 | ); 590 | defaultConfigurationIsVisible = 0; 591 | defaultConfigurationName = Release; 592 | }; 593 | /* End XCConfigurationList section */ 594 | }; 595 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 596 | } 597 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift.xcodeproj/xcshareddata/xcschemes/LMGeocoderSwift-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 51 | 52 | 53 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 76 | 78 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // LMGeocoderSwift 4 | // 5 | // Created by LMinh on 03/02/2019. 6 | // Copyright (c) 2019 LMinh. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | internal func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 50 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 79 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 121 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/LMGeocoderSwift/Images.xcassets/background.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "background.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/LMGeocoderSwift/Images.xcassets/background.imageset/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lminhtm/LMGeocoderSwift/f11daf0a676c860c0d4e2b30c58dac36f8d1fe93/Example/LMGeocoderSwift/Images.xcassets/background.imageset/background.png -------------------------------------------------------------------------------- /Example/LMGeocoderSwift/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(MARKETING_VERSION) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSCameraUsageDescription 26 | Testing 27 | NSLocationWhenInUseUsageDescription 28 | Testing 29 | UILaunchStoryboardName 30 | LaunchScreen 31 | UIMainStoryboardFile 32 | Main 33 | UIRequiredDeviceCapabilities 34 | 35 | armv7 36 | 37 | UISupportedInterfaceOrientations 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationLandscapeLeft 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Example/LMGeocoderSwift/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // LMGeocoderSwift 4 | // 5 | // Created by LMinh on 03/02/2019. 6 | // Copyright (c) 2019 LMinh. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreLocation 11 | import AVFoundation 12 | import LMGeocoderSwift 13 | 14 | class ViewController: UIViewController, CLLocationManagerDelegate { 15 | 16 | let locationManager = CLLocationManager() 17 | 18 | @IBOutlet weak var backgroundImageView: UIImageView! 19 | @IBOutlet weak var latitudeView: UIView! 20 | @IBOutlet weak var longitudeView: UIView! 21 | @IBOutlet weak var addressView: UIView! 22 | @IBOutlet weak var latitudeLabel: UILabel! 23 | @IBOutlet weak var longitudeLabel: UILabel! 24 | @IBOutlet weak var addressLabel: UILabel! 25 | 26 | // MARK: VIEW LIFECYCLE 27 | 28 | override func viewDidLoad() { 29 | 30 | super.viewDidLoad() 31 | 32 | // You can set your google API key here 33 | Geocoder.shared.googleAPIKey = "YOUR_API_KEY" 34 | 35 | // Start getting current location 36 | self.locationManager.delegate = self 37 | self.locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation 38 | self.locationManager.distanceFilter = 20 39 | self.locationManager.requestWhenInUseAuthorization() 40 | self.locationManager.startUpdatingLocation() 41 | 42 | // Configure UI 43 | self.configureUI() 44 | } 45 | 46 | func configureUI() { 47 | 48 | UIApplication.shared.statusBarStyle = UIStatusBarStyle.lightContent 49 | 50 | // Black background 51 | self.latitudeView.layer.cornerRadius = 5 52 | self.longitudeView.layer.cornerRadius = 5 53 | self.addressView.layer.cornerRadius = 5 54 | self.latitudeView.backgroundColor = UIColor.black.withAlphaComponent(0.4) 55 | self.longitudeView.backgroundColor = UIColor.black.withAlphaComponent(0.4) 56 | self.addressView.backgroundColor = UIColor.black.withAlphaComponent(0.4) 57 | 58 | // Show camera on real device for nice effect 59 | let hasCamera = AVCaptureDevice.devices().count > 0 60 | if hasCamera { 61 | let session = AVCaptureSession(); 62 | session.sessionPreset = AVCaptureSession.Preset.high; 63 | 64 | let captureVideoPreviewLayer = AVCaptureVideoPreviewLayer(session: session) 65 | captureVideoPreviewLayer.videoGravity = AVLayerVideoGravity.resizeAspectFill; 66 | captureVideoPreviewLayer.frame = self.backgroundImageView.bounds; 67 | self.backgroundImageView.layer.addSublayer(captureVideoPreviewLayer) 68 | 69 | let device = AVCaptureDevice.default(for: AVMediaType.video); 70 | do { 71 | let input = try AVCaptureDeviceInput.init(device: device!) 72 | session.addInput(input) 73 | session.startRunning() 74 | } 75 | catch { 76 | } 77 | } 78 | else { 79 | self.backgroundImageView.image = UIImage(named: "background") 80 | } 81 | } 82 | 83 | // MARK: LOCATION MANAGER DELEGATE 84 | 85 | func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { 86 | 87 | guard let coordinate = locations.last?.coordinate else { return } 88 | 89 | // Update UI 90 | self.latitudeLabel.text = String(format: "%f", coordinate.latitude) 91 | self.longitudeLabel.text = String(format: "%f", coordinate.longitude) 92 | 93 | // Start to reverse geocode 94 | print("Start to reverse geocode with \(coordinate.latitude), \(coordinate.longitude)") 95 | Geocoder.shared.cancelGeocode() 96 | Geocoder.shared.reverseGeocodeCoordinate(coordinate, service: .apple, alternativeService: .google) { (results, error) in 97 | 98 | // Update UI 99 | if let address = results?.first, error == nil { 100 | print("Reverse geocode result for \(coordinate.latitude), \(coordinate.longitude): \n\(address.formattedAddress ?? "-")\n"); 101 | DispatchQueue.main.async { 102 | self.addressLabel.text = address.formattedAddress ?? "-" 103 | } 104 | } 105 | } 106 | } 107 | } 108 | 109 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '8.0' 4 | 5 | target 'LMGeocoderSwift_Example' do 6 | pod 'LMGeocoderSwift', :path => '../' 7 | 8 | target 'LMGeocoderSwift_Tests' do 9 | inherit! :search_paths 10 | 11 | 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LMGeocoderSwift (1.0.2) 3 | 4 | DEPENDENCIES: 5 | - LMGeocoderSwift (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LMGeocoderSwift: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | LMGeocoderSwift: 8baba3fafc7cf1bc1c3a22b95bf19a0ba855d290 13 | 14 | PODFILE CHECKSUM: 67e3acd3793c4f7610c821fbbcda71bcf6a20b14 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/LMGeocoderSwift.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "LMGeocoderSwift", 3 | "version": "1.0.2", 4 | "summary": "Simple wrapper for geocoding and reverse geocoding, using both Google Geocoding API and Apple iOS Geocoding Framework.", 5 | "description": "Simple wrapper for geocoding and reverse geocoding, written in Swift, using both Google Geocoding API and Apple iOS Geocoding Framework.", 6 | "homepage": "https://github.com/lminhtm/LMGeocoderSwift", 7 | "screenshots": "https://raw.github.com/lminhtm/LMGeocoderSwift/master/Screenshots/screenshot.png", 8 | "license": { 9 | "type": "MIT", 10 | "file": "LICENSE" 11 | }, 12 | "authors": { 13 | "LMinh": "lminhtm@gmail.com" 14 | }, 15 | "source": { 16 | "git": "https://github.com/lminhtm/LMGeocoderSwift.git", 17 | "tag": "1.0.2" 18 | }, 19 | "platforms": { 20 | "ios": "8.0" 21 | }, 22 | "swift_versions": "5.0", 23 | "source_files": "LMGeocoderSwift/Classes/**/*", 24 | "frameworks": [ 25 | "UIKit", 26 | "CoreLocation", 27 | "Contacts" 28 | ], 29 | "swift_version": "5.0" 30 | } 31 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LMGeocoderSwift (1.0.2) 3 | 4 | DEPENDENCIES: 5 | - LMGeocoderSwift (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LMGeocoderSwift: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | LMGeocoderSwift: 8baba3fafc7cf1bc1c3a22b95bf19a0ba855d290 13 | 14 | PODFILE CHECKSUM: 67e3acd3793c4f7610c821fbbcda71bcf6a20b14 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 153C7CD5BD056136E136AD80D8AE6A68 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06FD3F155988F9C611E72BF0C6A05739 /* CoreLocation.framework */; }; 11 | 30C61CADDE454E2E80388311CC7B7AC2 /* Pods-LMGeocoderSwift_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 550FD21EB767984977BFA7ACC86E813C /* Pods-LMGeocoderSwift_Tests-dummy.m */; }; 12 | 59C7FB28DE1DDEE7FCD09AE895E6B137 /* Pods-LMGeocoderSwift_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 45CC589B37E53B1C03A071CC5EC9BAA9 /* Pods-LMGeocoderSwift_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 5B620F229FA51874AB39066844BB16B0 /* Pods-LMGeocoderSwift_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 385997828162CCD5E145283C1DB665B2 /* Pods-LMGeocoderSwift_Example-dummy.m */; }; 14 | 69DF63975D230401E96C191F266912E5 /* LMGeocoderSwift-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 607C0673861AD2CC482A03484A972899 /* LMGeocoderSwift-dummy.m */; }; 15 | 6A5EEC646BA4A99059E300A7CCCF112A /* GeocodingOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = E181BB651F7839CA63DA29CD335311F0 /* GeocodingOperation.swift */; }; 16 | 7BF0FD133D07A01939E51E9CF4161733 /* AsynchronousOperation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D6911EC7744DA6AEFCD66943DCF9DB1 /* AsynchronousOperation.swift */; }; 17 | 7E9676E63EE86679542CC706BD2975A5 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AAD15D784615C15C297EBA39B67EE098 /* UIKit.framework */; }; 18 | 8EA7166F48690E1A4E248826F7F6219D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04DD8F7EE308A58275AA8BE6F6BDD1D9 /* Foundation.framework */; }; 19 | A55A8D282919DDC2B988762DE63C2C48 /* LMGeocoderSwift-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = AE38A6BC557948D54CAEB1FC5E857B47 /* LMGeocoderSwift-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | B06942A9F4CDB745C20FBB2A866530C2 /* Address.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01138881F50FFCD625739CFE796770CF /* Address.swift */; }; 21 | B9112144E75B93FE8123F38CF3A3722D /* Geocoder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31757979CA8C8FC4A1C3652B746AFBF7 /* Geocoder.swift */; }; 22 | C5586399FB410E8094D55DBFC15E0023 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04DD8F7EE308A58275AA8BE6F6BDD1D9 /* Foundation.framework */; }; 23 | ECD4C889D47B980EA5752406F27624B4 /* Pods-LMGeocoderSwift_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 466F5DDA14D40765C302407B8A649508 /* Pods-LMGeocoderSwift_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 24 | F7AE3740F23DE13A035029DA719A48BB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04DD8F7EE308A58275AA8BE6F6BDD1D9 /* Foundation.framework */; }; 25 | F975D4A4BCB0D2983FCC122A60322B38 /* Contacts.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8CB53E7B0341660E8482AF4E9A4408B1 /* Contacts.framework */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 30A417F29A547990676AE60B275AAA3E /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 9B8CA487B8BEF0BEF7722BB4F8F38D53; 34 | remoteInfo = LMGeocoderSwift; 35 | }; 36 | 3BA5C77A06832EC5923C8A1492860AAA /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 586F1062B649407EACCC418E4ECB4688; 41 | remoteInfo = "Pods-LMGeocoderSwift_Example"; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 01138881F50FFCD625739CFE796770CF /* Address.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Address.swift; path = LMGeocoderSwift/Classes/Address.swift; sourceTree = ""; }; 47 | 04DD8F7EE308A58275AA8BE6F6BDD1D9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 48 | 06FD3F155988F9C611E72BF0C6A05739 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/CoreLocation.framework; sourceTree = DEVELOPER_DIR; }; 49 | 15EF76F62E0AF455404248715ED44236 /* Pods-LMGeocoderSwift_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-LMGeocoderSwift_Example-acknowledgements.plist"; sourceTree = ""; }; 50 | 224E28B077D4A28608486EF6EC0689B5 /* Pods-LMGeocoderSwift_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-LMGeocoderSwift_Tests.release.xcconfig"; sourceTree = ""; }; 51 | 290F64F6E7BC7207576CB0F3797D4054 /* Pods-LMGeocoderSwift_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-LMGeocoderSwift_Example.debug.xcconfig"; sourceTree = ""; }; 52 | 31757979CA8C8FC4A1C3652B746AFBF7 /* Geocoder.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Geocoder.swift; path = LMGeocoderSwift/Classes/Geocoder.swift; sourceTree = ""; }; 53 | 355FCA046F0806B664726E51D615A393 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 54 | 36AA3BF9C0E0F569F949817E64A6A5D2 /* Pods-LMGeocoderSwift_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-LMGeocoderSwift_Example-acknowledgements.markdown"; sourceTree = ""; }; 55 | 385997828162CCD5E145283C1DB665B2 /* Pods-LMGeocoderSwift_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-LMGeocoderSwift_Example-dummy.m"; sourceTree = ""; }; 56 | 45CC589B37E53B1C03A071CC5EC9BAA9 /* Pods-LMGeocoderSwift_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-LMGeocoderSwift_Tests-umbrella.h"; sourceTree = ""; }; 57 | 466F5DDA14D40765C302407B8A649508 /* Pods-LMGeocoderSwift_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-LMGeocoderSwift_Example-umbrella.h"; sourceTree = ""; }; 58 | 4C052BBDCC460EA95381E2FCD18737FA /* Pods-LMGeocoderSwift_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-LMGeocoderSwift_Example.release.xcconfig"; sourceTree = ""; }; 59 | 4D6911EC7744DA6AEFCD66943DCF9DB1 /* AsynchronousOperation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AsynchronousOperation.swift; path = LMGeocoderSwift/Classes/AsynchronousOperation.swift; sourceTree = ""; }; 60 | 5039558C1B474E873A7F820026692357 /* Pods-LMGeocoderSwift_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-LMGeocoderSwift_Example-frameworks.sh"; sourceTree = ""; }; 61 | 50F15699431DD364576249EEE4A6306C /* LMGeocoderSwift.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = LMGeocoderSwift.xcconfig; sourceTree = ""; }; 62 | 550FD21EB767984977BFA7ACC86E813C /* Pods-LMGeocoderSwift_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-LMGeocoderSwift_Tests-dummy.m"; sourceTree = ""; }; 63 | 59133F33D3A39C900D0240EBFAD26D3F /* Pods-LMGeocoderSwift_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-LMGeocoderSwift_Tests-acknowledgements.markdown"; sourceTree = ""; }; 64 | 5C97DC9E1EF7A89BE2A2392EF6B52F1C /* Pods-LMGeocoderSwift_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-LMGeocoderSwift_Tests.debug.xcconfig"; sourceTree = ""; }; 65 | 607C0673861AD2CC482A03484A972899 /* LMGeocoderSwift-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "LMGeocoderSwift-dummy.m"; sourceTree = ""; }; 66 | 647EA31EE9ED315BA8A57EDC6AC54C4A /* LMGeocoderSwift-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "LMGeocoderSwift-Info.plist"; sourceTree = ""; }; 67 | 65F342E835928CA2D0B36443750B3713 /* LMGeocoderSwift-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "LMGeocoderSwift-prefix.pch"; sourceTree = ""; }; 68 | 68AB138041B75D560D191932B2DBFCBC /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 69 | 71B1AB8D3BF8AB242D5D191251657C30 /* Pods-LMGeocoderSwift_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-LMGeocoderSwift_Tests-Info.plist"; sourceTree = ""; }; 70 | 7E44F3EE48A6F6497D813F67E69B48B2 /* Pods-LMGeocoderSwift_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-LMGeocoderSwift_Tests.modulemap"; sourceTree = ""; }; 71 | 8CB53E7B0341660E8482AF4E9A4408B1 /* Contacts.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Contacts.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Contacts.framework; sourceTree = DEVELOPER_DIR; }; 72 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 73 | A9793D0D9ECC8954AF14A723E006448E /* Pods_LMGeocoderSwift_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LMGeocoderSwift_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | AAD15D784615C15C297EBA39B67EE098 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 75 | AE38A6BC557948D54CAEB1FC5E857B47 /* LMGeocoderSwift-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "LMGeocoderSwift-umbrella.h"; sourceTree = ""; }; 76 | C06BF56B5E1C681A4AB07511C4CA9774 /* Pods-LMGeocoderSwift_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-LMGeocoderSwift_Example.modulemap"; sourceTree = ""; }; 77 | C299C0265829944457C3D0C6DA779851 /* LMGeocoderSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = LMGeocoderSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 78 | D4F20581348EDFFCCCFB2AF7C0C9E18C /* LMGeocoderSwift.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = LMGeocoderSwift.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 79 | E15DFA09E1A9A987C1003B99EB46733C /* Pods_LMGeocoderSwift_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LMGeocoderSwift_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 80 | E181BB651F7839CA63DA29CD335311F0 /* GeocodingOperation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = GeocodingOperation.swift; path = LMGeocoderSwift/Classes/GeocodingOperation.swift; sourceTree = ""; }; 81 | E2CE9970842D5DD8AE6B2D7B21595BCF /* Pods-LMGeocoderSwift_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-LMGeocoderSwift_Example-Info.plist"; sourceTree = ""; }; 82 | F1359FFA345ECD19CE8FD34E1A244ADD /* Pods-LMGeocoderSwift_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-LMGeocoderSwift_Tests-acknowledgements.plist"; sourceTree = ""; }; 83 | F88C3F84E0DEE4EB1297AB820EF2317B /* LMGeocoderSwift.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = LMGeocoderSwift.modulemap; sourceTree = ""; }; 84 | /* End PBXFileReference section */ 85 | 86 | /* Begin PBXFrameworksBuildPhase section */ 87 | 00AE7576FFACBD5035E33BA6AF0915E6 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | F975D4A4BCB0D2983FCC122A60322B38 /* Contacts.framework in Frameworks */, 92 | 153C7CD5BD056136E136AD80D8AE6A68 /* CoreLocation.framework in Frameworks */, 93 | F7AE3740F23DE13A035029DA719A48BB /* Foundation.framework in Frameworks */, 94 | 7E9676E63EE86679542CC706BD2975A5 /* UIKit.framework in Frameworks */, 95 | ); 96 | runOnlyForDeploymentPostprocessing = 0; 97 | }; 98 | 093409D7FD0C23670E23E9E273A2D840 /* Frameworks */ = { 99 | isa = PBXFrameworksBuildPhase; 100 | buildActionMask = 2147483647; 101 | files = ( 102 | 8EA7166F48690E1A4E248826F7F6219D /* Foundation.framework in Frameworks */, 103 | ); 104 | runOnlyForDeploymentPostprocessing = 0; 105 | }; 106 | C558EC039A0FB91211E014F5DD80CC10 /* Frameworks */ = { 107 | isa = PBXFrameworksBuildPhase; 108 | buildActionMask = 2147483647; 109 | files = ( 110 | C5586399FB410E8094D55DBFC15E0023 /* Foundation.framework in Frameworks */, 111 | ); 112 | runOnlyForDeploymentPostprocessing = 0; 113 | }; 114 | /* End PBXFrameworksBuildPhase section */ 115 | 116 | /* Begin PBXGroup section */ 117 | 03F60D6E5201C5C5F8714DCA2B5A63F3 /* Pods-LMGeocoderSwift_Example */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | C06BF56B5E1C681A4AB07511C4CA9774 /* Pods-LMGeocoderSwift_Example.modulemap */, 121 | 36AA3BF9C0E0F569F949817E64A6A5D2 /* Pods-LMGeocoderSwift_Example-acknowledgements.markdown */, 122 | 15EF76F62E0AF455404248715ED44236 /* Pods-LMGeocoderSwift_Example-acknowledgements.plist */, 123 | 385997828162CCD5E145283C1DB665B2 /* Pods-LMGeocoderSwift_Example-dummy.m */, 124 | 5039558C1B474E873A7F820026692357 /* Pods-LMGeocoderSwift_Example-frameworks.sh */, 125 | E2CE9970842D5DD8AE6B2D7B21595BCF /* Pods-LMGeocoderSwift_Example-Info.plist */, 126 | 466F5DDA14D40765C302407B8A649508 /* Pods-LMGeocoderSwift_Example-umbrella.h */, 127 | 290F64F6E7BC7207576CB0F3797D4054 /* Pods-LMGeocoderSwift_Example.debug.xcconfig */, 128 | 4C052BBDCC460EA95381E2FCD18737FA /* Pods-LMGeocoderSwift_Example.release.xcconfig */, 129 | ); 130 | name = "Pods-LMGeocoderSwift_Example"; 131 | path = "Target Support Files/Pods-LMGeocoderSwift_Example"; 132 | sourceTree = ""; 133 | }; 134 | 0E4B6096B5C8D001021D6872D597BBC9 /* Development Pods */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | BF43911FE82DC17875906B7EA7909172 /* LMGeocoderSwift */, 138 | ); 139 | name = "Development Pods"; 140 | sourceTree = ""; 141 | }; 142 | 15EE4049AE23BA4950A0BC823E771B05 /* Targets Support Files */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 03F60D6E5201C5C5F8714DCA2B5A63F3 /* Pods-LMGeocoderSwift_Example */, 146 | 7AC84965A79FE3B545095D37763B3558 /* Pods-LMGeocoderSwift_Tests */, 147 | ); 148 | name = "Targets Support Files"; 149 | sourceTree = ""; 150 | }; 151 | 7AC84965A79FE3B545095D37763B3558 /* Pods-LMGeocoderSwift_Tests */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 7E44F3EE48A6F6497D813F67E69B48B2 /* Pods-LMGeocoderSwift_Tests.modulemap */, 155 | 59133F33D3A39C900D0240EBFAD26D3F /* Pods-LMGeocoderSwift_Tests-acknowledgements.markdown */, 156 | F1359FFA345ECD19CE8FD34E1A244ADD /* Pods-LMGeocoderSwift_Tests-acknowledgements.plist */, 157 | 550FD21EB767984977BFA7ACC86E813C /* Pods-LMGeocoderSwift_Tests-dummy.m */, 158 | 71B1AB8D3BF8AB242D5D191251657C30 /* Pods-LMGeocoderSwift_Tests-Info.plist */, 159 | 45CC589B37E53B1C03A071CC5EC9BAA9 /* Pods-LMGeocoderSwift_Tests-umbrella.h */, 160 | 5C97DC9E1EF7A89BE2A2392EF6B52F1C /* Pods-LMGeocoderSwift_Tests.debug.xcconfig */, 161 | 224E28B077D4A28608486EF6EC0689B5 /* Pods-LMGeocoderSwift_Tests.release.xcconfig */, 162 | ); 163 | name = "Pods-LMGeocoderSwift_Tests"; 164 | path = "Target Support Files/Pods-LMGeocoderSwift_Tests"; 165 | sourceTree = ""; 166 | }; 167 | 83B3766111E20013F2675895697C7106 /* Support Files */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | F88C3F84E0DEE4EB1297AB820EF2317B /* LMGeocoderSwift.modulemap */, 171 | 50F15699431DD364576249EEE4A6306C /* LMGeocoderSwift.xcconfig */, 172 | 607C0673861AD2CC482A03484A972899 /* LMGeocoderSwift-dummy.m */, 173 | 647EA31EE9ED315BA8A57EDC6AC54C4A /* LMGeocoderSwift-Info.plist */, 174 | 65F342E835928CA2D0B36443750B3713 /* LMGeocoderSwift-prefix.pch */, 175 | AE38A6BC557948D54CAEB1FC5E857B47 /* LMGeocoderSwift-umbrella.h */, 176 | ); 177 | name = "Support Files"; 178 | path = "Example/Pods/Target Support Files/LMGeocoderSwift"; 179 | sourceTree = ""; 180 | }; 181 | 9C43ECCCE89FC5D17241286161191128 /* Pod */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 68AB138041B75D560D191932B2DBFCBC /* LICENSE */, 185 | D4F20581348EDFFCCCFB2AF7C0C9E18C /* LMGeocoderSwift.podspec */, 186 | 355FCA046F0806B664726E51D615A393 /* README.md */, 187 | ); 188 | name = Pod; 189 | sourceTree = ""; 190 | }; 191 | BA4F31F07263C99FC76E66D632A59F09 /* Frameworks */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | D3AFD7F6752AF00AD7AA9B4319FA87A0 /* iOS */, 195 | ); 196 | name = Frameworks; 197 | sourceTree = ""; 198 | }; 199 | BF43911FE82DC17875906B7EA7909172 /* LMGeocoderSwift */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | 01138881F50FFCD625739CFE796770CF /* Address.swift */, 203 | 31757979CA8C8FC4A1C3652B746AFBF7 /* Geocoder.swift */, 204 | 4D6911EC7744DA6AEFCD66943DCF9DB1 /* AsynchronousOperation.swift */, 205 | E181BB651F7839CA63DA29CD335311F0 /* GeocodingOperation.swift */, 206 | 9C43ECCCE89FC5D17241286161191128 /* Pod */, 207 | 83B3766111E20013F2675895697C7106 /* Support Files */, 208 | ); 209 | name = LMGeocoderSwift; 210 | path = ../..; 211 | sourceTree = ""; 212 | }; 213 | CF1408CF629C7361332E53B88F7BD30C = { 214 | isa = PBXGroup; 215 | children = ( 216 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 217 | 0E4B6096B5C8D001021D6872D597BBC9 /* Development Pods */, 218 | BA4F31F07263C99FC76E66D632A59F09 /* Frameworks */, 219 | F15D1CA5AADEE82F63BA89A7EC3EB784 /* Products */, 220 | 15EE4049AE23BA4950A0BC823E771B05 /* Targets Support Files */, 221 | ); 222 | sourceTree = ""; 223 | }; 224 | D3AFD7F6752AF00AD7AA9B4319FA87A0 /* iOS */ = { 225 | isa = PBXGroup; 226 | children = ( 227 | 8CB53E7B0341660E8482AF4E9A4408B1 /* Contacts.framework */, 228 | 06FD3F155988F9C611E72BF0C6A05739 /* CoreLocation.framework */, 229 | 04DD8F7EE308A58275AA8BE6F6BDD1D9 /* Foundation.framework */, 230 | AAD15D784615C15C297EBA39B67EE098 /* UIKit.framework */, 231 | ); 232 | name = iOS; 233 | sourceTree = ""; 234 | }; 235 | F15D1CA5AADEE82F63BA89A7EC3EB784 /* Products */ = { 236 | isa = PBXGroup; 237 | children = ( 238 | C299C0265829944457C3D0C6DA779851 /* LMGeocoderSwift.framework */, 239 | E15DFA09E1A9A987C1003B99EB46733C /* Pods_LMGeocoderSwift_Example.framework */, 240 | A9793D0D9ECC8954AF14A723E006448E /* Pods_LMGeocoderSwift_Tests.framework */, 241 | ); 242 | name = Products; 243 | sourceTree = ""; 244 | }; 245 | /* End PBXGroup section */ 246 | 247 | /* Begin PBXHeadersBuildPhase section */ 248 | 676C708386983CCE0796F3423B0908FF /* Headers */ = { 249 | isa = PBXHeadersBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | 59C7FB28DE1DDEE7FCD09AE895E6B137 /* Pods-LMGeocoderSwift_Tests-umbrella.h in Headers */, 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | 88A88A3AE35EC93E2529D394A4F141F5 /* Headers */ = { 257 | isa = PBXHeadersBuildPhase; 258 | buildActionMask = 2147483647; 259 | files = ( 260 | ECD4C889D47B980EA5752406F27624B4 /* Pods-LMGeocoderSwift_Example-umbrella.h in Headers */, 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | AB31584312404C1229CCC1087C23ED0B /* Headers */ = { 265 | isa = PBXHeadersBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | A55A8D282919DDC2B988762DE63C2C48 /* LMGeocoderSwift-umbrella.h in Headers */, 269 | ); 270 | runOnlyForDeploymentPostprocessing = 0; 271 | }; 272 | /* End PBXHeadersBuildPhase section */ 273 | 274 | /* Begin PBXNativeTarget section */ 275 | 308F7612E62510C4852E5331A537772A /* Pods-LMGeocoderSwift_Tests */ = { 276 | isa = PBXNativeTarget; 277 | buildConfigurationList = D50D7E49070003BFD3B6EC0BA2602684 /* Build configuration list for PBXNativeTarget "Pods-LMGeocoderSwift_Tests" */; 278 | buildPhases = ( 279 | 676C708386983CCE0796F3423B0908FF /* Headers */, 280 | 2801D9E8F34C99EFDED8674C1ADD9D29 /* Sources */, 281 | 093409D7FD0C23670E23E9E273A2D840 /* Frameworks */, 282 | 989E7A7DDBC910B14AD66F1C3894F4CF /* Resources */, 283 | ); 284 | buildRules = ( 285 | ); 286 | dependencies = ( 287 | 9BD5C7F8D9B732EB71E3E17A9BD2AECE /* PBXTargetDependency */, 288 | ); 289 | name = "Pods-LMGeocoderSwift_Tests"; 290 | productName = "Pods-LMGeocoderSwift_Tests"; 291 | productReference = A9793D0D9ECC8954AF14A723E006448E /* Pods_LMGeocoderSwift_Tests.framework */; 292 | productType = "com.apple.product-type.framework"; 293 | }; 294 | 586F1062B649407EACCC418E4ECB4688 /* Pods-LMGeocoderSwift_Example */ = { 295 | isa = PBXNativeTarget; 296 | buildConfigurationList = 55B43B27518E157F30F2E823D3947821 /* Build configuration list for PBXNativeTarget "Pods-LMGeocoderSwift_Example" */; 297 | buildPhases = ( 298 | 88A88A3AE35EC93E2529D394A4F141F5 /* Headers */, 299 | 5BB1D50A97DC15EC18E88A48C2B83E0B /* Sources */, 300 | C558EC039A0FB91211E014F5DD80CC10 /* Frameworks */, 301 | 585EB0F7EC36969C9923D734F70B04E2 /* Resources */, 302 | ); 303 | buildRules = ( 304 | ); 305 | dependencies = ( 306 | 775A18EC00D24460675557774DC093A6 /* PBXTargetDependency */, 307 | ); 308 | name = "Pods-LMGeocoderSwift_Example"; 309 | productName = "Pods-LMGeocoderSwift_Example"; 310 | productReference = E15DFA09E1A9A987C1003B99EB46733C /* Pods_LMGeocoderSwift_Example.framework */; 311 | productType = "com.apple.product-type.framework"; 312 | }; 313 | 9B8CA487B8BEF0BEF7722BB4F8F38D53 /* LMGeocoderSwift */ = { 314 | isa = PBXNativeTarget; 315 | buildConfigurationList = 2799F40999CB328DAAF235E638828C58 /* Build configuration list for PBXNativeTarget "LMGeocoderSwift" */; 316 | buildPhases = ( 317 | AB31584312404C1229CCC1087C23ED0B /* Headers */, 318 | 3C90C0C254CA5FC54BB94F8769C9E313 /* Sources */, 319 | 00AE7576FFACBD5035E33BA6AF0915E6 /* Frameworks */, 320 | 4A0841F7FB585AF2A6C0465423966435 /* Resources */, 321 | ); 322 | buildRules = ( 323 | ); 324 | dependencies = ( 325 | ); 326 | name = LMGeocoderSwift; 327 | productName = LMGeocoderSwift; 328 | productReference = C299C0265829944457C3D0C6DA779851 /* LMGeocoderSwift.framework */; 329 | productType = "com.apple.product-type.framework"; 330 | }; 331 | /* End PBXNativeTarget section */ 332 | 333 | /* Begin PBXProject section */ 334 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 335 | isa = PBXProject; 336 | attributes = { 337 | LastSwiftUpdateCheck = 1100; 338 | LastUpgradeCheck = 1100; 339 | }; 340 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 341 | compatibilityVersion = "Xcode 3.2"; 342 | developmentRegion = en; 343 | hasScannedForEncodings = 0; 344 | knownRegions = ( 345 | en, 346 | ); 347 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 348 | productRefGroup = F15D1CA5AADEE82F63BA89A7EC3EB784 /* Products */; 349 | projectDirPath = ""; 350 | projectRoot = ""; 351 | targets = ( 352 | 9B8CA487B8BEF0BEF7722BB4F8F38D53 /* LMGeocoderSwift */, 353 | 586F1062B649407EACCC418E4ECB4688 /* Pods-LMGeocoderSwift_Example */, 354 | 308F7612E62510C4852E5331A537772A /* Pods-LMGeocoderSwift_Tests */, 355 | ); 356 | }; 357 | /* End PBXProject section */ 358 | 359 | /* Begin PBXResourcesBuildPhase section */ 360 | 4A0841F7FB585AF2A6C0465423966435 /* Resources */ = { 361 | isa = PBXResourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | 585EB0F7EC36969C9923D734F70B04E2 /* Resources */ = { 368 | isa = PBXResourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | }; 374 | 989E7A7DDBC910B14AD66F1C3894F4CF /* Resources */ = { 375 | isa = PBXResourcesBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | ); 379 | runOnlyForDeploymentPostprocessing = 0; 380 | }; 381 | /* End PBXResourcesBuildPhase section */ 382 | 383 | /* Begin PBXSourcesBuildPhase section */ 384 | 2801D9E8F34C99EFDED8674C1ADD9D29 /* Sources */ = { 385 | isa = PBXSourcesBuildPhase; 386 | buildActionMask = 2147483647; 387 | files = ( 388 | 30C61CADDE454E2E80388311CC7B7AC2 /* Pods-LMGeocoderSwift_Tests-dummy.m in Sources */, 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | 3C90C0C254CA5FC54BB94F8769C9E313 /* Sources */ = { 393 | isa = PBXSourcesBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | B06942A9F4CDB745C20FBB2A866530C2 /* Address.swift in Sources */, 397 | 7BF0FD133D07A01939E51E9CF4161733 /* AsynchronousOperation.swift in Sources */, 398 | B9112144E75B93FE8123F38CF3A3722D /* Geocoder.swift in Sources */, 399 | 6A5EEC646BA4A99059E300A7CCCF112A /* GeocodingOperation.swift in Sources */, 400 | 69DF63975D230401E96C191F266912E5 /* LMGeocoderSwift-dummy.m in Sources */, 401 | ); 402 | runOnlyForDeploymentPostprocessing = 0; 403 | }; 404 | 5BB1D50A97DC15EC18E88A48C2B83E0B /* Sources */ = { 405 | isa = PBXSourcesBuildPhase; 406 | buildActionMask = 2147483647; 407 | files = ( 408 | 5B620F229FA51874AB39066844BB16B0 /* Pods-LMGeocoderSwift_Example-dummy.m in Sources */, 409 | ); 410 | runOnlyForDeploymentPostprocessing = 0; 411 | }; 412 | /* End PBXSourcesBuildPhase section */ 413 | 414 | /* Begin PBXTargetDependency section */ 415 | 775A18EC00D24460675557774DC093A6 /* PBXTargetDependency */ = { 416 | isa = PBXTargetDependency; 417 | name = LMGeocoderSwift; 418 | target = 9B8CA487B8BEF0BEF7722BB4F8F38D53 /* LMGeocoderSwift */; 419 | targetProxy = 30A417F29A547990676AE60B275AAA3E /* PBXContainerItemProxy */; 420 | }; 421 | 9BD5C7F8D9B732EB71E3E17A9BD2AECE /* PBXTargetDependency */ = { 422 | isa = PBXTargetDependency; 423 | name = "Pods-LMGeocoderSwift_Example"; 424 | target = 586F1062B649407EACCC418E4ECB4688 /* Pods-LMGeocoderSwift_Example */; 425 | targetProxy = 3BA5C77A06832EC5923C8A1492860AAA /* PBXContainerItemProxy */; 426 | }; 427 | /* End PBXTargetDependency section */ 428 | 429 | /* Begin XCBuildConfiguration section */ 430 | 08A537C090E0591DBA11744930B5F2ED /* Release */ = { 431 | isa = XCBuildConfiguration; 432 | baseConfigurationReference = 50F15699431DD364576249EEE4A6306C /* LMGeocoderSwift.xcconfig */; 433 | buildSettings = { 434 | CODE_SIGN_IDENTITY = ""; 435 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 436 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 437 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 438 | CURRENT_PROJECT_VERSION = 1; 439 | DEFINES_MODULE = YES; 440 | DYLIB_COMPATIBILITY_VERSION = 1; 441 | DYLIB_CURRENT_VERSION = 1; 442 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 443 | GCC_PREFIX_HEADER = "Target Support Files/LMGeocoderSwift/LMGeocoderSwift-prefix.pch"; 444 | INFOPLIST_FILE = "Target Support Files/LMGeocoderSwift/LMGeocoderSwift-Info.plist"; 445 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 446 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 447 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 448 | MODULEMAP_FILE = "Target Support Files/LMGeocoderSwift/LMGeocoderSwift.modulemap"; 449 | PRODUCT_MODULE_NAME = LMGeocoderSwift; 450 | PRODUCT_NAME = LMGeocoderSwift; 451 | SDKROOT = iphoneos; 452 | SKIP_INSTALL = YES; 453 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 454 | SWIFT_VERSION = 5.0; 455 | TARGETED_DEVICE_FAMILY = "1,2"; 456 | VALIDATE_PRODUCT = YES; 457 | VERSIONING_SYSTEM = "apple-generic"; 458 | VERSION_INFO_PREFIX = ""; 459 | }; 460 | name = Release; 461 | }; 462 | 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */ = { 463 | isa = XCBuildConfiguration; 464 | buildSettings = { 465 | ALWAYS_SEARCH_USER_PATHS = NO; 466 | CLANG_ANALYZER_NONNULL = YES; 467 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 468 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 469 | CLANG_CXX_LIBRARY = "libc++"; 470 | CLANG_ENABLE_MODULES = YES; 471 | CLANG_ENABLE_OBJC_ARC = YES; 472 | CLANG_ENABLE_OBJC_WEAK = YES; 473 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 474 | CLANG_WARN_BOOL_CONVERSION = YES; 475 | CLANG_WARN_COMMA = YES; 476 | CLANG_WARN_CONSTANT_CONVERSION = YES; 477 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 478 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 479 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 480 | CLANG_WARN_EMPTY_BODY = YES; 481 | CLANG_WARN_ENUM_CONVERSION = YES; 482 | CLANG_WARN_INFINITE_RECURSION = YES; 483 | CLANG_WARN_INT_CONVERSION = YES; 484 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 485 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 486 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 487 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 488 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 489 | CLANG_WARN_STRICT_PROTOTYPES = YES; 490 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 491 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 492 | CLANG_WARN_UNREACHABLE_CODE = YES; 493 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 494 | COPY_PHASE_STRIP = NO; 495 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 496 | ENABLE_NS_ASSERTIONS = NO; 497 | ENABLE_STRICT_OBJC_MSGSEND = YES; 498 | GCC_C_LANGUAGE_STANDARD = gnu11; 499 | GCC_NO_COMMON_BLOCKS = YES; 500 | GCC_PREPROCESSOR_DEFINITIONS = ( 501 | "POD_CONFIGURATION_RELEASE=1", 502 | "$(inherited)", 503 | ); 504 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 505 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 506 | GCC_WARN_UNDECLARED_SELECTOR = YES; 507 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 508 | GCC_WARN_UNUSED_FUNCTION = YES; 509 | GCC_WARN_UNUSED_VARIABLE = YES; 510 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 511 | MTL_ENABLE_DEBUG_INFO = NO; 512 | MTL_FAST_MATH = YES; 513 | PRODUCT_NAME = "$(TARGET_NAME)"; 514 | STRIP_INSTALLED_PRODUCT = NO; 515 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 516 | SWIFT_VERSION = 5.0; 517 | SYMROOT = "${SRCROOT}/../build"; 518 | }; 519 | name = Release; 520 | }; 521 | 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */ = { 522 | isa = XCBuildConfiguration; 523 | buildSettings = { 524 | ALWAYS_SEARCH_USER_PATHS = NO; 525 | CLANG_ANALYZER_NONNULL = YES; 526 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 527 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 528 | CLANG_CXX_LIBRARY = "libc++"; 529 | CLANG_ENABLE_MODULES = YES; 530 | CLANG_ENABLE_OBJC_ARC = YES; 531 | CLANG_ENABLE_OBJC_WEAK = YES; 532 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 533 | CLANG_WARN_BOOL_CONVERSION = YES; 534 | CLANG_WARN_COMMA = YES; 535 | CLANG_WARN_CONSTANT_CONVERSION = YES; 536 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 537 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 538 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 539 | CLANG_WARN_EMPTY_BODY = YES; 540 | CLANG_WARN_ENUM_CONVERSION = YES; 541 | CLANG_WARN_INFINITE_RECURSION = YES; 542 | CLANG_WARN_INT_CONVERSION = YES; 543 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 544 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 545 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 546 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 547 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 548 | CLANG_WARN_STRICT_PROTOTYPES = YES; 549 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 550 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 551 | CLANG_WARN_UNREACHABLE_CODE = YES; 552 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 553 | COPY_PHASE_STRIP = NO; 554 | DEBUG_INFORMATION_FORMAT = dwarf; 555 | ENABLE_STRICT_OBJC_MSGSEND = YES; 556 | ENABLE_TESTABILITY = YES; 557 | GCC_C_LANGUAGE_STANDARD = gnu11; 558 | GCC_DYNAMIC_NO_PIC = NO; 559 | GCC_NO_COMMON_BLOCKS = YES; 560 | GCC_OPTIMIZATION_LEVEL = 0; 561 | GCC_PREPROCESSOR_DEFINITIONS = ( 562 | "POD_CONFIGURATION_DEBUG=1", 563 | "DEBUG=1", 564 | "$(inherited)", 565 | ); 566 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 567 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 568 | GCC_WARN_UNDECLARED_SELECTOR = YES; 569 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 570 | GCC_WARN_UNUSED_FUNCTION = YES; 571 | GCC_WARN_UNUSED_VARIABLE = YES; 572 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 573 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 574 | MTL_FAST_MATH = YES; 575 | ONLY_ACTIVE_ARCH = YES; 576 | PRODUCT_NAME = "$(TARGET_NAME)"; 577 | STRIP_INSTALLED_PRODUCT = NO; 578 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 579 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 580 | SWIFT_VERSION = 5.0; 581 | SYMROOT = "${SRCROOT}/../build"; 582 | }; 583 | name = Debug; 584 | }; 585 | 83231158D50BB203D4AD5FECB3E49293 /* Debug */ = { 586 | isa = XCBuildConfiguration; 587 | baseConfigurationReference = 50F15699431DD364576249EEE4A6306C /* LMGeocoderSwift.xcconfig */; 588 | buildSettings = { 589 | CODE_SIGN_IDENTITY = ""; 590 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 591 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 592 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 593 | CURRENT_PROJECT_VERSION = 1; 594 | DEFINES_MODULE = YES; 595 | DYLIB_COMPATIBILITY_VERSION = 1; 596 | DYLIB_CURRENT_VERSION = 1; 597 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 598 | GCC_PREFIX_HEADER = "Target Support Files/LMGeocoderSwift/LMGeocoderSwift-prefix.pch"; 599 | INFOPLIST_FILE = "Target Support Files/LMGeocoderSwift/LMGeocoderSwift-Info.plist"; 600 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 601 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 602 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 603 | MODULEMAP_FILE = "Target Support Files/LMGeocoderSwift/LMGeocoderSwift.modulemap"; 604 | PRODUCT_MODULE_NAME = LMGeocoderSwift; 605 | PRODUCT_NAME = LMGeocoderSwift; 606 | SDKROOT = iphoneos; 607 | SKIP_INSTALL = YES; 608 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 609 | SWIFT_VERSION = 5.0; 610 | TARGETED_DEVICE_FAMILY = "1,2"; 611 | VERSIONING_SYSTEM = "apple-generic"; 612 | VERSION_INFO_PREFIX = ""; 613 | }; 614 | name = Debug; 615 | }; 616 | B05CE8C563A05538CC46912737F430B8 /* Release */ = { 617 | isa = XCBuildConfiguration; 618 | baseConfigurationReference = 4C052BBDCC460EA95381E2FCD18737FA /* Pods-LMGeocoderSwift_Example.release.xcconfig */; 619 | buildSettings = { 620 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 621 | CODE_SIGN_IDENTITY = ""; 622 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 623 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 624 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 625 | CURRENT_PROJECT_VERSION = 1; 626 | DEFINES_MODULE = YES; 627 | DYLIB_COMPATIBILITY_VERSION = 1; 628 | DYLIB_CURRENT_VERSION = 1; 629 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 630 | INFOPLIST_FILE = "Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-Info.plist"; 631 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 632 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 633 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 634 | MACH_O_TYPE = staticlib; 635 | MODULEMAP_FILE = "Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example.modulemap"; 636 | OTHER_LDFLAGS = ""; 637 | OTHER_LIBTOOLFLAGS = ""; 638 | PODS_ROOT = "$(SRCROOT)"; 639 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 640 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 641 | SDKROOT = iphoneos; 642 | SKIP_INSTALL = YES; 643 | TARGETED_DEVICE_FAMILY = "1,2"; 644 | VALIDATE_PRODUCT = YES; 645 | VERSIONING_SYSTEM = "apple-generic"; 646 | VERSION_INFO_PREFIX = ""; 647 | }; 648 | name = Release; 649 | }; 650 | BDEC3768E7223E68D7BCD2980FD0EC25 /* Debug */ = { 651 | isa = XCBuildConfiguration; 652 | baseConfigurationReference = 290F64F6E7BC7207576CB0F3797D4054 /* Pods-LMGeocoderSwift_Example.debug.xcconfig */; 653 | buildSettings = { 654 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 655 | CODE_SIGN_IDENTITY = ""; 656 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 657 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 658 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 659 | CURRENT_PROJECT_VERSION = 1; 660 | DEFINES_MODULE = YES; 661 | DYLIB_COMPATIBILITY_VERSION = 1; 662 | DYLIB_CURRENT_VERSION = 1; 663 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 664 | INFOPLIST_FILE = "Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-Info.plist"; 665 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 666 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 667 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 668 | MACH_O_TYPE = staticlib; 669 | MODULEMAP_FILE = "Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example.modulemap"; 670 | OTHER_LDFLAGS = ""; 671 | OTHER_LIBTOOLFLAGS = ""; 672 | PODS_ROOT = "$(SRCROOT)"; 673 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 674 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 675 | SDKROOT = iphoneos; 676 | SKIP_INSTALL = YES; 677 | TARGETED_DEVICE_FAMILY = "1,2"; 678 | VERSIONING_SYSTEM = "apple-generic"; 679 | VERSION_INFO_PREFIX = ""; 680 | }; 681 | name = Debug; 682 | }; 683 | D70AE5759E1B3600E3C85F9EEDA5F0DC /* Debug */ = { 684 | isa = XCBuildConfiguration; 685 | baseConfigurationReference = 5C97DC9E1EF7A89BE2A2392EF6B52F1C /* Pods-LMGeocoderSwift_Tests.debug.xcconfig */; 686 | buildSettings = { 687 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 688 | CODE_SIGN_IDENTITY = ""; 689 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 690 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 691 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 692 | CURRENT_PROJECT_VERSION = 1; 693 | DEFINES_MODULE = YES; 694 | DYLIB_COMPATIBILITY_VERSION = 1; 695 | DYLIB_CURRENT_VERSION = 1; 696 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 697 | INFOPLIST_FILE = "Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests-Info.plist"; 698 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 699 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 700 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 701 | MACH_O_TYPE = staticlib; 702 | MODULEMAP_FILE = "Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests.modulemap"; 703 | OTHER_LDFLAGS = ""; 704 | OTHER_LIBTOOLFLAGS = ""; 705 | PODS_ROOT = "$(SRCROOT)"; 706 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 707 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 708 | SDKROOT = iphoneos; 709 | SKIP_INSTALL = YES; 710 | TARGETED_DEVICE_FAMILY = "1,2"; 711 | VERSIONING_SYSTEM = "apple-generic"; 712 | VERSION_INFO_PREFIX = ""; 713 | }; 714 | name = Debug; 715 | }; 716 | FE090B420C20D4998C1638FC5A532FA1 /* Release */ = { 717 | isa = XCBuildConfiguration; 718 | baseConfigurationReference = 224E28B077D4A28608486EF6EC0689B5 /* Pods-LMGeocoderSwift_Tests.release.xcconfig */; 719 | buildSettings = { 720 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 721 | CODE_SIGN_IDENTITY = ""; 722 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 723 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 724 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 725 | CURRENT_PROJECT_VERSION = 1; 726 | DEFINES_MODULE = YES; 727 | DYLIB_COMPATIBILITY_VERSION = 1; 728 | DYLIB_CURRENT_VERSION = 1; 729 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 730 | INFOPLIST_FILE = "Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests-Info.plist"; 731 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 732 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 733 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 734 | MACH_O_TYPE = staticlib; 735 | MODULEMAP_FILE = "Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests.modulemap"; 736 | OTHER_LDFLAGS = ""; 737 | OTHER_LIBTOOLFLAGS = ""; 738 | PODS_ROOT = "$(SRCROOT)"; 739 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 740 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 741 | SDKROOT = iphoneos; 742 | SKIP_INSTALL = YES; 743 | TARGETED_DEVICE_FAMILY = "1,2"; 744 | VALIDATE_PRODUCT = YES; 745 | VERSIONING_SYSTEM = "apple-generic"; 746 | VERSION_INFO_PREFIX = ""; 747 | }; 748 | name = Release; 749 | }; 750 | /* End XCBuildConfiguration section */ 751 | 752 | /* Begin XCConfigurationList section */ 753 | 2799F40999CB328DAAF235E638828C58 /* Build configuration list for PBXNativeTarget "LMGeocoderSwift" */ = { 754 | isa = XCConfigurationList; 755 | buildConfigurations = ( 756 | 83231158D50BB203D4AD5FECB3E49293 /* Debug */, 757 | 08A537C090E0591DBA11744930B5F2ED /* Release */, 758 | ); 759 | defaultConfigurationIsVisible = 0; 760 | defaultConfigurationName = Release; 761 | }; 762 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 763 | isa = XCConfigurationList; 764 | buildConfigurations = ( 765 | 7EF7227D9B20A1D549000096ACCB23D7 /* Debug */, 766 | 4BE66A09A74FD25164AAB3C2645B9B93 /* Release */, 767 | ); 768 | defaultConfigurationIsVisible = 0; 769 | defaultConfigurationName = Release; 770 | }; 771 | 55B43B27518E157F30F2E823D3947821 /* Build configuration list for PBXNativeTarget "Pods-LMGeocoderSwift_Example" */ = { 772 | isa = XCConfigurationList; 773 | buildConfigurations = ( 774 | BDEC3768E7223E68D7BCD2980FD0EC25 /* Debug */, 775 | B05CE8C563A05538CC46912737F430B8 /* Release */, 776 | ); 777 | defaultConfigurationIsVisible = 0; 778 | defaultConfigurationName = Release; 779 | }; 780 | D50D7E49070003BFD3B6EC0BA2602684 /* Build configuration list for PBXNativeTarget "Pods-LMGeocoderSwift_Tests" */ = { 781 | isa = XCConfigurationList; 782 | buildConfigurations = ( 783 | D70AE5759E1B3600E3C85F9EEDA5F0DC /* Debug */, 784 | FE090B420C20D4998C1638FC5A532FA1 /* Release */, 785 | ); 786 | defaultConfigurationIsVisible = 0; 787 | defaultConfigurationName = Release; 788 | }; 789 | /* End XCConfigurationList section */ 790 | }; 791 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 792 | } 793 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LMGeocoderSwift/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LMGeocoderSwift/LMGeocoderSwift-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.2 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LMGeocoderSwift/LMGeocoderSwift-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_LMGeocoderSwift : NSObject 3 | @end 4 | @implementation PodsDummy_LMGeocoderSwift 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LMGeocoderSwift/LMGeocoderSwift-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LMGeocoderSwift/LMGeocoderSwift-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double LMGeocoderSwiftVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char LMGeocoderSwiftVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LMGeocoderSwift/LMGeocoderSwift.modulemap: -------------------------------------------------------------------------------- 1 | framework module LMGeocoderSwift { 2 | umbrella header "LMGeocoderSwift-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LMGeocoderSwift/LMGeocoderSwift.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/LMGeocoderSwift 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = $(inherited) -framework "Contacts" -framework "CoreLocation" -framework "UIKit" 4 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## LMGeocoderSwift 5 | 6 | Copyright (c) 2019 LMinh 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 LMinh <lminhtm@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | LMGeocoderSwift 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_LMGeocoderSwift_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_LMGeocoderSwift_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/LMGeocoderSwift/LMGeocoderSwift.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/LMGeocoderSwift/LMGeocoderSwift.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_LMGeocoderSwift_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_LMGeocoderSwift_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/LMGeocoderSwift" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/LMGeocoderSwift/LMGeocoderSwift.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "Contacts" -framework "CoreLocation" -framework "LMGeocoderSwift" -framework "UIKit" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_LMGeocoderSwift_Example { 2 | umbrella header "Pods-LMGeocoderSwift_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Example/Pods-LMGeocoderSwift_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/LMGeocoderSwift" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/LMGeocoderSwift/LMGeocoderSwift.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "Contacts" -framework "CoreLocation" -framework "LMGeocoderSwift" -framework "UIKit" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_LMGeocoderSwift_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_LMGeocoderSwift_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 145 | wait 146 | fi 147 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_LMGeocoderSwift_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_LMGeocoderSwift_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/LMGeocoderSwift" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/LMGeocoderSwift/LMGeocoderSwift.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "Contacts" -framework "CoreLocation" -framework "LMGeocoderSwift" -framework "UIKit" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_LMGeocoderSwift_Tests { 2 | umbrella header "Pods-LMGeocoderSwift_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LMGeocoderSwift_Tests/Pods-LMGeocoderSwift_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/LMGeocoderSwift" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/LMGeocoderSwift/LMGeocoderSwift.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "Contacts" -framework "CoreLocation" -framework "LMGeocoderSwift" -framework "UIKit" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 10 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import LMGeocoderSwift 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 LMinh 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /LMGeocoderSwift.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint LMGeocoderSwift.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'LMGeocoderSwift' 11 | s.version = '1.0.2' 12 | s.summary = 'Simple wrapper for geocoding and reverse geocoding, using both Google Geocoding API and Apple iOS Geocoding Framework.' 13 | s.description = <<-DESC 14 | Simple wrapper for geocoding and reverse geocoding, written in Swift, using both Google Geocoding API and Apple iOS Geocoding Framework. 15 | DESC 16 | 17 | s.homepage = 'https://github.com/lminhtm/LMGeocoderSwift' 18 | s.screenshots = 'https://raw.github.com/lminhtm/LMGeocoderSwift/master/Screenshots/screenshot.png' 19 | s.license = { :type => 'MIT', :file => 'LICENSE' } 20 | s.author = { 'LMinh' => 'lminhtm@gmail.com' } 21 | s.source = { :git => 'https://github.com/lminhtm/LMGeocoderSwift.git', :tag => s.version.to_s } 22 | 23 | s.ios.deployment_target = '8.0' 24 | s.swift_version = '5.0' 25 | 26 | s.source_files = 'LMGeocoderSwift/Classes/**/*' 27 | s.frameworks = 'UIKit', 'CoreLocation', 'Contacts' 28 | end 29 | -------------------------------------------------------------------------------- /LMGeocoderSwift/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lminhtm/LMGeocoderSwift/f11daf0a676c860c0d4e2b30c58dac36f8d1fe93/LMGeocoderSwift/Assets/.gitkeep -------------------------------------------------------------------------------- /LMGeocoderSwift/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lminhtm/LMGeocoderSwift/f11daf0a676c860c0d4e2b30c58dac36f8d1fe93/LMGeocoderSwift/Classes/.gitkeep -------------------------------------------------------------------------------- /LMGeocoderSwift/Classes/Address.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Address.swift 3 | // LMGeocoderSwift 4 | // 5 | // Created by LMinh on 12/18/18. 6 | // Copyright © 2018 LMinh. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import CoreLocation 11 | import Contacts 12 | 13 | /// A result from a reverse geocode request, containing a human-readable address. 14 | /// Some of the fields may be nil, indicating they are not present. 15 | public struct Address { 16 | 17 | // MARK: - PROPERTIES 18 | 19 | /// The location coordinate. 20 | public var coordinate: CLLocationCoordinate2D? 21 | 22 | /// The precise street address. 23 | public var streetNumber: String? 24 | 25 | /// The named route. 26 | public var route: String? 27 | 28 | /// The incorporated city or town political entity. 29 | public var locality: String? 30 | 31 | /// The first-order civil entity below a localit. 32 | public var subLocality: String? 33 | 34 | /// The civil entity below the country level. 35 | public var administrativeArea: String? 36 | 37 | /// The additional administrative area information. 38 | public var subAdministrativeArea: String? 39 | 40 | /// The neighborhood information. 41 | public var neighborhood: String? 42 | 43 | /// The Postal/Zip code. 44 | public var postalCode: String? 45 | 46 | /// The country name. 47 | public var country: String? 48 | 49 | /// The ISO country code. 50 | public var isoCountryCode: String? 51 | 52 | /// The formatted address. 53 | public var formattedAddress: String? 54 | 55 | /// An array of NSString containing formatted lines of the address. 56 | public var lines: [String]? 57 | 58 | /// The raw source object. 59 | public var rawSource: Any? 60 | 61 | // MARK: - INIT 62 | 63 | /// Custom initialization with response from server. 64 | /// 65 | /// - Parameters: 66 | /// - locationData: Response object recieved from server 67 | /// - serviceType: Pass here kLMGeocoderGoogleService or kLMGeocoderAppleService 68 | init?(locationData: Any, serviceType: GeocoderService) { 69 | switch serviceType { 70 | case .apple: 71 | guard let placemark = locationData as? CLPlacemark else { return nil } 72 | parseAppleResponse(placemark) 73 | case .google: 74 | guard let locationDict = locationData as? [String: Any] else { return nil } 75 | parseGoogleResponse(locationDict) 76 | case .here: 77 | guard let locationDict = locationData as? [String: Any] else { return nil } 78 | parseHereResponse(locationDict) 79 | default: 80 | return nil 81 | } 82 | } 83 | 84 | // MARK: SUPPORT 85 | 86 | private mutating func parseAppleResponse(_ placemark: CLPlacemark) { 87 | coordinate = placemark.location?.coordinate 88 | streetNumber = placemark.thoroughfare 89 | locality = placemark.locality 90 | subLocality = placemark.subLocality 91 | administrativeArea = placemark.administrativeArea 92 | subAdministrativeArea = placemark.subAdministrativeArea 93 | postalCode = placemark.postalCode 94 | country = placemark.country 95 | isoCountryCode = placemark.isoCountryCode 96 | if #available(iOS 11.0, *) { 97 | if let postalAddress = placemark.postalAddress { 98 | formattedAddress = CNPostalAddressFormatter.string(from: postalAddress, style: .mailingAddress) 99 | } 100 | } 101 | rawSource = placemark 102 | } 103 | 104 | private mutating func parseGoogleResponse(_ locationDict: [String: Any]) { 105 | let addressComponents = locationDict["address_components"] 106 | let address = locationDict["formatted_address"] as? String 107 | 108 | var lat = 0.0 109 | var lng = 0.0 110 | if let geometry = locationDict["geometry"] as? [String: Any] { 111 | if let location = geometry["location"] as? [String: Any] { 112 | if let latitude = location["lat"] as? Double { 113 | lat = Double(latitude) 114 | } 115 | if let longitute = location["lng"] as? Double { 116 | lng = Double(longitute) 117 | } 118 | } 119 | } 120 | 121 | coordinate = CLLocationCoordinate2DMake(lat, lng) 122 | streetNumber = getComponent("street_number", inArray: addressComponents, ofType: "long_name") 123 | route = getComponent("route", inArray: addressComponents, ofType: "long_name") 124 | locality = getComponent("locality", inArray: addressComponents, ofType: "long_name") 125 | subLocality = getComponent("sublocality", inArray: addressComponents, ofType: "long_name") 126 | administrativeArea = getComponent("administrative_area_level_1", inArray: addressComponents, ofType: "long_name") 127 | subAdministrativeArea = getComponent("administrative_area_level_2", inArray: addressComponents, ofType: "long_name") 128 | neighborhood = getComponent("neighborhood", inArray: addressComponents, ofType: "long_name") 129 | postalCode = getComponent("postal_code", inArray: addressComponents, ofType: "short_name") 130 | country = getComponent("country", inArray: addressComponents, ofType: "long_name") 131 | isoCountryCode = getComponent("country", inArray: addressComponents, ofType: "short_name") 132 | formattedAddress = address 133 | lines = formattedAddress?.components(separatedBy: ", ") 134 | rawSource = locationDict 135 | } 136 | 137 | private mutating func parseHereResponse(_ locationDict: [String: Any]) { 138 | guard 139 | let location = locationDict["Location"] as? [String: Any], 140 | let addressDict = location["Address"] as? [String: Any] 141 | else { 142 | return 143 | } 144 | 145 | var lat = 0.0 146 | var lng = 0.0 147 | if let displayPosition = location["DisplayPosition"] as? [String: Any] { 148 | if let latitude = displayPosition["Latitude"] as? Double { 149 | lat = Double(latitude) 150 | } 151 | if let longitute = displayPosition["Longitude"] as? Double { 152 | lng = Double(longitute) 153 | } 154 | } 155 | 156 | coordinate = CLLocationCoordinate2DMake(lat, lng) 157 | streetNumber = addressDict["HouseNumber"] as? String 158 | route = addressDict["Street"] as? String 159 | locality = addressDict["Subdistrict"] as? String 160 | administrativeArea = addressDict["City"] as? String 161 | subAdministrativeArea = addressDict["District"] as? String 162 | country = addressDict["Country"] as? String 163 | formattedAddress = addressDict["Label"] as? String 164 | rawSource = locationDict 165 | } 166 | 167 | private func getComponent(_ component: String, inArray array: Any?, ofType type: String) -> String? { 168 | 169 | guard let array = array as? NSArray else { return nil } 170 | 171 | let index = array.indexOfObject { (obj, idx, stop) -> Bool in 172 | return false 173 | } 174 | 175 | if index == NSNotFound || index >= array.count { 176 | return nil 177 | } 178 | 179 | if let dict = array[index] as? [String: Any] { 180 | return dict[type] as? String 181 | } 182 | return nil; 183 | } 184 | } 185 | 186 | extension Address: Codable { 187 | 188 | enum CodingKeys: String, CodingKey { 189 | case latitude 190 | case longitude 191 | case streetNumber = "street_number" 192 | case route 193 | case locality 194 | case subLocality = "sub_locality" 195 | case administrativeArea = "administrative_area" 196 | case subAdministrativeArea = "sub_administrative_area" 197 | case neighborhood 198 | case postalCode = "postal_code" 199 | case country 200 | case isoCountryCode = "iso_country_code" 201 | case formattedAddress = "formatted_address" 202 | case lines 203 | } 204 | 205 | public init(from decoder: Decoder) throws { 206 | let values = try decoder.container(keyedBy: CodingKeys.self) 207 | let latitude = try values.decode(CLLocationDegrees.self, forKey: .latitude) 208 | let longitude = try values.decode(CLLocationDegrees.self, forKey: .longitude) 209 | self.coordinate = CLLocationCoordinate2DMake(latitude, longitude) 210 | self.streetNumber = try values.decode(String.self, forKey: .streetNumber) 211 | self.route = try values.decode(String.self, forKey: .route) 212 | self.locality = try values.decode(String.self, forKey: .locality) 213 | self.subLocality = try values.decode(String.self, forKey: .subLocality) 214 | self.administrativeArea = try values.decode(String.self, forKey: .administrativeArea) 215 | self.subAdministrativeArea = try values.decode(String.self, forKey: .subAdministrativeArea) 216 | self.neighborhood = try values.decode(String.self, forKey: .neighborhood) 217 | self.postalCode = try values.decode(String.self, forKey: .postalCode) 218 | self.country = try values.decode(String.self, forKey: .country) 219 | self.isoCountryCode = try values.decode(String.self, forKey: .isoCountryCode) 220 | self.formattedAddress = try values.decode(String.self, forKey: .formattedAddress) 221 | self.lines = try values.decode([String].self, forKey: .lines) 222 | } 223 | 224 | public func encode(to encoder: Encoder) throws { 225 | var container = encoder.container(keyedBy: CodingKeys.self) 226 | try container.encode(coordinate?.latitude, forKey: .latitude) 227 | try container.encode(coordinate?.longitude, forKey: .longitude) 228 | try container.encode(streetNumber, forKey: .streetNumber) 229 | try container.encode(route, forKey: .route) 230 | try container.encode(locality, forKey: .locality) 231 | try container.encode(subLocality, forKey: .subLocality) 232 | try container.encode(administrativeArea, forKey: .administrativeArea) 233 | try container.encode(subAdministrativeArea, forKey: .subAdministrativeArea) 234 | try container.encode(neighborhood, forKey: .neighborhood) 235 | try container.encode(postalCode, forKey: .postalCode) 236 | try container.encode(country, forKey: .country) 237 | try container.encode(isoCountryCode, forKey: .isoCountryCode) 238 | try container.encode(formattedAddress, forKey: .formattedAddress) 239 | try container.encode(lines, forKey: .lines) 240 | } 241 | } 242 | -------------------------------------------------------------------------------- /LMGeocoderSwift/Classes/AsynchronousOperation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AsynchronousOperation.swift 3 | // LMGeocoderSwift 4 | // 5 | // Created by LMinh on 11/19/19. 6 | // 7 | 8 | import Foundation 9 | 10 | /// Concurrent operation state 11 | @objc private enum OperationState: Int { 12 | case ready 13 | case executing 14 | case finished 15 | } 16 | 17 | /// An abstract class that makes building simple asynchronous operations easy. 18 | /// Subclasses must implement `execute()` to perform any work and call 19 | /// `finish()` when they are done. All `NSOperation` work will be handled 20 | /// automatically. 21 | class AsynchronousOperation: Operation { 22 | 23 | // MARK: STATE 24 | 25 | private let stateQueue = DispatchQueue( 26 | label: "com.lmgeocoder.operation.state", 27 | attributes: .concurrent) 28 | 29 | private var rawState = OperationState.ready 30 | 31 | @objc private dynamic var state: OperationState { 32 | get { 33 | return stateQueue.sync(execute: { rawState }) 34 | } 35 | set { 36 | willChangeValue(forKey: "state") 37 | stateQueue.sync(flags: .barrier, execute: { rawState = newValue }) 38 | didChangeValue(forKey: "state") 39 | } 40 | } 41 | 42 | public final override var isReady: Bool { 43 | return state == .ready && super.isReady 44 | } 45 | 46 | public final override var isExecuting: Bool { 47 | return state == .executing 48 | } 49 | 50 | public final override var isFinished: Bool { 51 | return state == .finished 52 | } 53 | 54 | public final override var isAsynchronous: Bool { 55 | return true 56 | } 57 | 58 | // MARK: - NSObject 59 | 60 | @objc private dynamic class func keyPathsForValuesAffectingIsReady() -> Set { 61 | return ["state"] 62 | } 63 | 64 | @objc private dynamic class func keyPathsForValuesAffectingIsExecuting() -> Set { 65 | return ["state"] 66 | } 67 | 68 | @objc private dynamic class func keyPathsForValuesAffectingIsFinished() -> Set { 69 | return ["state"] 70 | } 71 | 72 | // MARK: CONTROL 73 | 74 | func finish() { 75 | state = .finished 76 | } 77 | 78 | override func cancel() { 79 | super.cancel() 80 | finish() 81 | } 82 | 83 | override func start() { 84 | super.start() 85 | 86 | if isCancelled { 87 | finish() 88 | return 89 | } 90 | 91 | state = .executing 92 | execute() 93 | } 94 | 95 | 96 | public func execute() { 97 | 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /LMGeocoderSwift/Classes/Geocoder.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Geocoder.swift 3 | // LMGeocoderSwift 4 | // 5 | // Created by LMinh on 12/18/18. 6 | // Copyright © 2018 LMinh. All rights reserved. 7 | // 8 | 9 | import CoreLocation 10 | 11 | /// Exposes a service for geocoding and reverse geocoding. 12 | open class Geocoder { 13 | 14 | // MARK: - PROPERTIES 15 | 16 | /// Indicating whether the receiver is in the middle of geocoding its value. 17 | public var isGeocoding: Bool { 18 | return operationQueue.operationCount > 0 19 | } 20 | 21 | /// Google API key. 22 | public var googleAPIKey: String? = nil 23 | 24 | /// Here App Id. 25 | public var hereAppId: String? = nil 26 | 27 | /// Here App Code. 28 | public var hereAppCode: String? = nil 29 | 30 | /// Operation Queue. 31 | private let operationQueue: OperationQueue = { 32 | let queue = OperationQueue() 33 | queue.name = "Geocoding Queue" 34 | queue.maxConcurrentOperationCount = 1 35 | return queue 36 | }() 37 | 38 | // MARK: SINGLETON 39 | 40 | /// Get shared instance. 41 | public static let shared = Geocoder() 42 | 43 | // MARK: GEOCODING 44 | 45 | /// Submits a forward-geocoding request using the specified string. 46 | /// After initiating a forward-geocoding request, do not attempt to initiate another forward- or reverse-geocoding request. 47 | /// Geocoding requests are rate-limited for each app, so making too many requests in a 48 | /// short period of time may cause some of the requests to fail. 49 | /// When the maximum rate is exceeded, the geocoder passes an error object to your completion handler. 50 | /// 51 | /// - Parameters: 52 | /// - addressString: The string describing the location you want to look up. 53 | /// - service: The service API used to geocode. 54 | /// - alternativeService: The service API will be used if service API failed. LMGeocoderServiceUndefined means no alternative. 55 | /// - completionHandler: The callback to invoke with the geocode results. The callback will be invoked asynchronously from the main thread. 56 | public func geocodeAddressString(_ addressString: String, 57 | service: GeocoderService, 58 | alternativeService: GeocoderService = .undefined, 59 | completionHandler: GeocodeCallback?) { 60 | operationQueue.cancelAllOperations() 61 | let operation = GeocodingOperation(addressString: addressString, 62 | isReverseGeocoding: false, 63 | service: service, 64 | alternativeService:alternativeService, 65 | googleAPIKey: googleAPIKey, 66 | hereAppId: hereAppId, 67 | hereAppCode: hereAppCode, 68 | completionHandler: completionHandler) 69 | operationQueue.addOperation(operation) 70 | } 71 | 72 | /// Submits a reverse-geocoding request for the specified coordinate. 73 | /// After initiating a reverse-geocoding request, do not attempt to initiate another reverse- or forward-geocoding request. 74 | /// Geocoding requests are rate-limited for each app, so making too many requests in a 75 | /// short period of time may cause some of the requests to fail. 76 | /// When the maximum rate is exceeded, the geocoder passes an error object to your completion handler. 77 | /// 78 | /// - Parameters: 79 | /// - coordinate: The coordinate to look up. 80 | /// - service: The service API used to reverse geocode. 81 | /// - alternativeService: The service API will be used if service API failed. LMGeocoderServiceUndefined means no alternative. 82 | /// - completionHandler: The callback to invoke with the reverse geocode results.The callback will be invoked asynchronously from the main thread. 83 | public func reverseGeocodeCoordinate(_ coordinate: CLLocationCoordinate2D, 84 | service: GeocoderService, 85 | alternativeService: GeocoderService = .undefined, 86 | completionHandler: GeocodeCallback?) { 87 | operationQueue.cancelAllOperations() 88 | let operation = GeocodingOperation(coordinate: coordinate, 89 | isReverseGeocoding: true, 90 | service: service, 91 | alternativeService:alternativeService, 92 | googleAPIKey: googleAPIKey, 93 | hereAppId: hereAppId, 94 | hereAppCode: hereAppCode, 95 | completionHandler: completionHandler) 96 | operationQueue.addOperation(operation) 97 | } 98 | 99 | /// Cancels a pending geocoding request. 100 | public func cancelGeocode() { 101 | operationQueue.cancelAllOperations() 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /LMGeocoderSwift/Classes/GeocodingOperation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GeocodingOperation.swift 3 | // LMGeocoderSwift 4 | // 5 | // Created by LMinh on 8/26/19. 6 | // 7 | 8 | import Foundation 9 | import CoreLocation 10 | 11 | /// LMGeocoder error codes. 12 | public enum GeocoderError: Error { 13 | case invalidCoordinate 14 | case invalidAddressString 15 | case geocodeInternal 16 | } 17 | 18 | /// LMGeocoder service API. 19 | public enum GeocoderService { 20 | case undefined 21 | case google 22 | case apple 23 | case here 24 | } 25 | 26 | /// Geocoding API const 27 | let googleGeocodingURLString = "https://maps.googleapis.com/maps/api/geocode/json" 28 | let hereGeocodingURLString = "https://geocoder.api.here.com/6.2/geocode.json" 29 | let hereReverseGeocodingURLString = "https://reverse.geocoder.api.here.com/6.2/reversegeocode.json" 30 | 31 | /// Handler that reports a geocoding response, or error. 32 | public typealias GeocodeCallback = (_ results: [Address]?, _ error: Error?) -> Void 33 | 34 | /// An abstract class that makes building simple asynchronous operations easy. 35 | class GeocodingOperation: AsynchronousOperation { 36 | 37 | // MARK: PROPERTIES 38 | 39 | let addressString: String? 40 | let coordinate: CLLocationCoordinate2D? 41 | let service: GeocoderService 42 | let alternativeService: GeocoderService 43 | let completionHandler: GeocodeCallback? 44 | let isReverseGeocoding: Bool 45 | 46 | let googleAPIKey: String? 47 | let hereAppId: String? 48 | let hereAppCode: String? 49 | 50 | /// Apple Geocoder. 51 | private var appleGeocoder: CLGeocoder? = nil 52 | 53 | /// Google & Here Geocoder Task 54 | private var geocoderTask: URLSessionDataTask? = nil 55 | 56 | // MARK: INIT 57 | 58 | init(addressString: String? = nil, 59 | coordinate: CLLocationCoordinate2D? = nil, 60 | isReverseGeocoding: Bool, 61 | service: GeocoderService, 62 | alternativeService: GeocoderService = .undefined, 63 | googleAPIKey: String? = nil, 64 | hereAppId: String? = nil, 65 | hereAppCode: String? = nil, 66 | completionHandler: GeocodeCallback? = nil) { 67 | 68 | self.addressString = addressString 69 | self.coordinate = coordinate 70 | self.isReverseGeocoding = isReverseGeocoding 71 | self.service = service 72 | self.alternativeService = alternativeService 73 | self.googleAPIKey = googleAPIKey 74 | self.hereAppId = hereAppId 75 | self.hereAppCode = hereAppCode 76 | self.completionHandler = completionHandler 77 | 78 | super.init() 79 | } 80 | 81 | // MARK: CONTROL 82 | 83 | override func cancel() { 84 | super.cancel() 85 | appleGeocoder?.cancelGeocode() 86 | geocoderTask?.cancel() 87 | } 88 | 89 | override func execute() { 90 | if isReverseGeocoding { 91 | reverseGeocodeCoordinate(coordinate, 92 | service: service, 93 | alternativeService: alternativeService, 94 | completionHandler: completionHandler) 95 | } 96 | else { 97 | geocodeAddressString(addressString, 98 | service: service, 99 | alternativeService: alternativeService, 100 | completionHandler: completionHandler) 101 | } 102 | } 103 | 104 | // MARK: GEOCODE 105 | 106 | func geocodeAddressString(_ addressString: String?, 107 | service: GeocoderService, 108 | alternativeService: GeocoderService = .undefined, 109 | completionHandler: GeocodeCallback?) { 110 | 111 | // Check address string 112 | guard let addressString = addressString else { 113 | // Invalid address string --> Return error 114 | if !isCancelled { 115 | completionHandler?(nil, GeocoderError.invalidAddressString) 116 | } 117 | 118 | // Finish 119 | super.finish() 120 | return 121 | } 122 | 123 | // Valid address string --> Check service 124 | switch service { 125 | case .google, .here: 126 | var urlString = "" 127 | if service == .google { 128 | // Geocode using Google service 129 | urlString = googleGeocodingURLString 130 | + "&address=\(addressString)" 131 | + "&key=\(googleAPIKey ?? "")" 132 | } 133 | else { 134 | // Geocode using Here service 135 | urlString = hereGeocodingURLString 136 | + "?searchtext=" + addressString 137 | + "&app_id=" + (hereAppId ?? "") 138 | + "&app_code=" + (hereAppCode ?? "") 139 | } 140 | 141 | buildRequest(with: urlString, service: service) { (results, error) in 142 | 143 | if error != nil 144 | && results == nil 145 | && alternativeService != .undefined 146 | && !self.isCancelled { 147 | // Retry with alternativeService 148 | self.geocodeAddressString(addressString, 149 | service: alternativeService, 150 | completionHandler: completionHandler) 151 | } 152 | else { 153 | // Return 154 | DispatchQueue.main.async { 155 | if !self.isCancelled { 156 | completionHandler?(results, error) 157 | } 158 | } 159 | 160 | // Finish 161 | super.finish() 162 | } 163 | } 164 | case .apple: 165 | // Geocode using Apple service 166 | if appleGeocoder == nil { 167 | appleGeocoder = CLGeocoder() 168 | } 169 | appleGeocoder?.geocodeAddressString(addressString, completionHandler: { (placemarks, error) in 170 | 171 | if error != nil 172 | && placemarks == nil 173 | && alternativeService != .undefined 174 | && !self.isCancelled { 175 | // Retry with alternativeService 176 | self.geocodeAddressString(addressString, 177 | service: alternativeService, 178 | completionHandler: completionHandler) 179 | } 180 | else { 181 | // Return 182 | DispatchQueue.main.async { 183 | let results = self.parseGeocodingResponse(placemarks, service: service) 184 | if !self.isCancelled { 185 | completionHandler?(results, error) 186 | } 187 | } 188 | 189 | // Finish 190 | super.finish() 191 | } 192 | }) 193 | default: 194 | break 195 | } 196 | } 197 | 198 | // MARK: REVERSE GEOCODE 199 | 200 | func reverseGeocodeCoordinate(_ coordinate: CLLocationCoordinate2D?, 201 | service: GeocoderService, 202 | alternativeService: GeocoderService = .undefined, 203 | completionHandler: GeocodeCallback?) { 204 | // Check location coordinate 205 | guard let coordinate = coordinate, CLLocationCoordinate2DIsValid(coordinate) else { 206 | // Invalid location coordinate --> Return error 207 | if !isCancelled { 208 | completionHandler?(nil, GeocoderError.invalidCoordinate) 209 | } 210 | 211 | // Finish 212 | super.finish() 213 | return 214 | } 215 | 216 | // Valid location coordinate --> Check service 217 | switch service { 218 | case .google, .here: 219 | var urlString = "" 220 | if service == .google { 221 | // Geocode using Google service 222 | urlString = googleGeocodingURLString 223 | + "?latlng=\(coordinate.latitude),\(coordinate.longitude)" 224 | + "&key=" + (googleAPIKey ?? "") 225 | } 226 | else { 227 | // Geocode using Here service 228 | urlString = hereReverseGeocodingURLString 229 | + "?mode=retrieveAddress&prox=\(coordinate.latitude),\(coordinate.longitude)" 230 | + "&app_id=" + (hereAppId ?? "") 231 | + "&app_code=" + (hereAppCode ?? "") 232 | } 233 | 234 | buildRequest(with: urlString, service: service) { (results, error) in 235 | 236 | if error != nil 237 | && results == nil 238 | && alternativeService != .undefined 239 | && !self.isCancelled { 240 | // Retry with alternativeService 241 | self.reverseGeocodeCoordinate(coordinate, 242 | service: alternativeService, 243 | completionHandler: completionHandler) 244 | } 245 | else { 246 | // Return 247 | DispatchQueue.main.async { 248 | if !self.isCancelled { 249 | completionHandler?(results, error) 250 | } 251 | } 252 | 253 | // Finish 254 | super.finish() 255 | } 256 | } 257 | case .apple: 258 | // Geocode using Apple service 259 | if appleGeocoder == nil { 260 | appleGeocoder = CLGeocoder() 261 | } 262 | let location = CLLocation(latitude: coordinate.latitude, longitude: coordinate.longitude) 263 | appleGeocoder?.reverseGeocodeLocation(location, completionHandler: { (placemarks, error) in 264 | 265 | if error != nil 266 | && placemarks == nil 267 | && alternativeService != .undefined 268 | && !self.isCancelled { 269 | // Retry with alternativeService 270 | self.reverseGeocodeCoordinate(coordinate, 271 | service: alternativeService, 272 | completionHandler: completionHandler) 273 | } 274 | else { 275 | // Return 276 | DispatchQueue.main.async { 277 | let results = self.parseGeocodingResponse(placemarks, service: service) 278 | if !self.isCancelled { 279 | completionHandler?(results, error) 280 | } 281 | } 282 | 283 | // Finish 284 | super.finish() 285 | } 286 | }) 287 | default: 288 | break 289 | } 290 | } 291 | 292 | // MARK: NETWORKING 293 | 294 | func buildRequest(with urlString: String, 295 | service: GeocoderService, 296 | completionHandler: GeocodeCallback?) { 297 | // Set up the URL 298 | guard 299 | let urlString = urlString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed), 300 | let url = URL(string: urlString) 301 | else { 302 | completionHandler?(nil, GeocoderError.geocodeInternal) 303 | return 304 | } 305 | 306 | // Make the request 307 | geocoderTask = URLSession.shared.dataTask(with: url) { (data, response, error) in 308 | 309 | // Check for any errors 310 | guard error == nil else { 311 | completionHandler?(nil, error) 312 | return 313 | } 314 | 315 | // Make sure we got data 316 | guard let data = data else { 317 | completionHandler?(nil, GeocoderError.geocodeInternal) 318 | return 319 | } 320 | 321 | // Parse the result as JSON 322 | do { 323 | guard let result = try JSONSerialization.jsonObject(with: data, options: .allowFragments) as? [String: Any] else { 324 | completionHandler?(nil, GeocoderError.geocodeInternal) 325 | return 326 | } 327 | 328 | // Check service 329 | switch service { 330 | case .google: 331 | // Check status value 332 | guard let status = result["status"] as? String, status == "OK" else { 333 | completionHandler?(nil, GeocoderError.geocodeInternal) 334 | return 335 | } 336 | 337 | // Status OK --> Check response results 338 | guard let locationDicts = result["results"] as? [Any] else { 339 | completionHandler?(nil, GeocoderError.geocodeInternal) 340 | return 341 | } 342 | 343 | // Return results 344 | let finalResults = self.parseGeocodingResponse(locationDicts, service: service) 345 | completionHandler?(finalResults, nil) 346 | case .here: 347 | // Check response results 348 | guard 349 | let locationDicts = (((result["Response"] 350 | as? [String: Any])?["View"] 351 | as? [String: Any])?["Result"] as? [Any]) 352 | else { 353 | completionHandler?(nil, GeocoderError.geocodeInternal) 354 | return 355 | } 356 | 357 | // Return results 358 | let finalResults = self.parseGeocodingResponse(locationDicts, service: service) 359 | completionHandler?(finalResults, nil) 360 | default: break 361 | } 362 | } catch { 363 | completionHandler?(nil, GeocoderError.geocodeInternal) 364 | } 365 | } 366 | geocoderTask?.resume() 367 | } 368 | 369 | func parseGeocodingResponse(_ results: [Any]?, service: GeocoderService) -> [Address]? { 370 | guard let results = results else { return nil } 371 | 372 | var finalResults = [Address]() 373 | for result in results { 374 | if let address = Address(locationData: result, serviceType: service) { 375 | finalResults.append(address) 376 | } 377 | } 378 | return finalResults 379 | } 380 | } 381 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.7 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "LMGeocoderSwift", 7 | platforms: [ 8 | .macOS(.v13), 9 | .macCatalyst(.v13), 10 | .iOS(.v11), 11 | .tvOS(.v11), 12 | .watchOS(.v4) 13 | ], 14 | products: [ 15 | .library( 16 | name: "LMGeocoderSwift", 17 | targets: ["LMGeocoderSwift"] 18 | ) 19 | ], 20 | targets: [ 21 | .target( 22 | name: "LMGeocoderSwift", 23 | path: "LMGeocoderSwift/Classes" 24 | ) 25 | ] 26 | ) 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # LMGeocoderSwift 2 | LMGeocoderSwift is a simple wrapper for geocoding and reverse geocoding, using both Google Geocoding API and Apple iOS Geocoding Framework. 3 | 4 | [![CI Status](https://img.shields.io/travis/LMinh/LMGeocoderSwift.svg?style=flat)](https://travis-ci.org/LMinh/LMGeocoderSwift) 5 | [![Version](https://img.shields.io/cocoapods/v/LMGeocoderSwift.svg?style=flat)](https://cocoapods.org/pods/LMGeocoderSwift) 6 | [![License](https://img.shields.io/cocoapods/l/LMGeocoderSwift.svg?style=flat)](https://cocoapods.org/pods/LMGeocoderSwift) 7 | [![Platform](https://img.shields.io/cocoapods/p/LMGeocoderSwift.svg?style=flat)](https://cocoapods.org/pods/LMGeocoderSwift) 8 | 9 | ![](https://raw.github.com/lminhtm/LMGeocoder/master/Screenshots/screenshot.png) 10 | 11 | ## Features 12 | * Wrapper for Geocoding and Reverse geocoding with blocked-based coding. 13 | * Use both Google Geocoding API and Apple iOS Geocoding Framework. 14 | 15 | ## Requirements 16 | * iOS 8.0 or higher 17 | * Swift 5.0 18 | 19 | ## Installation 20 | LMGeocoderSwift is available through [CocoaPods](https://cocoapods.org). To install 21 | it, simply add the following line to your Podfile: 22 | 23 | ```ruby 24 | pod 'LMGeocoderSwift' 25 | ``` 26 | 27 | ## Objective-C Version 28 | https://github.com/lminhtm/LMGeocoder 29 | 30 | ## Usage 31 | #### Geocoding 32 | ```Swift 33 | Geocoder.shared.geocodeAddressString(addressString, service: .apple, alternativeService: .google) { (results, error) in 34 | 35 | // Update UI 36 | if let address = results?.first, error == nil { 37 | DispatchQueue.main.async { 38 | self.coordinateLabel.text = "(\(address.coordinate?.latitude ?? 0), \(address.coordinate?.longitude ?? 0))" 39 | } 40 | } 41 | } 42 | ``` 43 | 44 | #### Reverse Geocoding 45 | ```Swift 46 | Geocoder.shared.reverseGeocodeCoordinate(coordinate, service: .apple, alternativeService: .google) { (results, error) in 47 | 48 | // Update UI 49 | if let address = results?.first, error == nil { 50 | DispatchQueue.main.async { 51 | self.addressLabel.text = address.formattedAddress ?? "-" 52 | } 53 | } 54 | } 55 | ``` 56 | 57 | #### Cancel Geocode 58 | ```Swift 59 | Geocoder.shared.cancelGeocode() 60 | ``` 61 | 62 | ## Example 63 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 64 | 65 | ## License 66 | LMGeocoderSwift is available under the MIT license. See the LICENSE file for more info. 67 | 68 | ## Author 69 | Minh Nguyen 70 | * https://github.com/lminhtm 71 | * lminhtm@gmail.com 72 | -------------------------------------------------------------------------------- /Screenshots/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lminhtm/LMGeocoderSwift/f11daf0a676c860c0d4e2b30c58dac36f8d1fe93/Screenshots/screenshot.png -------------------------------------------------------------------------------- /Screenshots/screenshot@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lminhtm/LMGeocoderSwift/f11daf0a676c860c0d4e2b30c58dac36f8d1fe93/Screenshots/screenshot@2x.png -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------