├── .gitignore ├── GHWBinaryMapSource.xcodeproj ├── project.pbxproj └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── GHWBinaryMapSource.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── GHWBinaryMapSource ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── LICENSE ├── Podfile ├── Podfile.lock ├── Pods ├── Local Podspecs │ └── BinaryToSource.podspec.json ├── Manifest.lock ├── Pods.xcodeproj │ └── project.pbxproj └── Target Support Files │ ├── BinaryToSource │ └── BinaryToSource.xcconfig │ └── Pods-GHWBinaryMapSource │ ├── Pods-GHWBinaryMapSource-Info.plist │ ├── Pods-GHWBinaryMapSource-acknowledgements.markdown │ ├── Pods-GHWBinaryMapSource-acknowledgements.plist │ ├── Pods-GHWBinaryMapSource-dummy.m │ ├── Pods-GHWBinaryMapSource-frameworks-Debug-input-files.xcfilelist │ ├── Pods-GHWBinaryMapSource-frameworks-Debug-output-files.xcfilelist │ ├── Pods-GHWBinaryMapSource-frameworks-Release-input-files.xcfilelist │ ├── Pods-GHWBinaryMapSource-frameworks-Release-output-files.xcfilelist │ ├── Pods-GHWBinaryMapSource-frameworks.sh │ ├── Pods-GHWBinaryMapSource-umbrella.h │ ├── Pods-GHWBinaryMapSource.debug.xcconfig │ ├── Pods-GHWBinaryMapSource.modulemap │ └── Pods-GHWBinaryMapSource.release.xcconfig ├── README.md ├── localPods ├── BinaryToSource │ ├── BinaryToSource.podspec │ └── Products │ │ └── MapSourceTest.framework │ │ ├── Headers │ │ ├── GHWMapSourceTest.h │ │ └── MapSourceTest.h │ │ ├── Info.plist │ │ ├── MapSourceTest │ │ └── Modules │ │ └── module.modulemap └── MapSourceTest │ ├── MapSourceTest.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── MapSourceTest │ ├── GHWMapSourceTest.h │ ├── GHWMapSourceTest.m │ ├── Info.plist │ └── MapSourceTest.h ├── resources ├── 1.png ├── 2.png ├── 3.png ├── 4.png └── 7.gif └── script ├── GHWBinaryMapSource.py └── path.txt /.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 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | # Pods/ 38 | 39 | # Carthage 40 | # 41 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 42 | # Carthage/Checkouts 43 | 44 | Carthage/Build 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 52 | 53 | fastlane/report.xml 54 | fastlane/Preview.html 55 | fastlane/screenshots/**/*.png 56 | fastlane/test_output 57 | 58 | # Code Injection 59 | # 60 | # After new code Injection tools there's a generated folder /iOSInjectionProject 61 | # https://github.com/johnno1962/injectionforxcode 62 | 63 | iOSInjectionProject/ 64 | -------------------------------------------------------------------------------- /GHWBinaryMapSource.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | D7ED4258BFC05133089465FE /* Pods_GHWBinaryMapSource.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DC04EEF70A52137D0DB0243 /* Pods_GHWBinaryMapSource.framework */; }; 11 | EDC4525523289C4600C336F0 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = EDC4525423289C4600C336F0 /* AppDelegate.m */; }; 12 | EDC4525823289C4600C336F0 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = EDC4525723289C4600C336F0 /* ViewController.m */; }; 13 | EDC4525B23289C4600C336F0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EDC4525923289C4600C336F0 /* Main.storyboard */; }; 14 | EDC4525D23289C4800C336F0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EDC4525C23289C4800C336F0 /* Assets.xcassets */; }; 15 | EDC4526023289C4800C336F0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EDC4525E23289C4800C336F0 /* LaunchScreen.storyboard */; }; 16 | EDC4526323289C4800C336F0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = EDC4526223289C4800C336F0 /* main.m */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 0DC04EEF70A52137D0DB0243 /* Pods_GHWBinaryMapSource.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GHWBinaryMapSource.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | D21E59A4E6193AB62FB6C27B /* Pods-GHWBinaryMapSource.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GHWBinaryMapSource.debug.xcconfig"; path = "Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource.debug.xcconfig"; sourceTree = ""; }; 22 | E1CC05C7E1CDF38414F2556C /* Pods-GHWBinaryMapSource.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GHWBinaryMapSource.release.xcconfig"; path = "Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource.release.xcconfig"; sourceTree = ""; }; 23 | EDC4525023289C4600C336F0 /* GHWBinaryMapSource.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GHWBinaryMapSource.app; sourceTree = BUILT_PRODUCTS_DIR; }; 24 | EDC4525323289C4600C336F0 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 25 | EDC4525423289C4600C336F0 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 26 | EDC4525623289C4600C336F0 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 27 | EDC4525723289C4600C336F0 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 28 | EDC4525A23289C4600C336F0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 29 | EDC4525C23289C4800C336F0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 30 | EDC4525F23289C4800C336F0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 31 | EDC4526123289C4800C336F0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | EDC4526223289C4800C336F0 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 33 | /* End PBXFileReference section */ 34 | 35 | /* Begin PBXFrameworksBuildPhase section */ 36 | EDC4524D23289C4600C336F0 /* Frameworks */ = { 37 | isa = PBXFrameworksBuildPhase; 38 | buildActionMask = 2147483647; 39 | files = ( 40 | D7ED4258BFC05133089465FE /* Pods_GHWBinaryMapSource.framework in Frameworks */, 41 | ); 42 | runOnlyForDeploymentPostprocessing = 0; 43 | }; 44 | /* End PBXFrameworksBuildPhase section */ 45 | 46 | /* Begin PBXGroup section */ 47 | 60C0DC7EE909FD03353B554C /* Pods */ = { 48 | isa = PBXGroup; 49 | children = ( 50 | D21E59A4E6193AB62FB6C27B /* Pods-GHWBinaryMapSource.debug.xcconfig */, 51 | E1CC05C7E1CDF38414F2556C /* Pods-GHWBinaryMapSource.release.xcconfig */, 52 | ); 53 | path = Pods; 54 | sourceTree = ""; 55 | }; 56 | A24713D78C8ECA04A75F8BE6 /* Frameworks */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 0DC04EEF70A52137D0DB0243 /* Pods_GHWBinaryMapSource.framework */, 60 | ); 61 | name = Frameworks; 62 | sourceTree = ""; 63 | }; 64 | EDC4524723289C4600C336F0 = { 65 | isa = PBXGroup; 66 | children = ( 67 | EDC4525223289C4600C336F0 /* GHWBinaryMapSource */, 68 | EDC4525123289C4600C336F0 /* Products */, 69 | 60C0DC7EE909FD03353B554C /* Pods */, 70 | A24713D78C8ECA04A75F8BE6 /* Frameworks */, 71 | ); 72 | sourceTree = ""; 73 | }; 74 | EDC4525123289C4600C336F0 /* Products */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | EDC4525023289C4600C336F0 /* GHWBinaryMapSource.app */, 78 | ); 79 | name = Products; 80 | sourceTree = ""; 81 | }; 82 | EDC4525223289C4600C336F0 /* GHWBinaryMapSource */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | EDC4525323289C4600C336F0 /* AppDelegate.h */, 86 | EDC4525423289C4600C336F0 /* AppDelegate.m */, 87 | EDC4525623289C4600C336F0 /* ViewController.h */, 88 | EDC4525723289C4600C336F0 /* ViewController.m */, 89 | EDC4525923289C4600C336F0 /* Main.storyboard */, 90 | EDC4525C23289C4800C336F0 /* Assets.xcassets */, 91 | EDC4525E23289C4800C336F0 /* LaunchScreen.storyboard */, 92 | EDC4526123289C4800C336F0 /* Info.plist */, 93 | EDC4526223289C4800C336F0 /* main.m */, 94 | ); 95 | path = GHWBinaryMapSource; 96 | sourceTree = ""; 97 | }; 98 | /* End PBXGroup section */ 99 | 100 | /* Begin PBXNativeTarget section */ 101 | EDC4524F23289C4600C336F0 /* GHWBinaryMapSource */ = { 102 | isa = PBXNativeTarget; 103 | buildConfigurationList = EDC4526623289C4800C336F0 /* Build configuration list for PBXNativeTarget "GHWBinaryMapSource" */; 104 | buildPhases = ( 105 | 1B89635F02523B4B6281ADD8 /* [CP] Check Pods Manifest.lock */, 106 | EDC4524C23289C4600C336F0 /* Sources */, 107 | EDC4524D23289C4600C336F0 /* Frameworks */, 108 | EDC4524E23289C4600C336F0 /* Resources */, 109 | 7E346978E64F9D8A2A01384F /* [CP] Embed Pods Frameworks */, 110 | ); 111 | buildRules = ( 112 | ); 113 | dependencies = ( 114 | ); 115 | name = GHWBinaryMapSource; 116 | productName = GHWBinaryMapSource; 117 | productReference = EDC4525023289C4600C336F0 /* GHWBinaryMapSource.app */; 118 | productType = "com.apple.product-type.application"; 119 | }; 120 | /* End PBXNativeTarget section */ 121 | 122 | /* Begin PBXProject section */ 123 | EDC4524823289C4600C336F0 /* Project object */ = { 124 | isa = PBXProject; 125 | attributes = { 126 | LastUpgradeCheck = 1020; 127 | ORGANIZATIONNAME = Jingyao; 128 | TargetAttributes = { 129 | EDC4524F23289C4600C336F0 = { 130 | CreatedOnToolsVersion = 10.2.1; 131 | }; 132 | }; 133 | }; 134 | buildConfigurationList = EDC4524B23289C4600C336F0 /* Build configuration list for PBXProject "GHWBinaryMapSource" */; 135 | compatibilityVersion = "Xcode 9.3"; 136 | developmentRegion = en; 137 | hasScannedForEncodings = 0; 138 | knownRegions = ( 139 | en, 140 | Base, 141 | ); 142 | mainGroup = EDC4524723289C4600C336F0; 143 | productRefGroup = EDC4525123289C4600C336F0 /* Products */; 144 | projectDirPath = ""; 145 | projectRoot = ""; 146 | targets = ( 147 | EDC4524F23289C4600C336F0 /* GHWBinaryMapSource */, 148 | ); 149 | }; 150 | /* End PBXProject section */ 151 | 152 | /* Begin PBXResourcesBuildPhase section */ 153 | EDC4524E23289C4600C336F0 /* Resources */ = { 154 | isa = PBXResourcesBuildPhase; 155 | buildActionMask = 2147483647; 156 | files = ( 157 | EDC4526023289C4800C336F0 /* LaunchScreen.storyboard in Resources */, 158 | EDC4525D23289C4800C336F0 /* Assets.xcassets in Resources */, 159 | EDC4525B23289C4600C336F0 /* Main.storyboard in Resources */, 160 | ); 161 | runOnlyForDeploymentPostprocessing = 0; 162 | }; 163 | /* End PBXResourcesBuildPhase section */ 164 | 165 | /* Begin PBXShellScriptBuildPhase section */ 166 | 1B89635F02523B4B6281ADD8 /* [CP] Check Pods Manifest.lock */ = { 167 | isa = PBXShellScriptBuildPhase; 168 | buildActionMask = 2147483647; 169 | files = ( 170 | ); 171 | inputFileListPaths = ( 172 | ); 173 | inputPaths = ( 174 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 175 | "${PODS_ROOT}/Manifest.lock", 176 | ); 177 | name = "[CP] Check Pods Manifest.lock"; 178 | outputFileListPaths = ( 179 | ); 180 | outputPaths = ( 181 | "$(DERIVED_FILE_DIR)/Pods-GHWBinaryMapSource-checkManifestLockResult.txt", 182 | ); 183 | runOnlyForDeploymentPostprocessing = 0; 184 | shellPath = /bin/sh; 185 | 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"; 186 | showEnvVarsInLog = 0; 187 | }; 188 | 7E346978E64F9D8A2A01384F /* [CP] Embed Pods Frameworks */ = { 189 | isa = PBXShellScriptBuildPhase; 190 | buildActionMask = 2147483647; 191 | files = ( 192 | ); 193 | inputFileListPaths = ( 194 | "${PODS_ROOT}/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-frameworks-${CONFIGURATION}-input-files.xcfilelist", 195 | ); 196 | name = "[CP] Embed Pods Frameworks"; 197 | outputFileListPaths = ( 198 | "${PODS_ROOT}/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-frameworks-${CONFIGURATION}-output-files.xcfilelist", 199 | ); 200 | runOnlyForDeploymentPostprocessing = 0; 201 | shellPath = /bin/sh; 202 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-frameworks.sh\"\n"; 203 | showEnvVarsInLog = 0; 204 | }; 205 | /* End PBXShellScriptBuildPhase section */ 206 | 207 | /* Begin PBXSourcesBuildPhase section */ 208 | EDC4524C23289C4600C336F0 /* Sources */ = { 209 | isa = PBXSourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | EDC4525823289C4600C336F0 /* ViewController.m in Sources */, 213 | EDC4526323289C4800C336F0 /* main.m in Sources */, 214 | EDC4525523289C4600C336F0 /* AppDelegate.m in Sources */, 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | }; 218 | /* End PBXSourcesBuildPhase section */ 219 | 220 | /* Begin PBXVariantGroup section */ 221 | EDC4525923289C4600C336F0 /* Main.storyboard */ = { 222 | isa = PBXVariantGroup; 223 | children = ( 224 | EDC4525A23289C4600C336F0 /* Base */, 225 | ); 226 | name = Main.storyboard; 227 | sourceTree = ""; 228 | }; 229 | EDC4525E23289C4800C336F0 /* LaunchScreen.storyboard */ = { 230 | isa = PBXVariantGroup; 231 | children = ( 232 | EDC4525F23289C4800C336F0 /* Base */, 233 | ); 234 | name = LaunchScreen.storyboard; 235 | sourceTree = ""; 236 | }; 237 | /* End PBXVariantGroup section */ 238 | 239 | /* Begin XCBuildConfiguration section */ 240 | EDC4526423289C4800C336F0 /* Debug */ = { 241 | isa = XCBuildConfiguration; 242 | buildSettings = { 243 | ALWAYS_SEARCH_USER_PATHS = NO; 244 | CLANG_ANALYZER_NONNULL = YES; 245 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 246 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 247 | CLANG_CXX_LIBRARY = "libc++"; 248 | CLANG_ENABLE_MODULES = YES; 249 | CLANG_ENABLE_OBJC_ARC = YES; 250 | CLANG_ENABLE_OBJC_WEAK = YES; 251 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 252 | CLANG_WARN_BOOL_CONVERSION = YES; 253 | CLANG_WARN_COMMA = YES; 254 | CLANG_WARN_CONSTANT_CONVERSION = YES; 255 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 256 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 257 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 258 | CLANG_WARN_EMPTY_BODY = YES; 259 | CLANG_WARN_ENUM_CONVERSION = YES; 260 | CLANG_WARN_INFINITE_RECURSION = YES; 261 | CLANG_WARN_INT_CONVERSION = YES; 262 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 263 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 264 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 265 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 266 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 267 | CLANG_WARN_STRICT_PROTOTYPES = YES; 268 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 269 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 270 | CLANG_WARN_UNREACHABLE_CODE = YES; 271 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 272 | CODE_SIGN_IDENTITY = "iPhone Developer"; 273 | COPY_PHASE_STRIP = NO; 274 | DEBUG_INFORMATION_FORMAT = dwarf; 275 | ENABLE_STRICT_OBJC_MSGSEND = YES; 276 | ENABLE_TESTABILITY = YES; 277 | GCC_C_LANGUAGE_STANDARD = gnu11; 278 | GCC_DYNAMIC_NO_PIC = NO; 279 | GCC_NO_COMMON_BLOCKS = YES; 280 | GCC_OPTIMIZATION_LEVEL = 0; 281 | GCC_PREPROCESSOR_DEFINITIONS = ( 282 | "DEBUG=1", 283 | "$(inherited)", 284 | ); 285 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 286 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 287 | GCC_WARN_UNDECLARED_SELECTOR = YES; 288 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 289 | GCC_WARN_UNUSED_FUNCTION = YES; 290 | GCC_WARN_UNUSED_VARIABLE = YES; 291 | IPHONEOS_DEPLOYMENT_TARGET = 12.2; 292 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 293 | MTL_FAST_MATH = YES; 294 | ONLY_ACTIVE_ARCH = YES; 295 | SDKROOT = iphoneos; 296 | }; 297 | name = Debug; 298 | }; 299 | EDC4526523289C4800C336F0 /* Release */ = { 300 | isa = XCBuildConfiguration; 301 | buildSettings = { 302 | ALWAYS_SEARCH_USER_PATHS = NO; 303 | CLANG_ANALYZER_NONNULL = YES; 304 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 305 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 306 | CLANG_CXX_LIBRARY = "libc++"; 307 | CLANG_ENABLE_MODULES = YES; 308 | CLANG_ENABLE_OBJC_ARC = YES; 309 | CLANG_ENABLE_OBJC_WEAK = YES; 310 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 311 | CLANG_WARN_BOOL_CONVERSION = YES; 312 | CLANG_WARN_COMMA = YES; 313 | CLANG_WARN_CONSTANT_CONVERSION = YES; 314 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 315 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 316 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 329 | CLANG_WARN_UNREACHABLE_CODE = YES; 330 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 331 | CODE_SIGN_IDENTITY = "iPhone Developer"; 332 | COPY_PHASE_STRIP = NO; 333 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 334 | ENABLE_NS_ASSERTIONS = NO; 335 | ENABLE_STRICT_OBJC_MSGSEND = YES; 336 | GCC_C_LANGUAGE_STANDARD = gnu11; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 339 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 340 | GCC_WARN_UNDECLARED_SELECTOR = YES; 341 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 342 | GCC_WARN_UNUSED_FUNCTION = YES; 343 | GCC_WARN_UNUSED_VARIABLE = YES; 344 | IPHONEOS_DEPLOYMENT_TARGET = 12.2; 345 | MTL_ENABLE_DEBUG_INFO = NO; 346 | MTL_FAST_MATH = YES; 347 | SDKROOT = iphoneos; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Release; 351 | }; 352 | EDC4526723289C4800C336F0 /* Debug */ = { 353 | isa = XCBuildConfiguration; 354 | baseConfigurationReference = D21E59A4E6193AB62FB6C27B /* Pods-GHWBinaryMapSource.debug.xcconfig */; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | CODE_SIGN_STYLE = Automatic; 358 | DEVELOPMENT_TEAM = 2HMG43AYW9; 359 | INFOPLIST_FILE = GHWBinaryMapSource/Info.plist; 360 | LD_RUNPATH_SEARCH_PATHS = ( 361 | "$(inherited)", 362 | "@executable_path/Frameworks", 363 | ); 364 | PRODUCT_BUNDLE_IDENTIFIER = com.jingyao.GHWBinaryMapSource; 365 | PRODUCT_NAME = "$(TARGET_NAME)"; 366 | TARGETED_DEVICE_FAMILY = "1,2"; 367 | }; 368 | name = Debug; 369 | }; 370 | EDC4526823289C4800C336F0 /* Release */ = { 371 | isa = XCBuildConfiguration; 372 | baseConfigurationReference = E1CC05C7E1CDF38414F2556C /* Pods-GHWBinaryMapSource.release.xcconfig */; 373 | buildSettings = { 374 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 375 | CODE_SIGN_STYLE = Automatic; 376 | DEVELOPMENT_TEAM = 2HMG43AYW9; 377 | INFOPLIST_FILE = GHWBinaryMapSource/Info.plist; 378 | LD_RUNPATH_SEARCH_PATHS = ( 379 | "$(inherited)", 380 | "@executable_path/Frameworks", 381 | ); 382 | PRODUCT_BUNDLE_IDENTIFIER = com.jingyao.GHWBinaryMapSource; 383 | PRODUCT_NAME = "$(TARGET_NAME)"; 384 | TARGETED_DEVICE_FAMILY = "1,2"; 385 | }; 386 | name = Release; 387 | }; 388 | /* End XCBuildConfiguration section */ 389 | 390 | /* Begin XCConfigurationList section */ 391 | EDC4524B23289C4600C336F0 /* Build configuration list for PBXProject "GHWBinaryMapSource" */ = { 392 | isa = XCConfigurationList; 393 | buildConfigurations = ( 394 | EDC4526423289C4800C336F0 /* Debug */, 395 | EDC4526523289C4800C336F0 /* Release */, 396 | ); 397 | defaultConfigurationIsVisible = 0; 398 | defaultConfigurationName = Release; 399 | }; 400 | EDC4526623289C4800C336F0 /* Build configuration list for PBXNativeTarget "GHWBinaryMapSource" */ = { 401 | isa = XCConfigurationList; 402 | buildConfigurations = ( 403 | EDC4526723289C4800C336F0 /* Debug */, 404 | EDC4526823289C4800C336F0 /* Release */, 405 | ); 406 | defaultConfigurationIsVisible = 0; 407 | defaultConfigurationName = Release; 408 | }; 409 | /* End XCConfigurationList section */ 410 | }; 411 | rootObject = EDC4524823289C4600C336F0 /* Project object */; 412 | } 413 | -------------------------------------------------------------------------------- /GHWBinaryMapSource.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GHWBinaryMapSource.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /GHWBinaryMapSource.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /GHWBinaryMapSource.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /GHWBinaryMapSource/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // GHWBinaryMapSource 4 | // 5 | // Created by 黑化肥发灰 on 2019/9/11. 6 | // Copyright © 2019 黑化肥发灰. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /GHWBinaryMapSource/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // GHWBinaryMapSource 4 | // 5 | // Created by 黑化肥发灰 on 2019/9/11. 6 | // Copyright © 2019 黑化肥发灰. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // 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. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // 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. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // 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. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /GHWBinaryMapSource/Assets.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" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /GHWBinaryMapSource/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /GHWBinaryMapSource/Base.lproj/LaunchScreen.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 | -------------------------------------------------------------------------------- /GHWBinaryMapSource/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 | -------------------------------------------------------------------------------- /GHWBinaryMapSource/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /GHWBinaryMapSource/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // GHWBinaryMapSource 4 | // 5 | // Created by 黑化肥发灰 on 2019/9/11. 6 | // Copyright © 2019 黑化肥发灰. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /GHWBinaryMapSource/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // GHWBinaryMapSource 4 | // 5 | // Created by 黑化肥发灰 on 2019/9/11. 6 | // Copyright © 2019 黑化肥发灰. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import 11 | 12 | @interface ViewController () 13 | @property (nonatomic, strong) UIButton *tapButton; 14 | @end 15 | 16 | @implementation ViewController 17 | 18 | #pragma mark - Life Cycle 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | [self configViews]; 23 | [self configData]; 24 | } 25 | 26 | - (void)viewWillAppear:(BOOL)animated { 27 | [super viewWillAppear:animated]; 28 | 29 | } 30 | 31 | #pragma mark - Setup View / Data 32 | 33 | - (void)configViews { 34 | [self.view addSubview:self.tapButton]; 35 | } 36 | 37 | - (void)configData { 38 | 39 | } 40 | 41 | - (void)buttonTap:(id)sender { 42 | GHWMapSourceTest *test = [[GHWMapSourceTest alloc] init]; 43 | [test testFail]; 44 | 45 | NSLog(@"ok"); 46 | } 47 | 48 | 49 | 50 | #pragma mark - Setter / Getter 51 | - (UIButton *)tapButton { 52 | if (!_tapButton) { 53 | _tapButton = [[UIButton alloc] initWithFrame:CGRectMake(30, 100, 250, 50)]; 54 | [_tapButton setTitleColor:[UIColor blueColor] forState:UIControlStateNormal]; 55 | _tapButton.titleLabel.font = [UIFont systemFontOfSize:14]; 56 | _tapButton.backgroundColor = [UIColor lightGrayColor]; 57 | [_tapButton setTitle:@"二进制映射源码测试(点我会 crash 哦)" forState:UIControlStateNormal]; 58 | [_tapButton addTarget:self action:@selector(buttonTap:) forControlEvents:UIControlEventTouchUpInside]; 59 | } 60 | return _tapButton; 61 | } 62 | 63 | 64 | #pragma mark - Network 65 | 66 | 67 | 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /GHWBinaryMapSource/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // GHWBinaryMapSource 4 | // 5 | // Created by 黑化肥发灰 on 2019/9/11. 6 | // Copyright © 2019 黑化肥发灰. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 guohongwei719 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | 3 | # Uncomment the next line to define a global platform for your project 4 | platform :ios, '11.0' 5 | 6 | inhibit_all_warnings! 7 | 8 | 9 | target 'GHWBinaryMapSource' do 10 | use_frameworks! 11 | pod 'BinaryToSource', :path => 'localPods/BinaryToSource/' 12 | end 13 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - BinaryToSource (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - BinaryToSource (from `localPods/BinaryToSource/`) 6 | 7 | EXTERNAL SOURCES: 8 | BinaryToSource: 9 | :path: localPods/BinaryToSource/ 10 | 11 | SPEC CHECKSUMS: 12 | BinaryToSource: 5c826a8df599c35001041f3788f0708f6c938609 13 | 14 | PODFILE CHECKSUM: 26b90ca41e1898b52b0920bb79867ace3cc54491 15 | 16 | COCOAPODS: 1.7.2 17 | -------------------------------------------------------------------------------- /Pods/Local Podspecs/BinaryToSource.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BinaryToSource", 3 | "version": "0.1.0", 4 | "summary": "my demo pod", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/guohongwei719/BinaryToSource", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "guohongwei719": "guohongwei04441@hellobike.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/guohongwei719/BinaryToSource.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "vendored_frameworks": "Products/*.framework" 22 | } 23 | -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - BinaryToSource (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - BinaryToSource (from `localPods/BinaryToSource/`) 6 | 7 | EXTERNAL SOURCES: 8 | BinaryToSource: 9 | :path: localPods/BinaryToSource/ 10 | 11 | SPEC CHECKSUMS: 12 | BinaryToSource: 5c826a8df599c35001041f3788f0708f6c938609 13 | 14 | PODFILE CHECKSUM: 26b90ca41e1898b52b0920bb79867ace3cc54491 15 | 16 | COCOAPODS: 1.7.2 17 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXAggregateTarget section */ 10 | 0060D5B55A144F34A1179D1C51EBB7AD /* BinaryToSource */ = { 11 | isa = PBXAggregateTarget; 12 | buildConfigurationList = E958F2DB0CEAA7D9DCC847AF6F8739FC /* Build configuration list for PBXAggregateTarget "BinaryToSource" */; 13 | buildPhases = ( 14 | ); 15 | dependencies = ( 16 | ); 17 | name = BinaryToSource; 18 | }; 19 | /* End PBXAggregateTarget section */ 20 | 21 | /* Begin PBXBuildFile section */ 22 | 4558E629DE92F73C649FD20F612D33AB /* Pods-GHWBinaryMapSource-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = BBE39A91A406C0797CD82DB9D4B581C0 /* Pods-GHWBinaryMapSource-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 23 | 663820109A8F39035C8EE8D3E6E418C2 /* Pods-GHWBinaryMapSource-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 87DECE8F1018A6581CD74D343AE3F086 /* Pods-GHWBinaryMapSource-dummy.m */; }; 24 | DBC29AAEB5F7355307A07B0FE6F1C90D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 1B8C8AA24EB3911880F4A085B6C0B2E8 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 0060D5B55A144F34A1179D1C51EBB7AD; 33 | remoteInfo = BinaryToSource; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 29305485EDAF31E35B9184EB523A64F2 /* Pods-GHWBinaryMapSource.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-GHWBinaryMapSource.modulemap"; sourceTree = ""; }; 39 | 2B6E44063A72153AAC9EB928227EA2C4 /* Pods-GHWBinaryMapSource.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GHWBinaryMapSource.debug.xcconfig"; sourceTree = ""; }; 40 | 3212113385A8FBBDB272BD23C409FF61 /* 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; }; 41 | 334432B0B5B3E5C3510E2E91DA60C8BD /* Pods-GHWBinaryMapSource.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GHWBinaryMapSource.release.xcconfig"; sourceTree = ""; }; 42 | 4520C95761A8BD8161E82E24C47B435B /* MapSourceTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapSourceTest.framework; path = Products/MapSourceTest.framework; sourceTree = ""; }; 43 | 644424F6AD166B877D72E24B28C06F36 /* Pods-GHWBinaryMapSource-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-GHWBinaryMapSource-Info.plist"; sourceTree = ""; }; 44 | 6F2F76C23F65C54CE0F4FB477D240C20 /* Pods-GHWBinaryMapSource-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-GHWBinaryMapSource-acknowledgements.markdown"; sourceTree = ""; }; 45 | 87DECE8F1018A6581CD74D343AE3F086 /* Pods-GHWBinaryMapSource-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-GHWBinaryMapSource-dummy.m"; sourceTree = ""; }; 46 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 47 | BAE40A2FA4B38C9AE171CA34D5B43A64 /* Pods-GHWBinaryMapSource-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-GHWBinaryMapSource-acknowledgements.plist"; sourceTree = ""; }; 48 | BBE39A91A406C0797CD82DB9D4B581C0 /* Pods-GHWBinaryMapSource-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-GHWBinaryMapSource-umbrella.h"; sourceTree = ""; }; 49 | DCF015AC15E6D52B5DFB36E5914B97B3 /* BinaryToSource.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = BinaryToSource.xcconfig; sourceTree = ""; }; 50 | E23CBAF8E001293FC076CD8D4A8AD577 /* Pods-GHWBinaryMapSource-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-GHWBinaryMapSource-frameworks.sh"; sourceTree = ""; }; 51 | F03629334FAF2AE98E76BFFEEB6791B2 /* Pods_GHWBinaryMapSource.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_GHWBinaryMapSource.framework; path = "Pods-GHWBinaryMapSource.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | F51EF9DAAE562A8376CC5DF2E7FF8DA8 /* BinaryToSource.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = BinaryToSource.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | E822B29C52CF2FA89BA09C4D869FA5E2 /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | DBC29AAEB5F7355307A07B0FE6F1C90D /* Foundation.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | 49939193440D299DD49BD8DABDDA0E49 /* Targets Support Files */ = { 68 | isa = PBXGroup; 69 | children = ( 70 | 7D9432086CF9253A4E1366E00AE3E5E6 /* Pods-GHWBinaryMapSource */, 71 | ); 72 | name = "Targets Support Files"; 73 | sourceTree = ""; 74 | }; 75 | 513D72294EDA3132ADEE6137399EB136 /* Pod */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | F51EF9DAAE562A8376CC5DF2E7FF8DA8 /* BinaryToSource.podspec */, 79 | ); 80 | name = Pod; 81 | sourceTree = ""; 82 | }; 83 | 7D9432086CF9253A4E1366E00AE3E5E6 /* Pods-GHWBinaryMapSource */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 29305485EDAF31E35B9184EB523A64F2 /* Pods-GHWBinaryMapSource.modulemap */, 87 | 6F2F76C23F65C54CE0F4FB477D240C20 /* Pods-GHWBinaryMapSource-acknowledgements.markdown */, 88 | BAE40A2FA4B38C9AE171CA34D5B43A64 /* Pods-GHWBinaryMapSource-acknowledgements.plist */, 89 | 87DECE8F1018A6581CD74D343AE3F086 /* Pods-GHWBinaryMapSource-dummy.m */, 90 | E23CBAF8E001293FC076CD8D4A8AD577 /* Pods-GHWBinaryMapSource-frameworks.sh */, 91 | 644424F6AD166B877D72E24B28C06F36 /* Pods-GHWBinaryMapSource-Info.plist */, 92 | BBE39A91A406C0797CD82DB9D4B581C0 /* Pods-GHWBinaryMapSource-umbrella.h */, 93 | 2B6E44063A72153AAC9EB928227EA2C4 /* Pods-GHWBinaryMapSource.debug.xcconfig */, 94 | 334432B0B5B3E5C3510E2E91DA60C8BD /* Pods-GHWBinaryMapSource.release.xcconfig */, 95 | ); 96 | name = "Pods-GHWBinaryMapSource"; 97 | path = "Target Support Files/Pods-GHWBinaryMapSource"; 98 | sourceTree = ""; 99 | }; 100 | 7E7809A068B4EFC38A9AE95691DAD4D2 /* Development Pods */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | AE10EF4DFB7066C87C9DB2181C1F3420 /* BinaryToSource */, 104 | ); 105 | name = "Development Pods"; 106 | sourceTree = ""; 107 | }; 108 | 8C7018AD3E85CC446E2A334E0746F059 /* Support Files */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | DCF015AC15E6D52B5DFB36E5914B97B3 /* BinaryToSource.xcconfig */, 112 | ); 113 | name = "Support Files"; 114 | path = "../../Pods/Target Support Files/BinaryToSource"; 115 | sourceTree = ""; 116 | }; 117 | AE10EF4DFB7066C87C9DB2181C1F3420 /* BinaryToSource */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | B967B0197BC91A0FA4B01E57218A333F /* Frameworks */, 121 | 513D72294EDA3132ADEE6137399EB136 /* Pod */, 122 | 8C7018AD3E85CC446E2A334E0746F059 /* Support Files */, 123 | ); 124 | name = BinaryToSource; 125 | path = ../localPods/BinaryToSource; 126 | sourceTree = ""; 127 | }; 128 | B61748BF1B32B418D1F16C4997E18E22 /* Products */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | F03629334FAF2AE98E76BFFEEB6791B2 /* Pods_GHWBinaryMapSource.framework */, 132 | ); 133 | name = Products; 134 | sourceTree = ""; 135 | }; 136 | B967B0197BC91A0FA4B01E57218A333F /* Frameworks */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 4520C95761A8BD8161E82E24C47B435B /* MapSourceTest.framework */, 140 | ); 141 | name = Frameworks; 142 | sourceTree = ""; 143 | }; 144 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 148 | ); 149 | name = iOS; 150 | sourceTree = ""; 151 | }; 152 | CF1408CF629C7361332E53B88F7BD30C = { 153 | isa = PBXGroup; 154 | children = ( 155 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 156 | 7E7809A068B4EFC38A9AE95691DAD4D2 /* Development Pods */, 157 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 158 | B61748BF1B32B418D1F16C4997E18E22 /* Products */, 159 | 49939193440D299DD49BD8DABDDA0E49 /* Targets Support Files */, 160 | ); 161 | sourceTree = ""; 162 | }; 163 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 164 | isa = PBXGroup; 165 | children = ( 166 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 167 | ); 168 | name = Frameworks; 169 | sourceTree = ""; 170 | }; 171 | /* End PBXGroup section */ 172 | 173 | /* Begin PBXHeadersBuildPhase section */ 174 | A2BB2268269F1BF62AE2F9817915D5A8 /* Headers */ = { 175 | isa = PBXHeadersBuildPhase; 176 | buildActionMask = 2147483647; 177 | files = ( 178 | 4558E629DE92F73C649FD20F612D33AB /* Pods-GHWBinaryMapSource-umbrella.h in Headers */, 179 | ); 180 | runOnlyForDeploymentPostprocessing = 0; 181 | }; 182 | /* End PBXHeadersBuildPhase section */ 183 | 184 | /* Begin PBXNativeTarget section */ 185 | A773A06F81C2A6E54B6653AF5D9E586B /* Pods-GHWBinaryMapSource */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = A7ABBB315CFFD8CC62024A6D26C2FB50 /* Build configuration list for PBXNativeTarget "Pods-GHWBinaryMapSource" */; 188 | buildPhases = ( 189 | A2BB2268269F1BF62AE2F9817915D5A8 /* Headers */, 190 | C2343C72FA2644E370B8EA064DC26345 /* Sources */, 191 | E822B29C52CF2FA89BA09C4D869FA5E2 /* Frameworks */, 192 | E6E5E64CF8C4BB64B40C090C1A8A4632 /* Resources */, 193 | ); 194 | buildRules = ( 195 | ); 196 | dependencies = ( 197 | B485724A0442D060D9FC5177365B2406 /* PBXTargetDependency */, 198 | ); 199 | name = "Pods-GHWBinaryMapSource"; 200 | productName = "Pods-GHWBinaryMapSource"; 201 | productReference = F03629334FAF2AE98E76BFFEEB6791B2 /* Pods_GHWBinaryMapSource.framework */; 202 | productType = "com.apple.product-type.framework"; 203 | }; 204 | /* End PBXNativeTarget section */ 205 | 206 | /* Begin PBXProject section */ 207 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 208 | isa = PBXProject; 209 | attributes = { 210 | LastSwiftUpdateCheck = 1100; 211 | LastUpgradeCheck = 1100; 212 | }; 213 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 214 | compatibilityVersion = "Xcode 9.3"; 215 | developmentRegion = en; 216 | hasScannedForEncodings = 0; 217 | knownRegions = ( 218 | en, 219 | ); 220 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 221 | productRefGroup = B61748BF1B32B418D1F16C4997E18E22 /* Products */; 222 | projectDirPath = ""; 223 | projectRoot = ""; 224 | targets = ( 225 | 0060D5B55A144F34A1179D1C51EBB7AD /* BinaryToSource */, 226 | A773A06F81C2A6E54B6653AF5D9E586B /* Pods-GHWBinaryMapSource */, 227 | ); 228 | }; 229 | /* End PBXProject section */ 230 | 231 | /* Begin PBXResourcesBuildPhase section */ 232 | E6E5E64CF8C4BB64B40C090C1A8A4632 /* Resources */ = { 233 | isa = PBXResourcesBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | }; 239 | /* End PBXResourcesBuildPhase section */ 240 | 241 | /* Begin PBXSourcesBuildPhase section */ 242 | C2343C72FA2644E370B8EA064DC26345 /* Sources */ = { 243 | isa = PBXSourcesBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | 663820109A8F39035C8EE8D3E6E418C2 /* Pods-GHWBinaryMapSource-dummy.m in Sources */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXSourcesBuildPhase section */ 251 | 252 | /* Begin PBXTargetDependency section */ 253 | B485724A0442D060D9FC5177365B2406 /* PBXTargetDependency */ = { 254 | isa = PBXTargetDependency; 255 | name = BinaryToSource; 256 | target = 0060D5B55A144F34A1179D1C51EBB7AD /* BinaryToSource */; 257 | targetProxy = 1B8C8AA24EB3911880F4A085B6C0B2E8 /* PBXContainerItemProxy */; 258 | }; 259 | /* End PBXTargetDependency section */ 260 | 261 | /* Begin XCBuildConfiguration section */ 262 | 12AAF878D020361D83DA269637E9297F /* Debug */ = { 263 | isa = XCBuildConfiguration; 264 | baseConfigurationReference = DCF015AC15E6D52B5DFB36E5914B97B3 /* BinaryToSource.xcconfig */; 265 | buildSettings = { 266 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 267 | CODE_SIGN_IDENTITY = "iPhone Developer"; 268 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 269 | LD_RUNPATH_SEARCH_PATHS = ( 270 | "$(inherited)", 271 | "@executable_path/Frameworks", 272 | ); 273 | SDKROOT = iphoneos; 274 | TARGETED_DEVICE_FAMILY = "1,2"; 275 | }; 276 | name = Debug; 277 | }; 278 | 257497152829C177993B5EC99C1D227A /* Release */ = { 279 | isa = XCBuildConfiguration; 280 | buildSettings = { 281 | ALWAYS_SEARCH_USER_PATHS = NO; 282 | CLANG_ANALYZER_NONNULL = YES; 283 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 284 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 285 | CLANG_CXX_LIBRARY = "libc++"; 286 | CLANG_ENABLE_MODULES = YES; 287 | CLANG_ENABLE_OBJC_ARC = YES; 288 | CLANG_ENABLE_OBJC_WEAK = YES; 289 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 290 | CLANG_WARN_BOOL_CONVERSION = YES; 291 | CLANG_WARN_COMMA = YES; 292 | CLANG_WARN_CONSTANT_CONVERSION = YES; 293 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 294 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 295 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 296 | CLANG_WARN_EMPTY_BODY = YES; 297 | CLANG_WARN_ENUM_CONVERSION = YES; 298 | CLANG_WARN_INFINITE_RECURSION = YES; 299 | CLANG_WARN_INT_CONVERSION = YES; 300 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 301 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 302 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 303 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 304 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 305 | CLANG_WARN_STRICT_PROTOTYPES = YES; 306 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 307 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 308 | CLANG_WARN_UNREACHABLE_CODE = YES; 309 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 310 | COPY_PHASE_STRIP = NO; 311 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 312 | ENABLE_NS_ASSERTIONS = NO; 313 | ENABLE_STRICT_OBJC_MSGSEND = YES; 314 | GCC_C_LANGUAGE_STANDARD = gnu11; 315 | GCC_NO_COMMON_BLOCKS = YES; 316 | GCC_PREPROCESSOR_DEFINITIONS = ( 317 | "POD_CONFIGURATION_RELEASE=1", 318 | "$(inherited)", 319 | ); 320 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 321 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 322 | GCC_WARN_UNDECLARED_SELECTOR = YES; 323 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 324 | GCC_WARN_UNUSED_FUNCTION = YES; 325 | GCC_WARN_UNUSED_VARIABLE = YES; 326 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 327 | MTL_ENABLE_DEBUG_INFO = NO; 328 | MTL_FAST_MATH = YES; 329 | PRODUCT_NAME = "$(TARGET_NAME)"; 330 | STRIP_INSTALLED_PRODUCT = NO; 331 | SWIFT_COMPILATION_MODE = wholemodule; 332 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 333 | SWIFT_VERSION = 5.0; 334 | SYMROOT = "${SRCROOT}/../build"; 335 | }; 336 | name = Release; 337 | }; 338 | B0928DCD56CCEA971D424EED883CB85E /* Debug */ = { 339 | isa = XCBuildConfiguration; 340 | baseConfigurationReference = 2B6E44063A72153AAC9EB928227EA2C4 /* Pods-GHWBinaryMapSource.debug.xcconfig */; 341 | buildSettings = { 342 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 343 | CLANG_ENABLE_OBJC_WEAK = NO; 344 | CODE_SIGN_IDENTITY = ""; 345 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 346 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 347 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 348 | CURRENT_PROJECT_VERSION = 1; 349 | DEFINES_MODULE = YES; 350 | DYLIB_COMPATIBILITY_VERSION = 1; 351 | DYLIB_CURRENT_VERSION = 1; 352 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 353 | INFOPLIST_FILE = "Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-Info.plist"; 354 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 355 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 356 | LD_RUNPATH_SEARCH_PATHS = ( 357 | "$(inherited)", 358 | "@executable_path/Frameworks", 359 | "@loader_path/Frameworks", 360 | ); 361 | MACH_O_TYPE = staticlib; 362 | MODULEMAP_FILE = "Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource.modulemap"; 363 | OTHER_LDFLAGS = ""; 364 | OTHER_LIBTOOLFLAGS = ""; 365 | PODS_ROOT = "$(SRCROOT)"; 366 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 367 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 368 | SDKROOT = iphoneos; 369 | SKIP_INSTALL = YES; 370 | TARGETED_DEVICE_FAMILY = "1,2"; 371 | VERSIONING_SYSTEM = "apple-generic"; 372 | VERSION_INFO_PREFIX = ""; 373 | }; 374 | name = Debug; 375 | }; 376 | C88BF8CCC4CBB2D1AC9681D93794857C /* Release */ = { 377 | isa = XCBuildConfiguration; 378 | baseConfigurationReference = DCF015AC15E6D52B5DFB36E5914B97B3 /* BinaryToSource.xcconfig */; 379 | buildSettings = { 380 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 381 | CODE_SIGN_IDENTITY = "iPhone Developer"; 382 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 383 | LD_RUNPATH_SEARCH_PATHS = ( 384 | "$(inherited)", 385 | "@executable_path/Frameworks", 386 | ); 387 | SDKROOT = iphoneos; 388 | TARGETED_DEVICE_FAMILY = "1,2"; 389 | VALIDATE_PRODUCT = YES; 390 | }; 391 | name = Release; 392 | }; 393 | C8DE20DF3195799946B84D31505C442C /* Release */ = { 394 | isa = XCBuildConfiguration; 395 | baseConfigurationReference = 334432B0B5B3E5C3510E2E91DA60C8BD /* Pods-GHWBinaryMapSource.release.xcconfig */; 396 | buildSettings = { 397 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 398 | CLANG_ENABLE_OBJC_WEAK = NO; 399 | CODE_SIGN_IDENTITY = ""; 400 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 401 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 402 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 403 | CURRENT_PROJECT_VERSION = 1; 404 | DEFINES_MODULE = YES; 405 | DYLIB_COMPATIBILITY_VERSION = 1; 406 | DYLIB_CURRENT_VERSION = 1; 407 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 408 | INFOPLIST_FILE = "Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-Info.plist"; 409 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 410 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 411 | LD_RUNPATH_SEARCH_PATHS = ( 412 | "$(inherited)", 413 | "@executable_path/Frameworks", 414 | "@loader_path/Frameworks", 415 | ); 416 | MACH_O_TYPE = staticlib; 417 | MODULEMAP_FILE = "Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource.modulemap"; 418 | OTHER_LDFLAGS = ""; 419 | OTHER_LIBTOOLFLAGS = ""; 420 | PODS_ROOT = "$(SRCROOT)"; 421 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 422 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 423 | SDKROOT = iphoneos; 424 | SKIP_INSTALL = YES; 425 | TARGETED_DEVICE_FAMILY = "1,2"; 426 | VALIDATE_PRODUCT = YES; 427 | VERSIONING_SYSTEM = "apple-generic"; 428 | VERSION_INFO_PREFIX = ""; 429 | }; 430 | name = Release; 431 | }; 432 | DD8F832993327D1DD8046C3CBCBD97CD /* Debug */ = { 433 | isa = XCBuildConfiguration; 434 | buildSettings = { 435 | ALWAYS_SEARCH_USER_PATHS = NO; 436 | CLANG_ANALYZER_NONNULL = YES; 437 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 438 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 439 | CLANG_CXX_LIBRARY = "libc++"; 440 | CLANG_ENABLE_MODULES = YES; 441 | CLANG_ENABLE_OBJC_ARC = YES; 442 | CLANG_ENABLE_OBJC_WEAK = YES; 443 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 444 | CLANG_WARN_BOOL_CONVERSION = YES; 445 | CLANG_WARN_COMMA = YES; 446 | CLANG_WARN_CONSTANT_CONVERSION = YES; 447 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 448 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 449 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 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_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 462 | CLANG_WARN_UNREACHABLE_CODE = YES; 463 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 464 | COPY_PHASE_STRIP = NO; 465 | DEBUG_INFORMATION_FORMAT = dwarf; 466 | ENABLE_STRICT_OBJC_MSGSEND = YES; 467 | ENABLE_TESTABILITY = YES; 468 | GCC_C_LANGUAGE_STANDARD = gnu11; 469 | GCC_DYNAMIC_NO_PIC = NO; 470 | GCC_NO_COMMON_BLOCKS = YES; 471 | GCC_OPTIMIZATION_LEVEL = 0; 472 | GCC_PREPROCESSOR_DEFINITIONS = ( 473 | "POD_CONFIGURATION_DEBUG=1", 474 | "DEBUG=1", 475 | "$(inherited)", 476 | ); 477 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 478 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 479 | GCC_WARN_UNDECLARED_SELECTOR = YES; 480 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 481 | GCC_WARN_UNUSED_FUNCTION = YES; 482 | GCC_WARN_UNUSED_VARIABLE = YES; 483 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 484 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 485 | MTL_FAST_MATH = YES; 486 | ONLY_ACTIVE_ARCH = YES; 487 | PRODUCT_NAME = "$(TARGET_NAME)"; 488 | STRIP_INSTALLED_PRODUCT = NO; 489 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 490 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 491 | SWIFT_VERSION = 5.0; 492 | SYMROOT = "${SRCROOT}/../build"; 493 | }; 494 | name = Debug; 495 | }; 496 | /* End XCBuildConfiguration section */ 497 | 498 | /* Begin XCConfigurationList section */ 499 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 500 | isa = XCConfigurationList; 501 | buildConfigurations = ( 502 | DD8F832993327D1DD8046C3CBCBD97CD /* Debug */, 503 | 257497152829C177993B5EC99C1D227A /* Release */, 504 | ); 505 | defaultConfigurationIsVisible = 0; 506 | defaultConfigurationName = Release; 507 | }; 508 | A7ABBB315CFFD8CC62024A6D26C2FB50 /* Build configuration list for PBXNativeTarget "Pods-GHWBinaryMapSource" */ = { 509 | isa = XCConfigurationList; 510 | buildConfigurations = ( 511 | B0928DCD56CCEA971D424EED883CB85E /* Debug */, 512 | C8DE20DF3195799946B84D31505C442C /* Release */, 513 | ); 514 | defaultConfigurationIsVisible = 0; 515 | defaultConfigurationName = Release; 516 | }; 517 | E958F2DB0CEAA7D9DCC847AF6F8739FC /* Build configuration list for PBXAggregateTarget "BinaryToSource" */ = { 518 | isa = XCConfigurationList; 519 | buildConfigurations = ( 520 | 12AAF878D020361D83DA269637E9297F /* Debug */, 521 | C88BF8CCC4CBB2D1AC9681D93794857C /* Release */, 522 | ); 523 | defaultConfigurationIsVisible = 0; 524 | defaultConfigurationName = Release; 525 | }; 526 | /* End XCConfigurationList section */ 527 | }; 528 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 529 | } 530 | -------------------------------------------------------------------------------- /Pods/Target Support Files/BinaryToSource/BinaryToSource.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/BinaryToSource 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/../localPods/BinaryToSource/Products" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../localPods/BinaryToSource 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-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 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-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 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_GHWBinaryMapSource : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_GHWBinaryMapSource 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-frameworks-Debug-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-frameworks.sh 2 | ${PODS_ROOT}/../localPods/BinaryToSource/Products/MapSourceTest.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-frameworks-Debug-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapSourceTest.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-frameworks-Release-input-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${PODS_ROOT}/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-frameworks.sh 2 | ${PODS_ROOT}/../localPods/BinaryToSource/Products/MapSourceTest.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-frameworks-Release-output-files.xcfilelist: -------------------------------------------------------------------------------- 1 | ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MapSourceTest.framework -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-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 "${PODS_ROOT}/../localPods/BinaryToSource/Products/MapSourceTest.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${PODS_ROOT}/../localPods/BinaryToSource/Products/MapSourceTest.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource-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_GHWBinaryMapSourceVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_GHWBinaryMapSourceVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/../localPods/BinaryToSource/Products" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iframework "${PODS_ROOT}/../localPods/BinaryToSource/Products" 5 | OTHER_LDFLAGS = $(inherited) -framework "MapSourceTest" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_GHWBinaryMapSource { 2 | umbrella header "Pods-GHWBinaryMapSource-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GHWBinaryMapSource/Pods-GHWBinaryMapSource.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/../localPods/BinaryToSource/Products" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iframework "${PODS_ROOT}/../localPods/BinaryToSource/Products" 5 | OTHER_LDFLAGS = $(inherited) -framework "MapSourceTest" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 使用 Python 和 LLDB 解决二进制 Pod 到源码映射问题并实现单步调试 2 | 3 | ### 目录 4 | 5 | [前言](https://github.com/guohongwei719/GHWBinaryMapSource#%E5%89%8D%E8%A8%80) 6 | [基本原理](https://github.com/guohongwei719/GHWBinaryMapSource#%E5%9F%BA%E6%9C%AC%E5%8E%9F%E7%90%86) 7 | [技术实现](https://github.com/guohongwei719/GHWBinaryMapSource#%E6%8A%80%E6%9C%AF%E5%AE%9E%E7%8E%B0) 8 |     [一. LLDB 命令](https://github.com/guohongwei719/GHWBinaryMapSource#%E4%B8%80-lldb-%E5%91%BD%E4%BB%A4) 9 |         [image lookup -v --address](https://github.com/guohongwei719/GHWBinaryMapSource#image-lookup--v---address) 10 |         [settings set target.source-map](https://github.com/guohongwei719/GHWBinaryMapSource#settings-set-targetsource-map) 11 |     [二. Python 定制 LLDB 命令](https://github.com/guohongwei719/GHWBinaryMapSource#%E4%BA%8C-python-%E5%AE%9A%E5%88%B6-lldb-%E5%91%BD%E4%BB%A4) 12 | [实际操作流程](https://github.com/guohongwei719/GHWBinaryMapSource#%E5%AE%9E%E9%99%85%E6%93%8D%E4%BD%9C%E6%B5%81%E7%A8%8B) 13 | [后记](https://github.com/guohongwei719/GHWBinaryMapSource#%E5%90%8E%E8%AE%B0) 14 | 15 | 16 | ## 前言 17 | 18 | 随着公司业务不断发展,组件化已经成为趋势,大多都是将各个组件拆分为一个个 Pod,然后通过 Podfile 集成到一起。为了加快编译速度,很多 Pod 组件都会做出二进制的形式,提前编译好,然而这样又带来一个问题就是如果二进制 Pod 中发生 crash 的话,我们得到的只能是一些看不懂的汇编代码,无法单步调试。本文的方案可以解决这个问题,实现二进制到源码的映射,同时能够实现单步调试。 19 | 20 | 整个操作流程如下 21 | 22 | ![](resources/7.gif) 23 | 24 | 25 | 26 | ## 基本原理 27 | 28 | 二进制 Pod 里面保存有编译时的文件路径,断点调试其实就是根据这个文件路径来找到对应源码的,可以通过 LLDB 命令找到这个编译时的源码文件路径,找到对应的文件名字和对应的组件,如果本地没有对应组件就从仓库下载下来,然后找到本地的对应源码文件路径,demo 中我是直接将源码文件放到 /localPods/MapSourceTest 下面。编译路径和本地源码路径获取到以后保存到本地的 path.txt 文件中,下次在断点之前从 path.txt 文件中读出这两个路径,使用 LLDB 命令将编译时的路径替换为本地源码路径就好,然后进入下一步就可以单步调试了。 29 | 30 | 美团有一篇文章也是讲二进制 Pod 调试的,[美团 iOS 工程 zsource 命令背后的那些事儿](https://mp.weixin.qq.com/s?__biz=MjM5NjQ5MTI5OA==&mid=2651750501&idx=2&sn=6af75f39a08bc26b0b67acc266adfa59&chksm=bd1259288a65d03ebc028367739f1c14643045a3b1c28699b641126659ebbad250d886a54385&scene=21#wechat_redirect) 31 | 相比而言本方案有几个优点如下: 32 | 33 | - 使用苹果自带工具链,不依赖 pod,门槛低,具备通用性; 34 | - 不需要源码路径跟编译路径保持一致; 35 | - 直接在 Xcode 控制台操作,不需要切换到终端,体验友好。 36 | 37 | ## 技术实现 38 | ### 一. LLDB 命令 39 | 40 | #### image lookup -v --address 41 | 42 | 43 | LLDB 有很多方便调试的强大的命令,比如查看符号地址所在编译模块信息 44 | 45 | ``` 46 | image lookup -v --address 0x1010d7dc2 47 | ``` 48 | 输出内容如下: 49 | 50 | ``` 51 | Address: MapSourceTest[0x0000000000000dc2] (MapSourceTest.__TEXT.__text + 178) 52 | Summary: MapSourceTest`-[GHWMapSourceTest testFail] + 178 at GHWMapSourceTest.m:18:25 53 | Module: file = "/Users/guohongwei719/Library/Developer/Xcode/DerivedData/GHWBinaryMapSource-dlmtihzqvwjdjgeckvxjxhciwtog/Build/Products/Debug-iphonesimulator/GHWBinaryMapSource.app/Frameworks/MapSourceTest.framework/MapSourceTest", arch = "x86_64" 54 | CompileUnit: id = {0x00000000}, file = "/Users/guohongwei719/Desktop/MapSourceTest/MapSourceTest/GHWMapSourceTest.m", language = "objective-c" 55 | Function: id = {0x100000090}, name = "-[GHWMapSourceTest testFail]", range = [0x00000001010d7d10-0x00000001010d7e51) 56 | FuncType: id = {0x100000090}, decl = GHWMapSourceTest.m:13, compiler_type = "void (void)" 57 | Blocks: id = {0x100000090}, range = [0x1010d7d10-0x1010d7e51) 58 | LineEntry: [0x00000001010d7dae-0x00000001010d7dd1): /Users/guohongwei719/Desktop/MapSourceTest/MapSourceTest/GHWMapSourceTest.m:18:25 59 | Symbol: id = {0x00000004}, range = [0x00000001010d7d10-0x00000001010d7e60), name="-[GHWMapSourceTest testFail]" 60 | Variable: id = {0x1000000a9}, name = "self", type = "GHWMapSourceTest *const", location = DW_OP_fbreg(-24), decl = 61 | Variable: id = {0x1000000b5}, name = "_cmd", type = "SEL", location = DW_OP_fbreg(-32), decl = 62 | Variable: id = {0x1000000c1}, name = "array", type = "NSArray *", location = DW_OP_fbreg(-40), decl = GHWMapSourceTest.m:17 63 | ``` 64 | 65 | 从输出内容可以通过看到编译源文件路径相关信息,可以通过正则表达式找出来。 66 | 67 | #### settings set target.source-map 68 | 69 | LLDB 还有个强大的命令可以将编译源码路径与当前源码位置映射 70 | 71 | ``` 72 | settings set target.source-map 编译源码文件路径 本地源码文件路径 73 | ``` 74 | 75 | ### 二. Python 定制 LLDB 命令 76 | 77 | 既然 LLDB 里面已经有了我们功能相关的核心命令,直接敲 LLDB 命令就可以搞定我们需求了,理论上是这样的。但是人生苦短,敲这么多命令太累,有没有更简单的办法呢,有,Python 登场了。 78 | 79 | Python 的库很多,所以功能强大,也有 LLDB 相关的模块,就叫 lldb,在 Python 文件头部 import 即可,引入 lldb 模块来与调试器交互获取各种信息,比如命令的参数等。 80 | 81 | ``` 82 | import lldb 83 | import re 84 | import os 85 | ``` 86 | 87 | 在 Python 代码里面如何执行 LLDB 命令呢,看如下代码 88 | 89 | ``` 90 | // 获取 lldb 的命令交互环境,可以动态执行一些命令,比如 po obj 91 | interpreter = lldb.debugger.GetCommandInterpreter() 92 | 93 | // 创建一个对象,命令执行结果会通过该对象保存 94 | returnObject = lldb.SBCommandReturnObject() 95 | 96 | // 通过 image loopup 命令查找输入符号地址所在的编译模块信息 97 | interpreter.HandleCommand('image lookup -v --address ' + command, returnObject) 98 | 99 | // 获取返回结果 100 | output = returnObject.GetOutput(); 101 | print('output: ' + output) 102 | ``` 103 | 104 | 既然 Python 能帮我们执行这些 LLDB 命令,解决我们需求,那么如何自定义一个 LLDB 命令,在控制台输入的时候能够自动执行一个 Python 文件里面代码呢? 105 | 106 | LLDB 有一个非常好用的函数叫 lldb_init_module。一旦 Python 模块被加载到 LLDB 中时它就会被调用。这意味着你可以在这个函数里面把你的自定义命令安装到 LLDB 里面去,我这里 Python 文件名是 GHWBinaryMapSource.py,命令叫 gMapSource。 107 | 108 | Python 文件中的 _lldb_init_module 函数如下 109 | 110 | ``` 111 | def __lldb_init_module(debugger, internal_dict): 112 | debugger.HandleCommand('command script add gMapSource -f GHWBinaryMapSource.gMapSource') 113 | ``` 114 | 115 | 这样就添加了一个扩展命令 gMapSource,在 lldb 控制台输入 gMapSource 0x1010d7dc2 时,会执行 GHWBinaryMapSource.py 文件的 gMapSource 方法。 116 | 117 | Python 文件准备好了,如何更方便的加载到 LLDB 中呢,也就是说如何更快导入进来,以后每次打开 Xcode 都可以用这个命令呢。 118 | 119 | 在你的 home 目录下可以找到这个文件 .lldbinit,如下图 120 | 121 | ![](resources/1.png) 122 | 123 | 在 .lldbinit 文件中添加如下代码, import 我们的脚本代码,当然要修改为你自己的路径。 124 | 125 | ``` 126 | command script import /Users/guohongwei719/Desktop/GHWBinaryMapSource/script/GHWBinaryMapSource.py 127 | ``` 128 | 129 | 以后每次启动都会 LLDB 都可以使用这个命令了。 130 | 131 | 132 | ### 实际操作流程 133 | 134 | 1. demo clone 下来,去修改 ~/.lldbinit 文件,添加 GHWBinaryMapSource.py,注意路径改为自己本地路径 135 | 136 | 2. 修改 GHWBinaryMapSource.py 文件,将代码中的 /Users/guohongwei719/Desktop/GHWBinaryMapSource/script/path.txt 替换为你自己的路径,/Users/guohongwei719/Desktop/GHWBinaryMapSource/localPods/BinaryToSource 也要替换为你自己的路径。 137 | 138 | 3. 运行demo,配置好 Breakpoint,如下图,不然崩溃以后直接到 main 函数了,连崩溃的汇编代码都看不到 139 | ![](resources/2.png) 140 | 141 | 4. 点击界面的蓝色按钮,不出意外的话会出现类似下面的崩溃界面 142 | ![](resources/3.png) 143 | 复制对应行的地址信息,到控制台敲我们自定义的命令 144 | ``` 145 | (lldb) gMapSource 0x106516dc2 146 | ``` 147 | 这样崩溃地址的编译源码文件路径和本地源码文件路径就写入到 path.txt 文件中了,继续往下运行,可以看到对应崩溃源码位置,打上断点。 148 | 149 | 5. 在进入崩溃二进制 Pod 之前打断点,重新运行项目,运行到断点位置,执行我们的自定义命令 gMapSource,此时不带参数,这样会自动读取 path.txt 中上一步写入的路径信息,将编译路径和本地源码路径进行映射。 150 | 151 | 6. 继续往下执行,不出意外就可以看到运行到崩溃位置之前断点位置,此时此刻就可以进行单步调试了。如下图 152 | 153 | ![](resources/4.png) 154 | 155 | 156 | ## 后记 157 | 158 | 欢迎提一起探讨技术问题,觉得可以给我点个 star,谢谢。 159 | 微博:[黑化肥发灰11](https://weibo.com/u/2977255324) 160 | 简书地址:[https://www.jianshu.com/u/fb5591dbd1bf](https://www.jianshu.com/u/fb5591dbd1bf) 161 | 掘金地址:[https://juejin.im/user/595b50896fb9a06ba82d14d4](https://juejin.im/user/595b50896fb9a06ba82d14d4) 162 | 163 | 164 | -------------------------------------------------------------------------------- /localPods/BinaryToSource/BinaryToSource.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint GHWPodDemo.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 = 'BinaryToSource' 11 | s.version = '0.1.0' 12 | s.summary = 'my demo pod' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | TODO: Add long description of the pod here. 22 | DESC 23 | 24 | s.homepage = 'https://github.com/guohongwei719/BinaryToSource' 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'guohongwei719' => 'guohongwei04441@hellobike.com' } 28 | s.source = { :git => 'https://github.com/guohongwei719/BinaryToSource.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '8.0' 32 | s.vendored_frameworks = 'Products/*.framework' 33 | # s.source_files = 'GHWPodDemo/Classes/**/*' 34 | # s.public_header_files = 'GHWPodDemo/Classes/**/*.h' 35 | 36 | # s.resource_bundles = { 37 | # 'GHWPodDemo' => ['GHWPodDemo/Assets/*.png'] 38 | # } 39 | 40 | # s.frameworks = 'UIKit', 'MapKit' 41 | # s.dependency 'AFNetworking', '~> 2.3' 42 | end 43 | -------------------------------------------------------------------------------- /localPods/BinaryToSource/Products/MapSourceTest.framework/Headers/GHWMapSourceTest.h: -------------------------------------------------------------------------------- 1 | // 2 | // GHWMapSourceTest.h 3 | // MapSourceTest 4 | // 5 | // Created by 郭宏伟 on 2019/8/25. 6 | // Copyright © 2019 Jingyao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface GHWMapSourceTest : NSObject 14 | 15 | - (void)testFail; 16 | 17 | - (void)testSuccess; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /localPods/BinaryToSource/Products/MapSourceTest.framework/Headers/MapSourceTest.h: -------------------------------------------------------------------------------- 1 | // 2 | // MapSourceTest.h 3 | // MapSourceTest 4 | // 5 | // Created by 郭宏伟 on 2019/8/25. 6 | // Copyright © 2019 Jingyao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for MapSourceTest. 12 | FOUNDATION_EXPORT double MapSourceTestVersionNumber; 13 | 14 | //! Project version string for MapSourceTest. 15 | FOUNDATION_EXPORT const unsigned char MapSourceTestVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | #import 20 | -------------------------------------------------------------------------------- /localPods/BinaryToSource/Products/MapSourceTest.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohongwei719/GHWBinaryMapSource/2f1a4cc20759cdbdb7ba48093431de1340b65655/localPods/BinaryToSource/Products/MapSourceTest.framework/Info.plist -------------------------------------------------------------------------------- /localPods/BinaryToSource/Products/MapSourceTest.framework/MapSourceTest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohongwei719/GHWBinaryMapSource/2f1a4cc20759cdbdb7ba48093431de1340b65655/localPods/BinaryToSource/Products/MapSourceTest.framework/MapSourceTest -------------------------------------------------------------------------------- /localPods/BinaryToSource/Products/MapSourceTest.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module MapSourceTest { 2 | umbrella header "MapSourceTest.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /localPods/MapSourceTest/MapSourceTest.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | ED5E1AEC232A7CCF00283CC4 /* GHWMapSourceTest.h in Headers */ = {isa = PBXBuildFile; fileRef = EDB7662F23124EEE00E77251 /* GHWMapSourceTest.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | EDB7663323124FA700E77251 /* GHWMapSourceTest.m in Sources */ = {isa = PBXBuildFile; fileRef = EDB7663023124EEE00E77251 /* GHWMapSourceTest.m */; }; 12 | EDDECC21232A7ACF005E570D /* MapSourceTest.h in Headers */ = {isa = PBXBuildFile; fileRef = EDB7662723124ED500E77251 /* MapSourceTest.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | /* End PBXBuildFile section */ 14 | 15 | /* Begin PBXFileReference section */ 16 | EDB7662423124ED500E77251 /* MapSourceTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MapSourceTest.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 17 | EDB7662723124ED500E77251 /* MapSourceTest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MapSourceTest.h; sourceTree = ""; }; 18 | EDB7662823124ED500E77251 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 19 | EDB7662F23124EEE00E77251 /* GHWMapSourceTest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GHWMapSourceTest.h; sourceTree = ""; }; 20 | EDB7663023124EEE00E77251 /* GHWMapSourceTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GHWMapSourceTest.m; sourceTree = ""; }; 21 | /* End PBXFileReference section */ 22 | 23 | /* Begin PBXFrameworksBuildPhase section */ 24 | EDB7662123124ED500E77251 /* Frameworks */ = { 25 | isa = PBXFrameworksBuildPhase; 26 | buildActionMask = 2147483647; 27 | files = ( 28 | ); 29 | runOnlyForDeploymentPostprocessing = 0; 30 | }; 31 | /* End PBXFrameworksBuildPhase section */ 32 | 33 | /* Begin PBXGroup section */ 34 | EDB7661A23124ED500E77251 = { 35 | isa = PBXGroup; 36 | children = ( 37 | EDB7662623124ED500E77251 /* MapSourceTest */, 38 | EDB7662523124ED500E77251 /* Products */, 39 | ); 40 | sourceTree = ""; 41 | }; 42 | EDB7662523124ED500E77251 /* Products */ = { 43 | isa = PBXGroup; 44 | children = ( 45 | EDB7662423124ED500E77251 /* MapSourceTest.framework */, 46 | ); 47 | name = Products; 48 | sourceTree = ""; 49 | }; 50 | EDB7662623124ED500E77251 /* MapSourceTest */ = { 51 | isa = PBXGroup; 52 | children = ( 53 | EDB7662723124ED500E77251 /* MapSourceTest.h */, 54 | EDB7662823124ED500E77251 /* Info.plist */, 55 | EDB7662F23124EEE00E77251 /* GHWMapSourceTest.h */, 56 | EDB7663023124EEE00E77251 /* GHWMapSourceTest.m */, 57 | ); 58 | path = MapSourceTest; 59 | sourceTree = ""; 60 | }; 61 | /* End PBXGroup section */ 62 | 63 | /* Begin PBXHeadersBuildPhase section */ 64 | EDB7661F23124ED500E77251 /* Headers */ = { 65 | isa = PBXHeadersBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | EDDECC21232A7ACF005E570D /* MapSourceTest.h in Headers */, 69 | ED5E1AEC232A7CCF00283CC4 /* GHWMapSourceTest.h in Headers */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | /* End PBXHeadersBuildPhase section */ 74 | 75 | /* Begin PBXNativeTarget section */ 76 | EDB7662323124ED500E77251 /* MapSourceTest */ = { 77 | isa = PBXNativeTarget; 78 | buildConfigurationList = EDB7662C23124ED500E77251 /* Build configuration list for PBXNativeTarget "MapSourceTest" */; 79 | buildPhases = ( 80 | EDB7661F23124ED500E77251 /* Headers */, 81 | EDB7662023124ED500E77251 /* Sources */, 82 | EDB7662123124ED500E77251 /* Frameworks */, 83 | EDB7662223124ED500E77251 /* Resources */, 84 | ); 85 | buildRules = ( 86 | ); 87 | dependencies = ( 88 | ); 89 | name = MapSourceTest; 90 | productName = MapSourceTest; 91 | productReference = EDB7662423124ED500E77251 /* MapSourceTest.framework */; 92 | productType = "com.apple.product-type.framework"; 93 | }; 94 | /* End PBXNativeTarget section */ 95 | 96 | /* Begin PBXProject section */ 97 | EDB7661B23124ED500E77251 /* Project object */ = { 98 | isa = PBXProject; 99 | attributes = { 100 | LastUpgradeCheck = 1020; 101 | ORGANIZATIONNAME = Jingyao; 102 | TargetAttributes = { 103 | EDB7662323124ED500E77251 = { 104 | CreatedOnToolsVersion = 10.2.1; 105 | }; 106 | }; 107 | }; 108 | buildConfigurationList = EDB7661E23124ED500E77251 /* Build configuration list for PBXProject "MapSourceTest" */; 109 | compatibilityVersion = "Xcode 9.3"; 110 | developmentRegion = en; 111 | hasScannedForEncodings = 0; 112 | knownRegions = ( 113 | en, 114 | ); 115 | mainGroup = EDB7661A23124ED500E77251; 116 | productRefGroup = EDB7662523124ED500E77251 /* Products */; 117 | projectDirPath = ""; 118 | projectRoot = ""; 119 | targets = ( 120 | EDB7662323124ED500E77251 /* MapSourceTest */, 121 | ); 122 | }; 123 | /* End PBXProject section */ 124 | 125 | /* Begin PBXResourcesBuildPhase section */ 126 | EDB7662223124ED500E77251 /* Resources */ = { 127 | isa = PBXResourcesBuildPhase; 128 | buildActionMask = 2147483647; 129 | files = ( 130 | ); 131 | runOnlyForDeploymentPostprocessing = 0; 132 | }; 133 | /* End PBXResourcesBuildPhase section */ 134 | 135 | /* Begin PBXSourcesBuildPhase section */ 136 | EDB7662023124ED500E77251 /* Sources */ = { 137 | isa = PBXSourcesBuildPhase; 138 | buildActionMask = 2147483647; 139 | files = ( 140 | EDB7663323124FA700E77251 /* GHWMapSourceTest.m in Sources */, 141 | ); 142 | runOnlyForDeploymentPostprocessing = 0; 143 | }; 144 | /* End PBXSourcesBuildPhase section */ 145 | 146 | /* Begin XCBuildConfiguration section */ 147 | EDB7662A23124ED500E77251 /* Debug */ = { 148 | isa = XCBuildConfiguration; 149 | buildSettings = { 150 | ALWAYS_SEARCH_USER_PATHS = NO; 151 | CLANG_ANALYZER_NONNULL = YES; 152 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 153 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 154 | CLANG_CXX_LIBRARY = "libc++"; 155 | CLANG_ENABLE_MODULES = YES; 156 | CLANG_ENABLE_OBJC_ARC = YES; 157 | CLANG_ENABLE_OBJC_WEAK = YES; 158 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 159 | CLANG_WARN_BOOL_CONVERSION = YES; 160 | CLANG_WARN_COMMA = YES; 161 | CLANG_WARN_CONSTANT_CONVERSION = YES; 162 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 163 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 164 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 165 | CLANG_WARN_EMPTY_BODY = YES; 166 | CLANG_WARN_ENUM_CONVERSION = YES; 167 | CLANG_WARN_INFINITE_RECURSION = YES; 168 | CLANG_WARN_INT_CONVERSION = YES; 169 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 170 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 171 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 172 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 173 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 174 | CLANG_WARN_STRICT_PROTOTYPES = YES; 175 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 176 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 177 | CLANG_WARN_UNREACHABLE_CODE = YES; 178 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 179 | CODE_SIGN_IDENTITY = "iPhone Developer"; 180 | COPY_PHASE_STRIP = NO; 181 | CURRENT_PROJECT_VERSION = 1; 182 | DEBUG_INFORMATION_FORMAT = dwarf; 183 | ENABLE_STRICT_OBJC_MSGSEND = YES; 184 | ENABLE_TESTABILITY = YES; 185 | GCC_C_LANGUAGE_STANDARD = gnu11; 186 | GCC_DYNAMIC_NO_PIC = NO; 187 | GCC_NO_COMMON_BLOCKS = YES; 188 | GCC_OPTIMIZATION_LEVEL = 0; 189 | GCC_PREPROCESSOR_DEFINITIONS = ( 190 | "DEBUG=1", 191 | "$(inherited)", 192 | ); 193 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 194 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 195 | GCC_WARN_UNDECLARED_SELECTOR = YES; 196 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 197 | GCC_WARN_UNUSED_FUNCTION = YES; 198 | GCC_WARN_UNUSED_VARIABLE = YES; 199 | IPHONEOS_DEPLOYMENT_TARGET = 12.2; 200 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 201 | MTL_FAST_MATH = YES; 202 | ONLY_ACTIVE_ARCH = NO; 203 | SDKROOT = iphoneos; 204 | VERSIONING_SYSTEM = "apple-generic"; 205 | VERSION_INFO_PREFIX = ""; 206 | }; 207 | name = Debug; 208 | }; 209 | EDB7662B23124ED500E77251 /* Release */ = { 210 | isa = XCBuildConfiguration; 211 | buildSettings = { 212 | ALWAYS_SEARCH_USER_PATHS = NO; 213 | CLANG_ANALYZER_NONNULL = YES; 214 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 215 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 216 | CLANG_CXX_LIBRARY = "libc++"; 217 | CLANG_ENABLE_MODULES = YES; 218 | CLANG_ENABLE_OBJC_ARC = YES; 219 | CLANG_ENABLE_OBJC_WEAK = YES; 220 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 221 | CLANG_WARN_BOOL_CONVERSION = YES; 222 | CLANG_WARN_COMMA = YES; 223 | CLANG_WARN_CONSTANT_CONVERSION = YES; 224 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 225 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 226 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 227 | CLANG_WARN_EMPTY_BODY = YES; 228 | CLANG_WARN_ENUM_CONVERSION = YES; 229 | CLANG_WARN_INFINITE_RECURSION = YES; 230 | CLANG_WARN_INT_CONVERSION = YES; 231 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 232 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 233 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 234 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 235 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 236 | CLANG_WARN_STRICT_PROTOTYPES = YES; 237 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 238 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 239 | CLANG_WARN_UNREACHABLE_CODE = YES; 240 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 241 | CODE_SIGN_IDENTITY = "iPhone Developer"; 242 | COPY_PHASE_STRIP = NO; 243 | CURRENT_PROJECT_VERSION = 1; 244 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 245 | ENABLE_NS_ASSERTIONS = NO; 246 | ENABLE_STRICT_OBJC_MSGSEND = YES; 247 | GCC_C_LANGUAGE_STANDARD = gnu11; 248 | GCC_NO_COMMON_BLOCKS = YES; 249 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 250 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 251 | GCC_WARN_UNDECLARED_SELECTOR = YES; 252 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 253 | GCC_WARN_UNUSED_FUNCTION = YES; 254 | GCC_WARN_UNUSED_VARIABLE = YES; 255 | IPHONEOS_DEPLOYMENT_TARGET = 12.2; 256 | MTL_ENABLE_DEBUG_INFO = NO; 257 | MTL_FAST_MATH = YES; 258 | ONLY_ACTIVE_ARCH = NO; 259 | SDKROOT = iphoneos; 260 | VALIDATE_PRODUCT = YES; 261 | VERSIONING_SYSTEM = "apple-generic"; 262 | VERSION_INFO_PREFIX = ""; 263 | }; 264 | name = Release; 265 | }; 266 | EDB7662D23124ED500E77251 /* Debug */ = { 267 | isa = XCBuildConfiguration; 268 | buildSettings = { 269 | CODE_SIGN_IDENTITY = ""; 270 | CODE_SIGN_STYLE = Automatic; 271 | DEFINES_MODULE = YES; 272 | DEVELOPMENT_TEAM = 2HMG43AYW9; 273 | DYLIB_COMPATIBILITY_VERSION = 1; 274 | DYLIB_CURRENT_VERSION = 1; 275 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 276 | INFOPLIST_FILE = MapSourceTest/Info.plist; 277 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 278 | LD_RUNPATH_SEARCH_PATHS = ( 279 | "$(inherited)", 280 | "@executable_path/Frameworks", 281 | "@loader_path/Frameworks", 282 | ); 283 | MACH_O_TYPE = mh_dylib; 284 | OTHER_CFLAGS = "-fembed-bitcode"; 285 | PRODUCT_BUNDLE_IDENTIFIER = com.jingyao.MapSourceTest; 286 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 287 | SKIP_INSTALL = YES; 288 | TARGETED_DEVICE_FAMILY = "1,2"; 289 | }; 290 | name = Debug; 291 | }; 292 | EDB7662E23124ED500E77251 /* Release */ = { 293 | isa = XCBuildConfiguration; 294 | buildSettings = { 295 | CODE_SIGN_IDENTITY = ""; 296 | CODE_SIGN_STYLE = Automatic; 297 | DEFINES_MODULE = YES; 298 | DEVELOPMENT_TEAM = 2HMG43AYW9; 299 | DYLIB_COMPATIBILITY_VERSION = 1; 300 | DYLIB_CURRENT_VERSION = 1; 301 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 302 | INFOPLIST_FILE = MapSourceTest/Info.plist; 303 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 304 | LD_RUNPATH_SEARCH_PATHS = ( 305 | "$(inherited)", 306 | "@executable_path/Frameworks", 307 | "@loader_path/Frameworks", 308 | ); 309 | MACH_O_TYPE = mh_dylib; 310 | OTHER_CFLAGS = "-fembed-bitcode"; 311 | PRODUCT_BUNDLE_IDENTIFIER = com.jingyao.MapSourceTest; 312 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 313 | SKIP_INSTALL = YES; 314 | TARGETED_DEVICE_FAMILY = "1,2"; 315 | }; 316 | name = Release; 317 | }; 318 | /* End XCBuildConfiguration section */ 319 | 320 | /* Begin XCConfigurationList section */ 321 | EDB7661E23124ED500E77251 /* Build configuration list for PBXProject "MapSourceTest" */ = { 322 | isa = XCConfigurationList; 323 | buildConfigurations = ( 324 | EDB7662A23124ED500E77251 /* Debug */, 325 | EDB7662B23124ED500E77251 /* Release */, 326 | ); 327 | defaultConfigurationIsVisible = 0; 328 | defaultConfigurationName = Release; 329 | }; 330 | EDB7662C23124ED500E77251 /* Build configuration list for PBXNativeTarget "MapSourceTest" */ = { 331 | isa = XCConfigurationList; 332 | buildConfigurations = ( 333 | EDB7662D23124ED500E77251 /* Debug */, 334 | EDB7662E23124ED500E77251 /* Release */, 335 | ); 336 | defaultConfigurationIsVisible = 0; 337 | defaultConfigurationName = Release; 338 | }; 339 | /* End XCConfigurationList section */ 340 | }; 341 | rootObject = EDB7661B23124ED500E77251 /* Project object */; 342 | } 343 | -------------------------------------------------------------------------------- /localPods/MapSourceTest/MapSourceTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /localPods/MapSourceTest/MapSourceTest.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /localPods/MapSourceTest/MapSourceTest/GHWMapSourceTest.h: -------------------------------------------------------------------------------- 1 | // 2 | // GHWMapSourceTest.h 3 | // MapSourceTest 4 | // 5 | // Created by 郭宏伟 on 2019/8/25. 6 | // Copyright © 2019 Jingyao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface GHWMapSourceTest : NSObject 14 | 15 | - (void)testFail; 16 | 17 | - (void)testSuccess; 18 | 19 | @end 20 | 21 | NS_ASSUME_NONNULL_END 22 | -------------------------------------------------------------------------------- /localPods/MapSourceTest/MapSourceTest/GHWMapSourceTest.m: -------------------------------------------------------------------------------- 1 | // 2 | // GHWMapSourceTest.m 3 | // MapSourceTest 4 | // 5 | // Created by 黑化肥发灰 on 2019/8/25. 6 | // Copyright © 2019 Jingyao. All rights reserved. 7 | // 8 | 9 | #import "GHWMapSourceTest.h" 10 | 11 | @implementation GHWMapSourceTest 12 | 13 | - (void)testFail { 14 | NSLog(@"11111"); 15 | NSLog(@"22222"); 16 | NSLog(@"33333"); 17 | NSArray *array = @[@"1"]; 18 | NSLog(@"test = %@", array[2]); 19 | NSLog(@"44444"); 20 | NSLog(@"55555"); 21 | NSLog(@"66666"); 22 | } 23 | - (void)testSuccess { 24 | NSLog(@"success"); 25 | } 26 | 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /localPods/MapSourceTest/MapSourceTest/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | 22 | 23 | -------------------------------------------------------------------------------- /localPods/MapSourceTest/MapSourceTest/MapSourceTest.h: -------------------------------------------------------------------------------- 1 | // 2 | // MapSourceTest.h 3 | // MapSourceTest 4 | // 5 | // Created by 郭宏伟 on 2019/8/25. 6 | // Copyright © 2019 Jingyao. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for MapSourceTest. 12 | FOUNDATION_EXPORT double MapSourceTestVersionNumber; 13 | 14 | //! Project version string for MapSourceTest. 15 | FOUNDATION_EXPORT const unsigned char MapSourceTestVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | #import 20 | -------------------------------------------------------------------------------- /resources/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohongwei719/GHWBinaryMapSource/2f1a4cc20759cdbdb7ba48093431de1340b65655/resources/1.png -------------------------------------------------------------------------------- /resources/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohongwei719/GHWBinaryMapSource/2f1a4cc20759cdbdb7ba48093431de1340b65655/resources/2.png -------------------------------------------------------------------------------- /resources/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohongwei719/GHWBinaryMapSource/2f1a4cc20759cdbdb7ba48093431de1340b65655/resources/3.png -------------------------------------------------------------------------------- /resources/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohongwei719/GHWBinaryMapSource/2f1a4cc20759cdbdb7ba48093431de1340b65655/resources/4.png -------------------------------------------------------------------------------- /resources/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guohongwei719/GHWBinaryMapSource/2f1a4cc20759cdbdb7ba48093431de1340b65655/resources/7.gif -------------------------------------------------------------------------------- /script/GHWBinaryMapSource.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | #0.1.0 4 | 5 | 6 | import lldb 7 | import re 8 | import os 9 | 10 | # command 是用户输入的符号地址 11 | def gMapSource(debugger, command, result, internal_dict): 12 | print('command: ' + command) 13 | savedFilePath = '/Users/guohongwei719/Desktop/GHWBinaryMapSource/script/path.txt' 14 | localSourcePath = '/Users/guohongwei719/Desktop/GHWBinaryMapSource/localPods/MapSourceTest' 15 | if command == '': 16 | print('没参数') 17 | current_path = os.getcwd() 18 | print('当前所在路径:' + current_path) 19 | interpreter = lldb.debugger.GetCommandInterpreter() 20 | returnObject = lldb.SBCommandReturnObject() 21 | file_handler = open(savedFilePath, 'r') 22 | content = file_handler.readlines() 23 | if len(content) == 2: 24 | compileFilePath = content[0].replace('\n', '') 25 | localSourceFilePath = content[1].replace('\n', '') 26 | # filePath = '/Users/guohongwei719/Desktop/test/MapSourceTest/MapSourceTest/GHWMapSourceTest.m' 27 | # sourcePath = '/Users/guohongwei719/Desktop/GHWBinaryMapSource/localPods/BinaryToSource/MapSourceTest/MapSourceTest/GHWMapSourceTest.m' 28 | print('编译时文件路径 compileFilePath = ' + compileFilePath) 29 | print('本地对应源码文件路径 sourcePath = ' + localSourceFilePath) 30 | interpreter.HandleCommand('settings set target.source-map ' + compileFilePath + ' ' + localSourceFilePath, returnObject) 31 | output = returnObject.GetOutput(); 32 | # print('output: ' + output) 33 | # file_handler.close() 34 | else: 35 | print('缺失路径信息') 36 | 37 | 38 | else: 39 | print('有参数') 40 | 41 | # 获取 lldb 的命令交互环境,可以动态执行一些命令,比如 po obj 42 | interpreter = lldb.debugger.GetCommandInterpreter() 43 | # 创建一个对象,命令执行结果会通过该对象保存 44 | returnObject = lldb.SBCommandReturnObject() 45 | # 通过 image loopup 命令查找输入符号地址所在的编译模块信息 46 | interpreter.HandleCommand('image lookup -v --address ' + command, returnObject) 47 | # 获取返回结果 48 | output = returnObject.GetOutput(); 49 | print('output: \n' + output) 50 | 51 | # 下面的代码设计思想是: 52 | # 1、根据{地址}查找该地址所属的{源码编译路径}+{编译文件名} 53 | # 2、通过{编译文件名}动态在{指定路径}查找相应的{源码路径} 54 | # 3、将{源码编译路径}与{源码路径}映射 55 | 56 | # 实际使用时,可以参考下面的方案。 57 | # 1、根据{地址}查找该地址所属的{编译模块}。比如,SDWebImage 58 | # 2、通过脚本动态下载{编译模块}的{源码仓库} 59 | # 3、将{编译模块}与{源码仓库}映射 60 | 61 | 62 | 63 | # 通过正则获取二进制编译时,源码的真正路径 64 | compileFilePath = re.match(r'(.|\n)*file = "(.*?)".*', output,re.M).group(2) 65 | print('编译时文件路径 compileFilePath = ' + compileFilePath) 66 | 67 | # 通过真正路径获取编译源文件的文件名 68 | fileName = re.match(r'/.*/(.*)', compileFilePath).group(1) 69 | print('文件名称 fileName = ' + fileName) 70 | # 通过文件名在 ~/MMAViewabilitySDK_iOS 目录(可以是任意的地址或者通过 git clone 动态下载)下查找源文件 71 | localSourceFilePath = os.popen('mdfind -onlyin ' + localSourcePath + ' ' + fileName).read().replace('\n','') 72 | print('本地对应源码文件路径 localSourceFilePath = ' + localSourceFilePath) 73 | 74 | # current_path = os.getcwd() 75 | # print('current_path = ' + current_path) 76 | 77 | # txtFilePath = os.path.join(current_path, 'path.txt') 78 | # print('txtFilePath = ' + txtFilePath) 79 | 80 | content = [] 81 | 82 | content.append(compileFilePath) 83 | content.append('\n') 84 | content.append(localSourceFilePath) 85 | 86 | out = open(savedFilePath, 'w') 87 | out.writelines(content) 88 | out.close() 89 | 90 | 91 | # 通过 settings set target.source-map 命令执行编译源码位置与当前源码位置的映射 92 | interpreter.HandleCommand('settings set target.source-map ' + compileFilePath + ' ' + localSourceFilePath, returnObject) 93 | 94 | # 添加一个 扩展命令 gMapSource 95 | # 在 lldb 输入 mapSource 0x10803839 时,会执行 GHWBinaryMapSource.py 文件的 gMapSource 方法 96 | def __lldb_init_module(debugger, internal_dict): 97 | debugger.HandleCommand('command script add gMapSource -f GHWBinaryMapSource.gMapSource') 98 | -------------------------------------------------------------------------------- /script/path.txt: -------------------------------------------------------------------------------- 1 | /Users/guohongwei719/Desktop/test/MapSourceTest/MapSourceTest/GHWMapSourceTest.m 2 | /Users/guohongwei719/Desktop/GHWBinaryMapSource/localPods/MapSourceTest/MapSourceTest/GHWMapSourceTest.m --------------------------------------------------------------------------------