├── .gitattributes ├── .gitignore ├── IOKitBrowser.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── IOKitBrowser.xcworkspace └── contents.xcworkspacedata ├── IOKitTest ├── ELLAppDelegate.h ├── ELLAppDelegate.m ├── ELLIOKitDumper.h ├── ELLIOKitDumper.m ├── ELLIOKitNodeInfo.h ├── ELLIOKitNodeInfo.m ├── ELLIOKitViewModel.h ├── ELLIOKitViewModel.m ├── ELLViewController.h ├── ELLViewController.m ├── IOKitBrowser-Info.plist ├── IOKitBrowser-Prefix.pch ├── IOKitDefines.h ├── Images.xcassets │ ├── AppIcon.appiconset │ │ ├── AppIcon29x29.png │ │ ├── AppIcon29x29@2x-1.png │ │ ├── AppIcon29x29@2x.png │ │ ├── AppIcon40x40.png │ │ ├── AppIcon40x40@2x-1.png │ │ ├── AppIcon40x40@2x.png │ │ ├── AppIcon60x60@2x.png │ │ ├── AppIcon76x76.png │ │ ├── AppIcon76x76@2x.png │ │ └── Contents.json │ └── Image.imageset │ │ ├── Contents.json │ │ ├── ElectricLabsLogoColour.png │ │ ├── ElectricLabsLogoColour@2x.png │ │ └── ElectricLabsLogoColour@3x.png ├── LaunchScreen.xib ├── Main.storyboard ├── en.lproj │ └── InfoPlist.strings └── main.m ├── IOKitTestTests ├── IOKitBrowserTests-Info.plist └── en.lproj │ └── InfoPlist.strings ├── Podfile ├── Podfile.lock └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj binary merge=union -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # osx noise 2 | xcuserdata 3 | Settings.bundle/Root.plist 4 | Settings.bundle/Acknowledgements.plist 5 | Settings.bundle/en.lproj/Acknowledgements.strings 6 | 7 | *.pyc 8 | .irb-history 9 | .*.swp 10 | calabash.json 11 | test-reports 12 | clangScanBuildReports 13 | 14 | # Xcode 15 | # 16 | build/ 17 | *.pbxuser 18 | !default.pbxuser 19 | *.mode1v3 20 | !default.mode1v3 21 | *.mode2v3 22 | !default.mode2v3 23 | *.perspectivev3 24 | !default.perspectivev3 25 | xcuserdata 26 | *.xccheckout 27 | *.moved-aside 28 | DerivedData 29 | *.hmap 30 | *.ipa 31 | *.xcuserstate 32 | 33 | profile 34 | *.moved-aside 35 | .DS_Store 36 | 37 | # CocoaPods 38 | Pods/ 39 | 40 | # AppCode 41 | .idea/ 42 | -------------------------------------------------------------------------------- /IOKitBrowser.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1C403B04991AEED586674FC8 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A7A6108D9D4BF48FF7AC492 /* libPods.a */; }; 11 | AD1DECBC1A2293BB00A39D3F /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = AD1DECBB1A2293BB00A39D3F /* LaunchScreen.xib */; }; 12 | AD1DECBE1A2294A900A39D3F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AD1DECBD1A2294A900A39D3F /* Images.xcassets */; }; 13 | AD1DECC01A22961B00A39D3F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD1DECBF1A22961B00A39D3F /* Main.storyboard */; }; 14 | AD538626186E4E4F00BC5972 /* ELLIOKitNodeInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = AD538625186E4E4F00BC5972 /* ELLIOKitNodeInfo.m */; }; 15 | AD5B054F1A252AB00069AF89 /* ELLIOKitViewModel.m in Sources */ = {isa = PBXBuildFile; fileRef = AD5B054E1A252AB00069AF89 /* ELLIOKitViewModel.m */; }; 16 | AD7E3E93186BBBBB00E47119 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3E92186BBBBB00E47119 /* Foundation.framework */; }; 17 | AD7E3E95186BBBBB00E47119 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3E94186BBBBB00E47119 /* CoreGraphics.framework */; }; 18 | AD7E3E97186BBBBB00E47119 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3E96186BBBBB00E47119 /* UIKit.framework */; }; 19 | AD7E3E9D186BBBBB00E47119 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = AD7E3E9B186BBBBB00E47119 /* InfoPlist.strings */; }; 20 | AD7E3E9F186BBBBB00E47119 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = AD7E3E9E186BBBBB00E47119 /* main.m */; }; 21 | AD7E3EA3186BBBBB00E47119 /* ELLAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = AD7E3EA2186BBBBB00E47119 /* ELLAppDelegate.m */; }; 22 | AD7E3EAC186BBBBB00E47119 /* ELLViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AD7E3EAB186BBBBB00E47119 /* ELLViewController.m */; }; 23 | AD7E3EB5186BBBBB00E47119 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3EB4186BBBBB00E47119 /* XCTest.framework */; }; 24 | AD7E3EB6186BBBBB00E47119 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3E92186BBBBB00E47119 /* Foundation.framework */; }; 25 | AD7E3EB7186BBBBB00E47119 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3E96186BBBBB00E47119 /* UIKit.framework */; }; 26 | AD7E3EBF186BBBBB00E47119 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = AD7E3EBD186BBBBB00E47119 /* InfoPlist.strings */; }; 27 | AD7E3ED0186BBDCA00E47119 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3ECF186BBDCA00E47119 /* IOKit.framework */; }; 28 | ADDA110718A8D511002E84F9 /* ELLIOKitDumper.m in Sources */ = {isa = PBXBuildFile; fileRef = ADDA110618A8D511002E84F9 /* ELLIOKitDumper.m */; }; 29 | /* End PBXBuildFile section */ 30 | 31 | /* Begin PBXContainerItemProxy section */ 32 | AD7E3EB8186BBBBB00E47119 /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = AD7E3E87186BBBBB00E47119 /* Project object */; 35 | proxyType = 1; 36 | remoteGlobalIDString = AD7E3E8E186BBBBB00E47119; 37 | remoteInfo = IOKitTest; 38 | }; 39 | /* End PBXContainerItemProxy section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 2A7A6108D9D4BF48FF7AC492 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 65C21B293814751249266EA4 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; }; 44 | 87CF12F22BABAFB1E79A0104 /* Pods.adhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.adhoc.xcconfig; path = "Pods/Target Support Files/Pods/Pods.adhoc.xcconfig"; sourceTree = ""; }; 45 | 97D3DEA721A392AABDDD8DB4 /* Pods.profiling.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.profiling.xcconfig; path = "Pods/Target Support Files/Pods/Pods.profiling.xcconfig"; sourceTree = ""; }; 46 | AD1DECBB1A2293BB00A39D3F /* LaunchScreen.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LaunchScreen.xib; sourceTree = ""; }; 47 | AD1DECBD1A2294A900A39D3F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 48 | AD1DECBF1A22961B00A39D3F /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 49 | AD538624186E4E4F00BC5972 /* ELLIOKitNodeInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ELLIOKitNodeInfo.h; sourceTree = ""; }; 50 | AD538625186E4E4F00BC5972 /* ELLIOKitNodeInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ELLIOKitNodeInfo.m; sourceTree = ""; }; 51 | AD5B054D1A252AB00069AF89 /* ELLIOKitViewModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ELLIOKitViewModel.h; sourceTree = ""; }; 52 | AD5B054E1A252AB00069AF89 /* ELLIOKitViewModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ELLIOKitViewModel.m; sourceTree = ""; }; 53 | AD7E3E8F186BBBBB00E47119 /* IOKitBrowser.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IOKitBrowser.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | AD7E3E92186BBBBB00E47119 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 55 | AD7E3E94186BBBBB00E47119 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 56 | AD7E3E96186BBBBB00E47119 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 57 | AD7E3E9A186BBBBB00E47119 /* IOKitBrowser-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "IOKitBrowser-Info.plist"; sourceTree = ""; }; 58 | AD7E3E9C186BBBBB00E47119 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 59 | AD7E3E9E186BBBBB00E47119 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 60 | AD7E3EA0186BBBBB00E47119 /* IOKitBrowser-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "IOKitBrowser-Prefix.pch"; sourceTree = ""; }; 61 | AD7E3EA1186BBBBB00E47119 /* ELLAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ELLAppDelegate.h; sourceTree = ""; }; 62 | AD7E3EA2186BBBBB00E47119 /* ELLAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ELLAppDelegate.m; sourceTree = ""; }; 63 | AD7E3EAA186BBBBB00E47119 /* ELLViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ELLViewController.h; sourceTree = ""; }; 64 | AD7E3EAB186BBBBB00E47119 /* ELLViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ELLViewController.m; sourceTree = ""; }; 65 | AD7E3EB3186BBBBB00E47119 /* IOKitBrowserTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = IOKitBrowserTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | AD7E3EB4186BBBBB00E47119 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 67 | AD7E3EBC186BBBBB00E47119 /* IOKitBrowserTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "IOKitBrowserTests-Info.plist"; sourceTree = ""; }; 68 | AD7E3EBE186BBBBB00E47119 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 69 | AD7E3ECF186BBDCA00E47119 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; 70 | AD9D18151A8FBBF9001E9193 /* IOKitDefines.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = IOKitDefines.h; sourceTree = ""; }; 71 | ADDA110518A8D511002E84F9 /* ELLIOKitDumper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ELLIOKitDumper.h; sourceTree = ""; }; 72 | ADDA110618A8D511002E84F9 /* ELLIOKitDumper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ELLIOKitDumper.m; sourceTree = ""; }; 73 | C9602A192FE4D0FA662EF037 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; }; 74 | /* End PBXFileReference section */ 75 | 76 | /* Begin PBXFrameworksBuildPhase section */ 77 | AD7E3E8C186BBBBB00E47119 /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | AD7E3ED0186BBDCA00E47119 /* IOKit.framework in Frameworks */, 82 | AD7E3E95186BBBBB00E47119 /* CoreGraphics.framework in Frameworks */, 83 | AD7E3E97186BBBBB00E47119 /* UIKit.framework in Frameworks */, 84 | AD7E3E93186BBBBB00E47119 /* Foundation.framework in Frameworks */, 85 | 1C403B04991AEED586674FC8 /* libPods.a in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | AD7E3EB0186BBBBB00E47119 /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | AD7E3EB5186BBBBB00E47119 /* XCTest.framework in Frameworks */, 94 | AD7E3EB7186BBBBB00E47119 /* UIKit.framework in Frameworks */, 95 | AD7E3EB6186BBBBB00E47119 /* Foundation.framework in Frameworks */, 96 | ); 97 | runOnlyForDeploymentPostprocessing = 0; 98 | }; 99 | /* End PBXFrameworksBuildPhase section */ 100 | 101 | /* Begin PBXGroup section */ 102 | 9ED867D3500FAC137D502372 /* Pods */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 65C21B293814751249266EA4 /* Pods.debug.xcconfig */, 106 | C9602A192FE4D0FA662EF037 /* Pods.release.xcconfig */, 107 | 87CF12F22BABAFB1E79A0104 /* Pods.adhoc.xcconfig */, 108 | 97D3DEA721A392AABDDD8DB4 /* Pods.profiling.xcconfig */, 109 | ); 110 | name = Pods; 111 | sourceTree = ""; 112 | }; 113 | AD7E3E86186BBBBB00E47119 = { 114 | isa = PBXGroup; 115 | children = ( 116 | AD7E3E98186BBBBB00E47119 /* IOKitTest */, 117 | AD7E3EBA186BBBBB00E47119 /* IOKitTestTests */, 118 | AD7E3E91186BBBBB00E47119 /* Frameworks */, 119 | AD7E3E90186BBBBB00E47119 /* Products */, 120 | 9ED867D3500FAC137D502372 /* Pods */, 121 | ); 122 | sourceTree = ""; 123 | }; 124 | AD7E3E90186BBBBB00E47119 /* Products */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | AD7E3E8F186BBBBB00E47119 /* IOKitBrowser.app */, 128 | AD7E3EB3186BBBBB00E47119 /* IOKitBrowserTests.xctest */, 129 | ); 130 | name = Products; 131 | sourceTree = ""; 132 | }; 133 | AD7E3E91186BBBBB00E47119 /* Frameworks */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | AD7E3ECF186BBDCA00E47119 /* IOKit.framework */, 137 | AD7E3E92186BBBBB00E47119 /* Foundation.framework */, 138 | AD7E3E94186BBBBB00E47119 /* CoreGraphics.framework */, 139 | AD7E3E96186BBBBB00E47119 /* UIKit.framework */, 140 | AD7E3EB4186BBBBB00E47119 /* XCTest.framework */, 141 | 2A7A6108D9D4BF48FF7AC492 /* libPods.a */, 142 | ); 143 | name = Frameworks; 144 | sourceTree = ""; 145 | }; 146 | AD7E3E98186BBBBB00E47119 /* IOKitTest */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | AD7E3EA1186BBBBB00E47119 /* ELLAppDelegate.h */, 150 | AD7E3EA2186BBBBB00E47119 /* ELLAppDelegate.m */, 151 | AD7E3EAA186BBBBB00E47119 /* ELLViewController.h */, 152 | AD7E3EAB186BBBBB00E47119 /* ELLViewController.m */, 153 | ADDA110518A8D511002E84F9 /* ELLIOKitDumper.h */, 154 | ADDA110618A8D511002E84F9 /* ELLIOKitDumper.m */, 155 | AD538624186E4E4F00BC5972 /* ELLIOKitNodeInfo.h */, 156 | AD538625186E4E4F00BC5972 /* ELLIOKitNodeInfo.m */, 157 | AD5B054D1A252AB00069AF89 /* ELLIOKitViewModel.h */, 158 | AD5B054E1A252AB00069AF89 /* ELLIOKitViewModel.m */, 159 | AD1DECBD1A2294A900A39D3F /* Images.xcassets */, 160 | AD1DECBB1A2293BB00A39D3F /* LaunchScreen.xib */, 161 | AD7E3E99186BBBBB00E47119 /* Supporting Files */, 162 | AD1DECBF1A22961B00A39D3F /* Main.storyboard */, 163 | AD9D18151A8FBBF9001E9193 /* IOKitDefines.h */, 164 | ); 165 | path = IOKitTest; 166 | sourceTree = ""; 167 | }; 168 | AD7E3E99186BBBBB00E47119 /* Supporting Files */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | AD7E3E9A186BBBBB00E47119 /* IOKitBrowser-Info.plist */, 172 | AD7E3E9B186BBBBB00E47119 /* InfoPlist.strings */, 173 | AD7E3E9E186BBBBB00E47119 /* main.m */, 174 | AD7E3EA0186BBBBB00E47119 /* IOKitBrowser-Prefix.pch */, 175 | ); 176 | name = "Supporting Files"; 177 | sourceTree = ""; 178 | }; 179 | AD7E3EBA186BBBBB00E47119 /* IOKitTestTests */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | AD7E3EBB186BBBBB00E47119 /* Supporting Files */, 183 | ); 184 | path = IOKitTestTests; 185 | sourceTree = ""; 186 | }; 187 | AD7E3EBB186BBBBB00E47119 /* Supporting Files */ = { 188 | isa = PBXGroup; 189 | children = ( 190 | AD7E3EBC186BBBBB00E47119 /* IOKitBrowserTests-Info.plist */, 191 | AD7E3EBD186BBBBB00E47119 /* InfoPlist.strings */, 192 | ); 193 | name = "Supporting Files"; 194 | sourceTree = ""; 195 | }; 196 | /* End PBXGroup section */ 197 | 198 | /* Begin PBXNativeTarget section */ 199 | AD7E3E8E186BBBBB00E47119 /* IOKitBrowser */ = { 200 | isa = PBXNativeTarget; 201 | buildConfigurationList = AD7E3EC4186BBBBB00E47119 /* Build configuration list for PBXNativeTarget "IOKitBrowser" */; 202 | buildPhases = ( 203 | F8AF10792088033224D40B04 /* Check Pods Manifest.lock */, 204 | AD7E3E8B186BBBBB00E47119 /* Sources */, 205 | AD7E3E8C186BBBBB00E47119 /* Frameworks */, 206 | AD7E3E8D186BBBBB00E47119 /* Resources */, 207 | 34008090A8A94093980B6DA7 /* icon versioning */, 208 | 6B0365F3CADD6982C222E43D /* Copy Pods Resources */, 209 | ); 210 | buildRules = ( 211 | ); 212 | dependencies = ( 213 | ); 214 | name = IOKitBrowser; 215 | productName = IOKitTest; 216 | productReference = AD7E3E8F186BBBBB00E47119 /* IOKitBrowser.app */; 217 | productType = "com.apple.product-type.application"; 218 | }; 219 | AD7E3EB2186BBBBB00E47119 /* IOKitBrowserTests */ = { 220 | isa = PBXNativeTarget; 221 | buildConfigurationList = AD7E3EC7186BBBBB00E47119 /* Build configuration list for PBXNativeTarget "IOKitBrowserTests" */; 222 | buildPhases = ( 223 | AD7E3EAF186BBBBB00E47119 /* Sources */, 224 | AD7E3EB0186BBBBB00E47119 /* Frameworks */, 225 | AD7E3EB1186BBBBB00E47119 /* Resources */, 226 | ); 227 | buildRules = ( 228 | ); 229 | dependencies = ( 230 | AD7E3EB9186BBBBB00E47119 /* PBXTargetDependency */, 231 | ); 232 | name = IOKitBrowserTests; 233 | productName = IOKitTestTests; 234 | productReference = AD7E3EB3186BBBBB00E47119 /* IOKitBrowserTests.xctest */; 235 | productType = "com.apple.product-type.bundle.unit-test"; 236 | }; 237 | /* End PBXNativeTarget section */ 238 | 239 | /* Begin PBXProject section */ 240 | AD7E3E87186BBBBB00E47119 /* Project object */ = { 241 | isa = PBXProject; 242 | attributes = { 243 | CLASSPREFIX = ELL; 244 | LastUpgradeCheck = 0610; 245 | ORGANIZATIONNAME = "Electric Labs"; 246 | TargetAttributes = { 247 | AD7E3EB2186BBBBB00E47119 = { 248 | TestTargetID = AD7E3E8E186BBBBB00E47119; 249 | }; 250 | }; 251 | }; 252 | buildConfigurationList = AD7E3E8A186BBBBB00E47119 /* Build configuration list for PBXProject "IOKitBrowser" */; 253 | compatibilityVersion = "Xcode 3.2"; 254 | developmentRegion = English; 255 | hasScannedForEncodings = 0; 256 | knownRegions = ( 257 | en, 258 | Base, 259 | ); 260 | mainGroup = AD7E3E86186BBBBB00E47119; 261 | productRefGroup = AD7E3E90186BBBBB00E47119 /* Products */; 262 | projectDirPath = ""; 263 | projectRoot = ""; 264 | targets = ( 265 | AD7E3E8E186BBBBB00E47119 /* IOKitBrowser */, 266 | AD7E3EB2186BBBBB00E47119 /* IOKitBrowserTests */, 267 | ); 268 | }; 269 | /* End PBXProject section */ 270 | 271 | /* Begin PBXResourcesBuildPhase section */ 272 | AD7E3E8D186BBBBB00E47119 /* Resources */ = { 273 | isa = PBXResourcesBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | AD1DECBC1A2293BB00A39D3F /* LaunchScreen.xib in Resources */, 277 | AD1DECBE1A2294A900A39D3F /* Images.xcassets in Resources */, 278 | AD1DECC01A22961B00A39D3F /* Main.storyboard in Resources */, 279 | AD7E3E9D186BBBBB00E47119 /* InfoPlist.strings in Resources */, 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | AD7E3EB1186BBBBB00E47119 /* Resources */ = { 284 | isa = PBXResourcesBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | AD7E3EBF186BBBBB00E47119 /* InfoPlist.strings in Resources */, 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | }; 291 | /* End PBXResourcesBuildPhase section */ 292 | 293 | /* Begin PBXShellScriptBuildPhase section */ 294 | 34008090A8A94093980B6DA7 /* icon versioning */ = { 295 | isa = PBXShellScriptBuildPhase; 296 | buildActionMask = 2147483647; 297 | files = ( 298 | ); 299 | inputPaths = ( 300 | ); 301 | name = "icon versioning"; 302 | outputPaths = ( 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | shellPath = /bin/sh; 306 | shellScript = "\ncommit=`git rev-parse --short HEAD`\nbranch=`git rev-parse --abbrev-ref HEAD`\nversion=`/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${INFOPLIST_FILE}\"`\n\nfunction processIcon() {\n export PATH=$PATH:/usr/local/bin\n base_file=$1\n base_path=`find ${SRCROOT} -name $base_file`\n\n if [[ ! -f ${base_path} || -z ${base_path} ]]; then\n return;\n fi\n\n target_file=`echo $base_file | sed \"s/_base//\"`\n target_path=\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/${target_file}\"\n\n if [ $CONFIGURATION = \"Release\" ]; then\n cp ${base_file} $target_path\n return\n fi\n\n width=`identify -format %w ${base_path}`\n\n convert -background '#0008' -fill white -gravity center -size ${width}x40\\\n caption:\"${version} ${branch} ${commit}\"\\\n ${base_path} +swap -gravity south -composite ${target_path}\n}\n\nprocessIcon \"Icon_base.png\"\nprocessIcon \"Icon@2x_base.png\"\nprocessIcon \"Icon-72_base.png\"\nprocessIcon \"Icon-72@2x_base.png\"\n"; 307 | }; 308 | 6B0365F3CADD6982C222E43D /* Copy Pods Resources */ = { 309 | isa = PBXShellScriptBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | ); 313 | inputPaths = ( 314 | ); 315 | name = "Copy Pods Resources"; 316 | outputPaths = ( 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | shellPath = /bin/sh; 320 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; 321 | showEnvVarsInLog = 0; 322 | }; 323 | F8AF10792088033224D40B04 /* Check Pods Manifest.lock */ = { 324 | isa = PBXShellScriptBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | ); 328 | inputPaths = ( 329 | ); 330 | name = "Check Pods Manifest.lock"; 331 | outputPaths = ( 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | shellPath = /bin/sh; 335 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 336 | showEnvVarsInLog = 0; 337 | }; 338 | /* End PBXShellScriptBuildPhase section */ 339 | 340 | /* Begin PBXSourcesBuildPhase section */ 341 | AD7E3E8B186BBBBB00E47119 /* Sources */ = { 342 | isa = PBXSourcesBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | AD538626186E4E4F00BC5972 /* ELLIOKitNodeInfo.m in Sources */, 346 | AD7E3EAC186BBBBB00E47119 /* ELLViewController.m in Sources */, 347 | AD7E3EA3186BBBBB00E47119 /* ELLAppDelegate.m in Sources */, 348 | AD5B054F1A252AB00069AF89 /* ELLIOKitViewModel.m in Sources */, 349 | ADDA110718A8D511002E84F9 /* ELLIOKitDumper.m in Sources */, 350 | AD7E3E9F186BBBBB00E47119 /* main.m in Sources */, 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | }; 354 | AD7E3EAF186BBBBB00E47119 /* Sources */ = { 355 | isa = PBXSourcesBuildPhase; 356 | buildActionMask = 2147483647; 357 | files = ( 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | }; 361 | /* End PBXSourcesBuildPhase section */ 362 | 363 | /* Begin PBXTargetDependency section */ 364 | AD7E3EB9186BBBBB00E47119 /* PBXTargetDependency */ = { 365 | isa = PBXTargetDependency; 366 | target = AD7E3E8E186BBBBB00E47119 /* IOKitBrowser */; 367 | targetProxy = AD7E3EB8186BBBBB00E47119 /* PBXContainerItemProxy */; 368 | }; 369 | /* End PBXTargetDependency section */ 370 | 371 | /* Begin PBXVariantGroup section */ 372 | AD7E3E9B186BBBBB00E47119 /* InfoPlist.strings */ = { 373 | isa = PBXVariantGroup; 374 | children = ( 375 | AD7E3E9C186BBBBB00E47119 /* en */, 376 | ); 377 | name = InfoPlist.strings; 378 | sourceTree = ""; 379 | }; 380 | AD7E3EBD186BBBBB00E47119 /* InfoPlist.strings */ = { 381 | isa = PBXVariantGroup; 382 | children = ( 383 | AD7E3EBE186BBBBB00E47119 /* en */, 384 | ); 385 | name = InfoPlist.strings; 386 | sourceTree = ""; 387 | }; 388 | /* End PBXVariantGroup section */ 389 | 390 | /* Begin XCBuildConfiguration section */ 391 | 0AAC631A05DE4B7697873C8E /* profiling */ = { 392 | isa = XCBuildConfiguration; 393 | baseConfigurationReference = 97D3DEA721A392AABDDD8DB4 /* Pods.profiling.xcconfig */; 394 | buildSettings = { 395 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 396 | CODE_SIGN_IDENTITY = "iPhone Developer"; 397 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 398 | GCC_PREFIX_HEADER = "IOKitTest/IOKitBrowser-Prefix.pch"; 399 | INFOPLIST_FILE = "IOKitTest/IOKitBrowser-Info.plist"; 400 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 401 | PRODUCT_NAME = IOKitBrowser; 402 | WRAPPER_EXTENSION = app; 403 | }; 404 | name = profiling; 405 | }; 406 | 131952FD1E734D12BD1AD9A0 /* profiling */ = { 407 | isa = XCBuildConfiguration; 408 | buildSettings = { 409 | ALWAYS_SEARCH_USER_PATHS = NO; 410 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 411 | CLANG_CXX_LIBRARY = "libc++"; 412 | CLANG_ENABLE_MODULES = YES; 413 | CLANG_ENABLE_OBJC_ARC = YES; 414 | CLANG_WARN_BOOL_CONVERSION = YES; 415 | CLANG_WARN_CONSTANT_CONVERSION = YES; 416 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 417 | CLANG_WARN_EMPTY_BODY = YES; 418 | CLANG_WARN_ENUM_CONVERSION = YES; 419 | CLANG_WARN_INT_CONVERSION = YES; 420 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 421 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 422 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 423 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 424 | COPY_PHASE_STRIP = NO; 425 | GCC_C_LANGUAGE_STANDARD = gnu99; 426 | GCC_DYNAMIC_NO_PIC = NO; 427 | GCC_OPTIMIZATION_LEVEL = 0; 428 | GCC_PREPROCESSOR_DEFINITIONS = ( 429 | "DEBUG=1", 430 | "$(inherited)", 431 | ); 432 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 433 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 434 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 435 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 436 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 437 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 438 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 439 | GCC_WARN_MISSING_PARENTHESES = YES; 440 | GCC_WARN_SHADOW = YES; 441 | GCC_WARN_SIGN_COMPARE = YES; 442 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 443 | GCC_WARN_UNDECLARED_SELECTOR = YES; 444 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 445 | GCC_WARN_UNUSED_FUNCTION = YES; 446 | GCC_WARN_UNUSED_LABEL = YES; 447 | GCC_WARN_UNUSED_VALUE = YES; 448 | GCC_WARN_UNUSED_VARIABLE = YES; 449 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 450 | ONLY_ACTIVE_ARCH = YES; 451 | RUN_CLANG_STATIC_ANALYZER = YES; 452 | SDKROOT = iphoneos; 453 | TARGETED_DEVICE_FAMILY = "1,2"; 454 | }; 455 | name = profiling; 456 | }; 457 | 181C7BC432D84E9DA902BDAA /* profiling */ = { 458 | isa = XCBuildConfiguration; 459 | buildSettings = { 460 | ALWAYS_SEARCH_USER_PATHS = NO; 461 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 462 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 463 | CLANG_CXX_LIBRARY = "libc++"; 464 | CLANG_ENABLE_MODULES = YES; 465 | CLANG_ENABLE_OBJC_ARC = YES; 466 | CLANG_WARN_BOOL_CONVERSION = YES; 467 | CLANG_WARN_CONSTANT_CONVERSION = YES; 468 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 469 | CLANG_WARN_EMPTY_BODY = YES; 470 | CLANG_WARN_ENUM_CONVERSION = YES; 471 | CLANG_WARN_INT_CONVERSION = YES; 472 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 473 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 474 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 475 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 476 | COPY_PHASE_STRIP = NO; 477 | GCC_C_LANGUAGE_STANDARD = gnu99; 478 | GCC_DYNAMIC_NO_PIC = NO; 479 | GCC_OPTIMIZATION_LEVEL = 0; 480 | GCC_PREPROCESSOR_DEFINITIONS = ( 481 | "DEBUG=1", 482 | "$(inherited)", 483 | ); 484 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 485 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 486 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 487 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 488 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 489 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 490 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 491 | GCC_WARN_MISSING_PARENTHESES = YES; 492 | GCC_WARN_SHADOW = YES; 493 | GCC_WARN_SIGN_COMPARE = YES; 494 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 495 | GCC_WARN_UNDECLARED_SELECTOR = YES; 496 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 497 | GCC_WARN_UNUSED_FUNCTION = YES; 498 | GCC_WARN_UNUSED_LABEL = YES; 499 | GCC_WARN_UNUSED_VALUE = YES; 500 | GCC_WARN_UNUSED_VARIABLE = YES; 501 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 502 | ONLY_ACTIVE_ARCH = YES; 503 | RUN_CLANG_STATIC_ANALYZER = YES; 504 | SDKROOT = iphoneos; 505 | TARGETED_DEVICE_FAMILY = "1,2"; 506 | }; 507 | name = profiling; 508 | }; 509 | 250897B0EE294EA7AD797C9D /* adhoc */ = { 510 | isa = XCBuildConfiguration; 511 | buildSettings = { 512 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/IOKitTest.app/IOKitTest"; 513 | FRAMEWORK_SEARCH_PATHS = ( 514 | "$(SDKROOT)/Developer/Library/Frameworks", 515 | "$(inherited)", 516 | "$(DEVELOPER_FRAMEWORKS_DIR)", 517 | ); 518 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 519 | GCC_PREFIX_HEADER = "IOKitTest/IOKitTest-Prefix.pch"; 520 | GCC_PREPROCESSOR_DEFINITIONS = ( 521 | "DEBUG=1", 522 | "$(inherited)", 523 | ); 524 | INFOPLIST_FILE = "IOKitTestTests/IOKitBrowserTests-Info.plist"; 525 | PRODUCT_NAME = IOKitBrowserTests; 526 | TEST_HOST = "$(BUNDLE_LOADER)"; 527 | WRAPPER_EXTENSION = xctest; 528 | }; 529 | name = adhoc; 530 | }; 531 | 254D11163F85421D922EA685 /* adhoc */ = { 532 | isa = XCBuildConfiguration; 533 | baseConfigurationReference = 87CF12F22BABAFB1E79A0104 /* Pods.adhoc.xcconfig */; 534 | buildSettings = { 535 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 536 | CODE_SIGN_IDENTITY = "iPhone Developer"; 537 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 538 | GCC_PREFIX_HEADER = "IOKitTest/IOKitBrowser-Prefix.pch"; 539 | INFOPLIST_FILE = "IOKitTest/IOKitBrowser-Info.plist"; 540 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 541 | PRODUCT_NAME = IOKitBrowser; 542 | WRAPPER_EXTENSION = app; 543 | }; 544 | name = adhoc; 545 | }; 546 | A230520F0D10488D815CA69C /* adhoc */ = { 547 | isa = XCBuildConfiguration; 548 | buildSettings = { 549 | ALWAYS_SEARCH_USER_PATHS = NO; 550 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 551 | CLANG_CXX_LIBRARY = "libc++"; 552 | CLANG_ENABLE_MODULES = YES; 553 | CLANG_ENABLE_OBJC_ARC = YES; 554 | CLANG_WARN_BOOL_CONVERSION = YES; 555 | CLANG_WARN_CONSTANT_CONVERSION = YES; 556 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 557 | CLANG_WARN_EMPTY_BODY = YES; 558 | CLANG_WARN_ENUM_CONVERSION = YES; 559 | CLANG_WARN_INT_CONVERSION = YES; 560 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 561 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 562 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 563 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 564 | COPY_PHASE_STRIP = NO; 565 | GCC_C_LANGUAGE_STANDARD = gnu99; 566 | GCC_DYNAMIC_NO_PIC = NO; 567 | GCC_OPTIMIZATION_LEVEL = 0; 568 | GCC_PREPROCESSOR_DEFINITIONS = ( 569 | "DEBUG=1", 570 | "$(inherited)", 571 | ); 572 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 573 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 574 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 575 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 576 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 577 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 578 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 579 | GCC_WARN_MISSING_PARENTHESES = YES; 580 | GCC_WARN_SHADOW = YES; 581 | GCC_WARN_SIGN_COMPARE = YES; 582 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 583 | GCC_WARN_UNDECLARED_SELECTOR = YES; 584 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 585 | GCC_WARN_UNUSED_FUNCTION = YES; 586 | GCC_WARN_UNUSED_LABEL = YES; 587 | GCC_WARN_UNUSED_VALUE = YES; 588 | GCC_WARN_UNUSED_VARIABLE = YES; 589 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 590 | ONLY_ACTIVE_ARCH = YES; 591 | RUN_CLANG_STATIC_ANALYZER = YES; 592 | SDKROOT = iphoneos; 593 | TARGETED_DEVICE_FAMILY = "1,2"; 594 | }; 595 | name = adhoc; 596 | }; 597 | AD7E3EC2186BBBBB00E47119 /* Debug */ = { 598 | isa = XCBuildConfiguration; 599 | buildSettings = { 600 | ALWAYS_SEARCH_USER_PATHS = NO; 601 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 602 | CLANG_CXX_LIBRARY = "libc++"; 603 | CLANG_ENABLE_MODULES = YES; 604 | CLANG_ENABLE_OBJC_ARC = YES; 605 | CLANG_WARN_BOOL_CONVERSION = YES; 606 | CLANG_WARN_CONSTANT_CONVERSION = YES; 607 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 608 | CLANG_WARN_EMPTY_BODY = YES; 609 | CLANG_WARN_ENUM_CONVERSION = YES; 610 | CLANG_WARN_INT_CONVERSION = YES; 611 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 612 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 613 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 614 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 615 | COPY_PHASE_STRIP = NO; 616 | GCC_C_LANGUAGE_STANDARD = gnu99; 617 | GCC_DYNAMIC_NO_PIC = NO; 618 | GCC_OPTIMIZATION_LEVEL = 0; 619 | GCC_PREPROCESSOR_DEFINITIONS = ( 620 | "DEBUG=1", 621 | "$(inherited)", 622 | ); 623 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 624 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 625 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 626 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 627 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 628 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 629 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 630 | GCC_WARN_MISSING_PARENTHESES = YES; 631 | GCC_WARN_SHADOW = YES; 632 | GCC_WARN_SIGN_COMPARE = YES; 633 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 634 | GCC_WARN_UNDECLARED_SELECTOR = YES; 635 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 636 | GCC_WARN_UNUSED_FUNCTION = YES; 637 | GCC_WARN_UNUSED_LABEL = YES; 638 | GCC_WARN_UNUSED_VALUE = YES; 639 | GCC_WARN_UNUSED_VARIABLE = YES; 640 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 641 | ONLY_ACTIVE_ARCH = YES; 642 | RUN_CLANG_STATIC_ANALYZER = YES; 643 | SDKROOT = iphoneos; 644 | TARGETED_DEVICE_FAMILY = "1,2"; 645 | }; 646 | name = Debug; 647 | }; 648 | AD7E3EC3186BBBBB00E47119 /* Release */ = { 649 | isa = XCBuildConfiguration; 650 | buildSettings = { 651 | ALWAYS_SEARCH_USER_PATHS = NO; 652 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 653 | CLANG_CXX_LIBRARY = "libc++"; 654 | CLANG_ENABLE_MODULES = YES; 655 | CLANG_ENABLE_OBJC_ARC = YES; 656 | CLANG_WARN_BOOL_CONVERSION = YES; 657 | CLANG_WARN_CONSTANT_CONVERSION = YES; 658 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 659 | CLANG_WARN_EMPTY_BODY = YES; 660 | CLANG_WARN_ENUM_CONVERSION = YES; 661 | CLANG_WARN_INT_CONVERSION = YES; 662 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 663 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 664 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 665 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 666 | COPY_PHASE_STRIP = YES; 667 | ENABLE_NS_ASSERTIONS = NO; 668 | GCC_C_LANGUAGE_STANDARD = gnu99; 669 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 670 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 671 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 672 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 673 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 674 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 675 | GCC_WARN_MISSING_PARENTHESES = YES; 676 | GCC_WARN_SHADOW = YES; 677 | GCC_WARN_SIGN_COMPARE = YES; 678 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 679 | GCC_WARN_UNDECLARED_SELECTOR = YES; 680 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 681 | GCC_WARN_UNUSED_FUNCTION = YES; 682 | GCC_WARN_UNUSED_LABEL = YES; 683 | GCC_WARN_UNUSED_VALUE = YES; 684 | GCC_WARN_UNUSED_VARIABLE = YES; 685 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 686 | RUN_CLANG_STATIC_ANALYZER = YES; 687 | SDKROOT = iphoneos; 688 | TARGETED_DEVICE_FAMILY = "1,2"; 689 | VALIDATE_PRODUCT = YES; 690 | }; 691 | name = Release; 692 | }; 693 | AD7E3EC5186BBBBB00E47119 /* Debug */ = { 694 | isa = XCBuildConfiguration; 695 | baseConfigurationReference = 65C21B293814751249266EA4 /* Pods.debug.xcconfig */; 696 | buildSettings = { 697 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 698 | CODE_SIGN_IDENTITY = "iPhone Developer"; 699 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 700 | GCC_PREFIX_HEADER = "IOKitTest/IOKitBrowser-Prefix.pch"; 701 | INFOPLIST_FILE = "IOKitTest/IOKitBrowser-Info.plist"; 702 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 703 | PRODUCT_NAME = IOKitBrowser; 704 | WRAPPER_EXTENSION = app; 705 | }; 706 | name = Debug; 707 | }; 708 | AD7E3EC6186BBBBB00E47119 /* Release */ = { 709 | isa = XCBuildConfiguration; 710 | baseConfigurationReference = C9602A192FE4D0FA662EF037 /* Pods.release.xcconfig */; 711 | buildSettings = { 712 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 713 | CODE_SIGN_IDENTITY = "iPhone Developer"; 714 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 715 | GCC_PREFIX_HEADER = "IOKitTest/IOKitBrowser-Prefix.pch"; 716 | INFOPLIST_FILE = "IOKitTest/IOKitBrowser-Info.plist"; 717 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 718 | PRODUCT_NAME = IOKitBrowser; 719 | WRAPPER_EXTENSION = app; 720 | }; 721 | name = Release; 722 | }; 723 | AD7E3EC8186BBBBB00E47119 /* Debug */ = { 724 | isa = XCBuildConfiguration; 725 | buildSettings = { 726 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/IOKitTest.app/IOKitTest"; 727 | FRAMEWORK_SEARCH_PATHS = ( 728 | "$(SDKROOT)/Developer/Library/Frameworks", 729 | "$(inherited)", 730 | "$(DEVELOPER_FRAMEWORKS_DIR)", 731 | ); 732 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 733 | GCC_PREFIX_HEADER = "IOKitTest/IOKitTest-Prefix.pch"; 734 | GCC_PREPROCESSOR_DEFINITIONS = ( 735 | "DEBUG=1", 736 | "$(inherited)", 737 | ); 738 | INFOPLIST_FILE = "IOKitTestTests/IOKitBrowserTests-Info.plist"; 739 | PRODUCT_NAME = IOKitBrowserTests; 740 | TEST_HOST = "$(BUNDLE_LOADER)"; 741 | WRAPPER_EXTENSION = xctest; 742 | }; 743 | name = Debug; 744 | }; 745 | AD7E3EC9186BBBBB00E47119 /* Release */ = { 746 | isa = XCBuildConfiguration; 747 | buildSettings = { 748 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/IOKitTest.app/IOKitTest"; 749 | FRAMEWORK_SEARCH_PATHS = ( 750 | "$(SDKROOT)/Developer/Library/Frameworks", 751 | "$(inherited)", 752 | "$(DEVELOPER_FRAMEWORKS_DIR)", 753 | ); 754 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 755 | GCC_PREFIX_HEADER = "IOKitTest/IOKitTest-Prefix.pch"; 756 | INFOPLIST_FILE = "IOKitTestTests/IOKitBrowserTests-Info.plist"; 757 | PRODUCT_NAME = IOKitBrowserTests; 758 | TEST_HOST = "$(BUNDLE_LOADER)"; 759 | WRAPPER_EXTENSION = xctest; 760 | }; 761 | name = Release; 762 | }; 763 | BE2506C58BAC468A9047E9A6 /* profiling */ = { 764 | isa = XCBuildConfiguration; 765 | buildSettings = { 766 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/IOKitTest.app/IOKitTest"; 767 | FRAMEWORK_SEARCH_PATHS = ( 768 | "$(SDKROOT)/Developer/Library/Frameworks", 769 | "$(inherited)", 770 | "$(DEVELOPER_FRAMEWORKS_DIR)", 771 | ); 772 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 773 | GCC_PREFIX_HEADER = "IOKitTest/IOKitTest-Prefix.pch"; 774 | GCC_PREPROCESSOR_DEFINITIONS = ( 775 | "DEBUG=1", 776 | "$(inherited)", 777 | ); 778 | INFOPLIST_FILE = "IOKitTestTests/IOKitBrowserTests-Info.plist"; 779 | PRODUCT_NAME = IOKitBrowserTests; 780 | TEST_HOST = "$(BUNDLE_LOADER)"; 781 | WRAPPER_EXTENSION = xctest; 782 | }; 783 | name = profiling; 784 | }; 785 | DAE539FBEE7A4889B8EAD138 /* adhoc */ = { 786 | isa = XCBuildConfiguration; 787 | buildSettings = { 788 | ALWAYS_SEARCH_USER_PATHS = NO; 789 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 790 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 791 | CLANG_CXX_LIBRARY = "libc++"; 792 | CLANG_ENABLE_MODULES = YES; 793 | CLANG_ENABLE_OBJC_ARC = YES; 794 | CLANG_WARN_BOOL_CONVERSION = YES; 795 | CLANG_WARN_CONSTANT_CONVERSION = YES; 796 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 797 | CLANG_WARN_EMPTY_BODY = YES; 798 | CLANG_WARN_ENUM_CONVERSION = YES; 799 | CLANG_WARN_INT_CONVERSION = YES; 800 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 801 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 802 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 803 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 804 | COPY_PHASE_STRIP = NO; 805 | GCC_C_LANGUAGE_STANDARD = gnu99; 806 | GCC_DYNAMIC_NO_PIC = NO; 807 | GCC_OPTIMIZATION_LEVEL = 0; 808 | GCC_PREPROCESSOR_DEFINITIONS = ( 809 | "DEBUG=1", 810 | "$(inherited)", 811 | ); 812 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 813 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 814 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 815 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 816 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 817 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 818 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 819 | GCC_WARN_MISSING_PARENTHESES = YES; 820 | GCC_WARN_SHADOW = YES; 821 | GCC_WARN_SIGN_COMPARE = YES; 822 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 823 | GCC_WARN_UNDECLARED_SELECTOR = YES; 824 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 825 | GCC_WARN_UNUSED_FUNCTION = YES; 826 | GCC_WARN_UNUSED_LABEL = YES; 827 | GCC_WARN_UNUSED_VALUE = YES; 828 | GCC_WARN_UNUSED_VARIABLE = YES; 829 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 830 | ONLY_ACTIVE_ARCH = YES; 831 | RUN_CLANG_STATIC_ANALYZER = YES; 832 | SDKROOT = iphoneos; 833 | TARGETED_DEVICE_FAMILY = "1,2"; 834 | }; 835 | name = adhoc; 836 | }; 837 | /* End XCBuildConfiguration section */ 838 | 839 | /* Begin XCConfigurationList section */ 840 | AD7E3E8A186BBBBB00E47119 /* Build configuration list for PBXProject "IOKitBrowser" */ = { 841 | isa = XCConfigurationList; 842 | buildConfigurations = ( 843 | AD7E3EC2186BBBBB00E47119 /* Debug */, 844 | AD7E3EC3186BBBBB00E47119 /* Release */, 845 | A230520F0D10488D815CA69C /* adhoc */, 846 | DAE539FBEE7A4889B8EAD138 /* adhoc */, 847 | 131952FD1E734D12BD1AD9A0 /* profiling */, 848 | 181C7BC432D84E9DA902BDAA /* profiling */, 849 | ); 850 | defaultConfigurationIsVisible = 0; 851 | defaultConfigurationName = Release; 852 | }; 853 | AD7E3EC4186BBBBB00E47119 /* Build configuration list for PBXNativeTarget "IOKitBrowser" */ = { 854 | isa = XCConfigurationList; 855 | buildConfigurations = ( 856 | AD7E3EC5186BBBBB00E47119 /* Debug */, 857 | AD7E3EC6186BBBBB00E47119 /* Release */, 858 | 254D11163F85421D922EA685 /* adhoc */, 859 | 0AAC631A05DE4B7697873C8E /* profiling */, 860 | ); 861 | defaultConfigurationIsVisible = 0; 862 | defaultConfigurationName = Release; 863 | }; 864 | AD7E3EC7186BBBBB00E47119 /* Build configuration list for PBXNativeTarget "IOKitBrowserTests" */ = { 865 | isa = XCConfigurationList; 866 | buildConfigurations = ( 867 | AD7E3EC8186BBBBB00E47119 /* Debug */, 868 | AD7E3EC9186BBBBB00E47119 /* Release */, 869 | 250897B0EE294EA7AD797C9D /* adhoc */, 870 | BE2506C58BAC468A9047E9A6 /* profiling */, 871 | ); 872 | defaultConfigurationIsVisible = 0; 873 | defaultConfigurationName = Release; 874 | }; 875 | /* End XCConfigurationList section */ 876 | }; 877 | rootObject = AD7E3E87186BBBBB00E47119 /* Project object */; 878 | } 879 | -------------------------------------------------------------------------------- /IOKitBrowser.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /IOKitBrowser.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /IOKitTest/ELLAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELLAppDelegate.h 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ELLAppDelegate : UIResponder 12 | 13 | @property(strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /IOKitTest/ELLAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELLAppDelegate.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import "ELLAppDelegate.h" 10 | #import "ELLIOKitViewModel.h" 11 | #import "ELLViewController.h" 12 | 13 | @implementation ELLAppDelegate 14 | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 16 | UINavigationController *rootViewController = (UINavigationController *) self.window.rootViewController; 17 | ELLViewController *viewController = (ELLViewController *)rootViewController.topViewController; 18 | 19 | ELLIOKitViewModel *viewModel = [[ELLIOKitViewModel alloc] init]; 20 | viewController.viewModel = viewModel; 21 | 22 | return YES; 23 | } 24 | 25 | - (void)applicationWillResignActive:(UIApplication *)application { 26 | // 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. 27 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 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 | - (void)applicationWillEnterForeground:(UIApplication *)application { 36 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 37 | } 38 | 39 | - (void)applicationDidBecomeActive:(UIApplication *)application { 40 | // 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. 41 | } 42 | 43 | - (void)applicationWillTerminate:(UIApplication *)application { 44 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 45 | } 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitDumper.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitDumper.h 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 10/02/2014. 6 | // Copyright (c) 2014 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "IOKitDefines.h" 11 | 12 | @class ELLIOKitNodeInfo; 13 | 14 | @interface ELLIOKitDumper : NSObject 15 | 16 | + (instancetype)sharedInstance; 17 | - (void)dumpIOKitTreeFromNode:(ELLIOKitNodeInfo *)fromNode completion:(void(^)(ELLIOKitNodeInfo *nodeInfo))completion; 18 | - (void)releaseIOKitService:(io_registry_entry_t)service; 19 | - (void)retainIOKitService:(io_registry_entry_t)service; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitDumper.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitDumper.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 10/02/2014. 6 | // Copyright (c) 2014 Electric Labs. All rights reserved. 7 | // 8 | // This code is based on Apple's IOKitTools http://opensource.apple.com/source/IOKitTools/IOKitTools-89.1.1/ioreg.tproj/ioreg.c 9 | 10 | #import "ELLIOKitDumper.h" 11 | #import 12 | #import "ELLIOKitNodeInfo.h" 13 | 14 | 15 | static void assertion(int condition, char *message) { 16 | if (condition == 0) { 17 | fprintf(stderr, "ioreg: error: %s.\n", message); 18 | exit(1); 19 | } 20 | } 21 | 22 | const UInt32 kIORegFlagShowProperties = (1 << 1); 23 | 24 | struct options { 25 | char *class; 26 | UInt32 flags; 27 | char *name; 28 | char *plane; 29 | }; 30 | 31 | 32 | @interface ELLIOKitDumper () 33 | @property (nonatomic, assign) IORegistryGetRootEntryShim IORegistryGetRootEntryShim; 34 | @property (nonatomic, assign) IOMasterPortShim IOMasterPortShim; 35 | @property (nonatomic, assign) IORegistryEntryGetNameInPlaneShim IORegistryEntryGetNameInPlaneShim; 36 | @property (nonatomic, assign) IOObjectReleaseShim IOObjectReleaseShim; 37 | @property (nonatomic, assign) IOObjectRetainShim IOObjectRetainShim; 38 | @property (nonatomic, assign) IOIteratorNextShim IOIteratorNextShim; 39 | @property (nonatomic, assign) IORegistryEntryCreateCFPropertiesShim IORegistryEntryCreateCFPropertiesShim; 40 | @property (nonatomic, assign) IOObjectConformsToShim IOObjectConformsToShim; 41 | @property (nonatomic, assign) IORegistryEntryGetChildIteratorShim IORegistryEntryGetChildIteratorShim; 42 | @end 43 | 44 | 45 | 46 | @implementation ELLIOKitDumper 47 | 48 | - (instancetype)init { 49 | self = [super init]; 50 | if (self) { 51 | [self _prepFuncs]; 52 | } 53 | return self; 54 | } 55 | 56 | + (instancetype)sharedInstance { 57 | static dispatch_once_t pred; 58 | static ELLIOKitDumper *service = nil; 59 | dispatch_once(&pred, ^{ service = [[self alloc] init]; }); 60 | return service; 61 | } 62 | 63 | 64 | - (void)_prepFuncs { 65 | NSString *bundlePath = [[NSBundle bundleWithPath:@"/System/Library/Frameworks/IOKit.framework"] bundlePath]; 66 | NSURL *bundleURL = [NSURL fileURLWithPath:bundlePath]; 67 | CFBundleRef cfBundle = CFBundleCreate(kCFAllocatorDefault, (CFURLRef)bundleURL); 68 | 69 | self.IORegistryGetRootEntryShim = CFBundleGetFunctionPointerForName(cfBundle, CFSTR("IORegistryGetRootEntry")); 70 | self.IOMasterPortShim = CFBundleGetFunctionPointerForName(cfBundle, CFSTR("IOMasterPort")); 71 | self.IORegistryEntryGetNameInPlaneShim = CFBundleGetFunctionPointerForName(cfBundle, CFSTR("IORegistryEntryGetNameInPlane")); 72 | self.IOObjectReleaseShim = CFBundleGetFunctionPointerForName(cfBundle, CFSTR("IOObjectRelease")); 73 | self.IOObjectRetainShim = CFBundleGetFunctionPointerForName(cfBundle, CFSTR("IOObjectRetain")); 74 | self.IOIteratorNextShim = CFBundleGetFunctionPointerForName(cfBundle, CFSTR("IOIteratorNext")); 75 | self.IORegistryEntryCreateCFPropertiesShim = CFBundleGetFunctionPointerForName(cfBundle, CFSTR("IORegistryEntryCreateCFProperties")); 76 | self.IOObjectConformsToShim = CFBundleGetFunctionPointerForName(cfBundle, CFSTR("IOObjectConformsTo")); 77 | self.IORegistryEntryGetChildIteratorShim = CFBundleGetFunctionPointerForName(cfBundle, CFSTR("IORegistryEntryGetChildIterator")); 78 | 79 | CFRelease(cfBundle); 80 | } 81 | 82 | - (void)dumpIOKitTreeFromNode:(ELLIOKitNodeInfo *)fromNode completion:(void(^)(ELLIOKitNodeInfo *nodeInfo))completion { 83 | 84 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 85 | 86 | mach_port_t iokitPort = 0; 87 | struct options options; 88 | io_registry_entry_t service = 0; 89 | kern_return_t status = KERN_SUCCESS; 90 | 91 | options.class = 0; 92 | options.flags = kIORegFlagShowProperties; 93 | options.name = 0; 94 | options.plane = kIOServicePlane; 95 | 96 | status = self.IOMasterPortShim(bootstrap_port, &iokitPort); 97 | assertion(status == KERN_SUCCESS, "can't obtain I/O Kit's master port"); 98 | 99 | 100 | if (fromNode == nil) { 101 | service = self.IORegistryGetRootEntryShim(iokitPort); 102 | } else { 103 | service = fromNode.service; 104 | } 105 | 106 | assertion(service, "can't obtain I/O Kit's root service"); 107 | 108 | ELLIOKitNodeInfo *root = [self _scan:fromNode.parent service:service options:options]; 109 | 110 | dispatch_async(dispatch_get_main_queue(), ^{ 111 | completion(root); 112 | }); 113 | 114 | }); 115 | 116 | } 117 | 118 | 119 | - (ELLIOKitNodeInfo *)_scan:(ELLIOKitNodeInfo *)parent service:(io_registry_entry_t)service options:(struct options)options { 120 | 121 | io_registry_entry_t child = 0; 122 | io_registry_entry_t childUpNext = 0; 123 | io_iterator_t children = 0; 124 | kern_return_t status = KERN_SUCCESS; 125 | 126 | // Obtain the service's children. 127 | 128 | status = self.IORegistryEntryGetChildIteratorShim(service, options.plane, &children); 129 | assertion(status == KERN_SUCCESS, "can't obtain children"); 130 | 131 | childUpNext = self.IOIteratorNextShim(children); 132 | 133 | ELLIOKitNodeInfo *node = [self _showService:service parent:parent options:options]; 134 | 135 | // Traverse over the children of this service. 136 | while (childUpNext) { 137 | child = childUpNext; 138 | childUpNext = self.IOIteratorNextShim(children); 139 | 140 | ELLIOKitNodeInfo *childNode = [self _scan:node service:child options:options]; 141 | 142 | [node addChild:childNode]; 143 | 144 | } 145 | 146 | self.IOObjectReleaseShim(children); 147 | children = 0; 148 | 149 | return node; 150 | 151 | } 152 | 153 | - (void)releaseIOKitService:(io_registry_entry_t)service { 154 | self.IOObjectReleaseShim(service); 155 | } 156 | 157 | - (void)retainIOKitService:(io_registry_entry_t)service { 158 | self.IOObjectRetainShim(service); 159 | } 160 | 161 | - (ELLIOKitNodeInfo *)_showService:(io_registry_entry_t)service parent:(ELLIOKitNodeInfo *)parent options:(struct options)options { 162 | io_name_t name; 163 | CFMutableDictionaryRef properties = 0; 164 | kern_return_t status = KERN_SUCCESS; 165 | 166 | self.IORegistryEntryGetNameInPlaneShim(service, options.plane, name); 167 | 168 | NSMutableArray *translatedProperties = [NSMutableArray new]; 169 | 170 | if (options.class && self.IOObjectConformsToShim(service, options.class)) { 171 | options.flags |= kIORegFlagShowProperties; 172 | } 173 | 174 | if (options.name && !strcmp(name, options.name)) { 175 | options.flags |= kIORegFlagShowProperties; 176 | } 177 | 178 | if (options.flags & kIORegFlagShowProperties) { 179 | 180 | // Obtain the service's properties. 181 | 182 | status = self.IORegistryEntryCreateCFPropertiesShim(service, 183 | &properties, 184 | kCFAllocatorDefault, 185 | kNilOptions); 186 | 187 | assertion(status == KERN_SUCCESS, "can't obtain properties"); 188 | 189 | CFDictionaryApplyFunction(properties, CFDictionaryShow_Applier, (__bridge void *) (translatedProperties)); 190 | 191 | CFRelease(properties); 192 | } 193 | 194 | return [[ELLIOKitNodeInfo alloc] initWithParent:parent service:service nodeInfoWithInfo:[NSString stringWithCString:name encoding:NSUTF8StringEncoding] properties:translatedProperties]; 195 | 196 | 197 | } 198 | 199 | static void CFArrayShow_Applier(const void *value, void *parameter) { 200 | NSMutableArray *translatedElements = (__bridge NSMutableArray *) parameter; 201 | NSString *translatedElement = CFObjectShow(value); 202 | 203 | if (translatedElement) { 204 | [translatedElements addObject:translatedElement]; 205 | } 206 | } 207 | 208 | static NSString *CFArrayShow(CFArrayRef object) { 209 | CFRange range = {0, CFArrayGetCount(object)}; 210 | NSMutableArray *translatedElements = [NSMutableArray new]; 211 | CFArrayApplyFunction(object, range, CFArrayShow_Applier, (__bridge void *) (translatedElements)); 212 | 213 | return [NSString stringWithFormat:@"(%@)", [translatedElements componentsJoinedByString:@","]]; 214 | } 215 | 216 | static NSString *CFBooleanShow(CFBooleanRef object) { 217 | return CFBooleanGetValue(object) ? @"Yes" : @"No"; 218 | } 219 | 220 | static NSString *CFDataShow(CFDataRef object) { 221 | UInt32 asciiNormalCount = 0; 222 | UInt32 asciiSymbolCount = 0; 223 | const UInt8 *bytes; 224 | CFIndex index; 225 | CFIndex length; 226 | 227 | NSMutableString *result = [[NSMutableString alloc] initWithString:@"<"]; 228 | 229 | length = CFDataGetLength(object); 230 | bytes = CFDataGetBytePtr(object); 231 | 232 | // 233 | // This algorithm detects ascii strings, or a set of ascii strings, inside a 234 | // stream of bytes. The string, or last string if in a set, needn't be null 235 | // terminated. High-order symbol characters are accepted, unless they occur 236 | // too often (80% of characters must be normal). Zero padding at the end of 237 | // the string(s) is valid. If the data stream is only one byte, it is never 238 | // considered to be a string. 239 | // 240 | 241 | for (index = 0; index < length; index++) { // (scan for ascii string/strings) 242 | 243 | if (bytes[index] == 0) { // (detected null in place of a new string, 244 | // ensure remainder of the string is null) 245 | for (; index < length && bytes[index] == 0; index++) {} 246 | 247 | break; // (either end of data or a non-null byte in stream) 248 | } else { // (scan along this potential ascii string) 249 | 250 | for (; index < length; index++) { 251 | if (isprint(bytes[index])) { 252 | asciiNormalCount++; 253 | } else if (bytes[index] >= 128 && bytes[index] <= 254) { 254 | asciiSymbolCount++; 255 | } else { 256 | break; 257 | } 258 | } 259 | 260 | if (index < length && bytes[index] == 0) { // (end of string) 261 | continue; 262 | } else { 263 | break; 264 | } 265 | } 266 | } 267 | 268 | if ((asciiNormalCount >> 2) < asciiSymbolCount) { // (is 80% normal ascii?) 269 | index = 0; 270 | } else if (length == 1) { // (is just one byte?) 271 | index = 0; 272 | } 273 | 274 | if (index >= length && asciiNormalCount) { // (is a string or set of strings?) 275 | Boolean quoted = FALSE; 276 | 277 | for (index = 0; index < length; index++) { 278 | if (bytes[index]) { 279 | if (quoted == FALSE) { 280 | quoted = TRUE; 281 | if (index) { 282 | [result appendString:@",\""]; 283 | } else { 284 | [result appendString:@"\""]; 285 | } 286 | } 287 | [result appendFormat:@"%c", bytes[index]]; 288 | } else { 289 | if (quoted == TRUE) { 290 | quoted = FALSE; 291 | [result appendString:@"\""]; 292 | } else { 293 | break; 294 | } 295 | } 296 | } 297 | if (quoted == TRUE) { 298 | [result appendString:@"\""]; 299 | } 300 | } else { // (is not a string or set of strings) 301 | for (index = 0; index < length; index++) { 302 | [result appendFormat:@"%02x", bytes[index]]; 303 | } 304 | } 305 | 306 | [result appendString:@">"]; 307 | return result; 308 | } 309 | 310 | static void CFDictionaryShow_Applier(const void *key, const void *value, void *parameter) { 311 | 312 | NSMutableArray *translatedElements = (__bridge NSMutableArray *) (parameter); 313 | 314 | NSString *name = CFObjectShow(key); 315 | NSString *val = CFObjectShow(value); 316 | 317 | if (name) { 318 | [translatedElements addObject:[NSString stringWithFormat:@"%@ = %@", name, val ?: @""]]; 319 | } 320 | } 321 | 322 | static NSString *CFDictionaryShow(CFDictionaryRef object) { 323 | NSMutableArray *translatedElements = [NSMutableArray new]; 324 | 325 | CFDictionaryApplyFunction(object, CFDictionaryShow_Applier, (__bridge void *) (translatedElements)); 326 | 327 | return [NSString stringWithFormat:@"{%@}", [translatedElements componentsJoinedByString:@","]]; 328 | } 329 | 330 | static NSString *CFNumberShow(CFNumberRef object) { 331 | long long number; 332 | 333 | if (CFNumberGetValue(object, kCFNumberLongLongType, &number)) { 334 | return [NSString stringWithFormat:@"%qd", number]; 335 | } 336 | return @""; 337 | } 338 | 339 | static NSString *CFObjectShow(CFTypeRef object) { 340 | CFTypeID type = CFGetTypeID(object); 341 | 342 | if (type == CFArrayGetTypeID()) return CFArrayShow(object); 343 | else if (type == CFBooleanGetTypeID()) return CFBooleanShow(object); 344 | else if (type == CFDataGetTypeID()) return CFDataShow(object); 345 | else if (type == CFDictionaryGetTypeID()) return CFDictionaryShow(object); 346 | else if (type == CFNumberGetTypeID()) return CFNumberShow(object); 347 | else if (type == CFSetGetTypeID()) return CFSetShow(object); 348 | else if (type == CFStringGetTypeID()) return CFStringShow(object); 349 | else return @""; 350 | } 351 | 352 | static void CFSetShow_Applier(const void *value, void *parameter) { 353 | NSMutableArray *translatedElements = (__bridge NSMutableArray *) (parameter); 354 | NSString *objectValue = CFObjectShow(value); 355 | 356 | if (objectValue) { 357 | [translatedElements addObject:objectValue]; 358 | } 359 | } 360 | 361 | static NSString *CFSetShow(CFSetRef object) { 362 | NSMutableArray *translatedElements = [NSMutableArray new]; 363 | CFSetApplyFunction(object, CFSetShow_Applier, (__bridge void *) (translatedElements)); 364 | return [NSString stringWithFormat:@"[%@]", [translatedElements componentsJoinedByString:@","]]; 365 | } 366 | 367 | static NSString *CFStringShow(CFStringRef object) { 368 | 369 | NSString *stringToShow = @""; 370 | 371 | const char *c = CFStringGetCStringPtr(object, kCFStringEncodingMacRoman); 372 | 373 | if (c) { 374 | return [NSString stringWithFormat:@"%s", c]; 375 | } else { 376 | CFIndex bufferSize = CFStringGetLength(object) + 1; 377 | char *buffer = malloc(bufferSize); 378 | 379 | if (buffer) { 380 | if (CFStringGetCString(object, buffer, bufferSize, kCFStringEncodingMacRoman)) { 381 | stringToShow = [NSString stringWithFormat:@"%s", buffer]; 382 | } 383 | 384 | free(buffer); 385 | } 386 | } 387 | return stringToShow; 388 | } 389 | 390 | @end 391 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitNodeInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitNodeInfo.h 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 28/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "IOKitDefines.h" 11 | 12 | @interface ELLIOKitNodeInfo : NSObject 13 | 14 | @property(nonatomic, weak) ELLIOKitNodeInfo *parent; 15 | @property(nonatomic, copy, readonly) NSMutableArray *children; 16 | 17 | 18 | @property(nonatomic, strong) NSString *name; 19 | @property(nonatomic, strong) NSArray *properties; 20 | @property(nonatomic, assign) io_registry_entry_t service; 21 | 22 | 23 | @property(nonatomic, assign) NSInteger searchCount; 24 | @property(nonatomic, strong) NSArray *matchingProperties; 25 | @property(nonatomic, strong) NSArray *matchedChildren; 26 | 27 | 28 | - (id)initWithParent:(ELLIOKitNodeInfo *)parent service:(io_registry_entry_t)service nodeInfoWithInfo:(NSString *)info properties:(NSArray *)properties; 29 | 30 | - (void)addChild:(ELLIOKitNodeInfo *)child; 31 | - (void)replaceChild:(ELLIOKitNodeInfo *)child withChild:(ELLIOKitNodeInfo *)replacementChild; 32 | 33 | - (void)searchForTerm:(NSString *)searchTerm; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitNodeInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitNodeInfo.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 28/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import "ELLIOKitNodeInfo.h" 10 | #import "ELLIOKitDumper.h" 11 | 12 | @implementation ELLIOKitNodeInfo 13 | 14 | 15 | - (instancetype)init { 16 | self = [super init]; 17 | if (self) { 18 | _children = [NSMutableArray new]; 19 | } 20 | return self; 21 | } 22 | 23 | - (id)initWithParent:(ELLIOKitNodeInfo *)parent service:(io_registry_entry_t)service nodeInfoWithInfo:(NSString *)info properties:(NSArray *)properties { 24 | self = [self init]; 25 | if (self) { 26 | _parent = parent; 27 | _service = service; 28 | [[ELLIOKitDumper sharedInstance] retainIOKitService:_service]; 29 | _name = info; 30 | _properties = properties; 31 | 32 | } 33 | return self; 34 | } 35 | 36 | - (void)dealloc { 37 | [[ELLIOKitDumper sharedInstance] releaseIOKitService:_service]; 38 | } 39 | 40 | - (void)addChild:(ELLIOKitNodeInfo *)child { 41 | [_children addObject:child]; 42 | } 43 | 44 | - (void)replaceChild:(ELLIOKitNodeInfo *)child withChild:(ELLIOKitNodeInfo *)replacementChild { 45 | NSUInteger childIndex = [_children indexOfObject:child]; 46 | if (childIndex != NSNotFound) { 47 | [_children replaceObjectAtIndex:childIndex withObject:replacementChild]; 48 | } 49 | if (_matchedChildren.count) { 50 | NSUInteger matchedChildIndex = [_matchedChildren indexOfObject:child]; 51 | if (matchedChildIndex != NSNotFound) { 52 | NSMutableArray *matchedChildren = [_matchedChildren mutableCopy]; 53 | [matchedChildren replaceObjectAtIndex:matchedChildIndex withObject:replacementChild]; 54 | self.matchedChildren = matchedChildren; 55 | } 56 | } 57 | } 58 | 59 | - (void)searchForTerm:(NSString *)searchTerm { 60 | [self _searchForTerm:searchTerm inSubTree:self]; 61 | } 62 | 63 | - (NSInteger)_searchForTerm:(NSString *)searchTerm inSubTree:(ELLIOKitNodeInfo *)subTree { 64 | __block NSInteger searchCount = 0; 65 | 66 | if (subTree.name.length && [subTree.name rangeOfString:searchTerm options:NSCaseInsensitiveSearch].location != NSNotFound) { 67 | searchCount++; 68 | } 69 | 70 | 71 | NSMutableArray *matchingProperties = [NSMutableArray new]; 72 | 73 | [subTree.properties enumerateObjectsUsingBlock:^(NSString *obj, NSUInteger idx, BOOL *stop) { 74 | if ([obj rangeOfString:searchTerm options:NSCaseInsensitiveSearch].location != NSNotFound) { 75 | searchCount++; 76 | [matchingProperties addObject:obj]; 77 | } 78 | }]; 79 | 80 | 81 | NSMutableArray *matchedChildren = [NSMutableArray new]; 82 | 83 | for (ELLIOKitNodeInfo *child in subTree.children) { 84 | NSInteger preThisPropertySearchCount = searchCount; 85 | searchCount += [self _searchForTerm:searchTerm inSubTree:child]; 86 | if (searchCount > preThisPropertySearchCount) { 87 | [matchedChildren addObject:child]; 88 | } 89 | } 90 | 91 | subTree.matchingProperties = matchingProperties; 92 | subTree.matchedChildren = matchedChildren; 93 | return subTree.searchCount = searchCount; 94 | } 95 | 96 | @end 97 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitViewModel.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitViewModel.h 3 | // IOKitBrowser 4 | // 5 | // Created by Christopher Anderson on 25/11/2014. 6 | // Copyright (c) 2014 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | extern NSString * const kDepthAttribute; 12 | 13 | typedef NS_ENUM(NSUInteger, ELLIOKitViewModelState) { 14 | ELLIOKitViewModelStateLoading, 15 | ELLIOKitViewModelStateSearching, 16 | ELLIOKitViewModelStateLoaded 17 | }; 18 | 19 | @interface ELLIOKitViewModel : NSObject 20 | 21 | @property (nonatomic, readonly, assign) ELLIOKitViewModelState state; 22 | @property (nonatomic, readonly, copy) NSString *filterTerm; 23 | @property (nonatomic, readonly, copy) NSString *title; 24 | @property (nonatomic, readonly, copy) NSAttributedString *trail; 25 | 26 | - (void)load; 27 | - (void)refresh; 28 | - (void)filterModelByTerm:(NSString *)filterTerm; 29 | - (void)clearFilter; 30 | 31 | - (ELLIOKitViewModel *) viewModelForIndexPath:(NSIndexPath *)indexPath; 32 | - (BOOL) hasChildren:(NSIndexPath *)indexPath; 33 | 34 | - (NSAttributedString *) titleForIndexPath:(NSIndexPath *)indexPath; 35 | - (NSString *) titleForHeaderInSection:(NSInteger)section; 36 | - (NSInteger) numberOfRowsInSection:(NSInteger)section; 37 | - (NSInteger) numberOfSections; 38 | 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitViewModel.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitViewModel.m 3 | // IOKitBrowser 4 | // 5 | // Created by Christopher Anderson on 25/11/2014. 6 | // Copyright (c) 2014 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import "ELLIOKitViewModel.h" 10 | #import "ELLIOKitNodeInfo.h" 11 | #import "ELLIOKitDumper.h" 12 | 13 | #define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1] 14 | 15 | @interface ELLIOKitViewModel () 16 | @property (nonatomic, readwrite, strong) ELLIOKitNodeInfo *nodeInfo; 17 | @property (nonatomic, readwrite, copy) NSString *filterTerm; 18 | @property (nonatomic, readwrite, assign) ELLIOKitViewModelState state; 19 | @property (nonatomic, readwrite, copy) NSString *title; 20 | @property (nonatomic, readwrite, copy) NSAttributedString *trail; 21 | @end 22 | 23 | @implementation ELLIOKitViewModel 24 | 25 | NSString * const kDepthAttribute = @"kDepthAttribute"; 26 | 27 | - (instancetype)initWithNodeInfo:(ELLIOKitNodeInfo *)nodeInfo filterTerm:(NSString *)filterTerm { 28 | self = [super init]; 29 | if (self) { 30 | self.nodeInfo = nodeInfo; 31 | self.filterTerm = filterTerm; 32 | } 33 | return self; 34 | } 35 | 36 | 37 | - (void)load { 38 | if (!_nodeInfo) { 39 | [self _load]; 40 | } else { 41 | self.state = ELLIOKitViewModelStateLoaded; 42 | } 43 | } 44 | 45 | - (void)refresh { 46 | [self _load]; 47 | } 48 | 49 | - (void)_load { 50 | self.state = ELLIOKitViewModelStateLoading; 51 | ELLIOKitDumper *dumper = [ELLIOKitDumper sharedInstance]; 52 | [dumper dumpIOKitTreeFromNode:self.nodeInfo completion:^(ELLIOKitNodeInfo *nodeInfo) { 53 | self.nodeInfo = nodeInfo; 54 | if (self.filterTerm.length) { 55 | [self.nodeInfo searchForTerm:self.filterTerm]; 56 | } 57 | self.state = ELLIOKitViewModelStateLoaded; 58 | }]; 59 | } 60 | 61 | -(void)setNodeInfo:(ELLIOKitNodeInfo *)nodeInfo { 62 | if (_nodeInfo != nodeInfo) { 63 | [_nodeInfo.parent replaceChild:_nodeInfo withChild:nodeInfo]; 64 | _nodeInfo = nodeInfo; 65 | self.title = nodeInfo.name; 66 | } 67 | } 68 | 69 | - (void)filterModelByTerm:(NSString *)filterTerm { 70 | self.state = ELLIOKitViewModelStateSearching; 71 | [self.nodeInfo searchForTerm:filterTerm]; 72 | self.filterTerm = filterTerm; 73 | self.state = ELLIOKitViewModelStateLoaded; 74 | } 75 | 76 | - (void)clearFilter { 77 | self.filterTerm = nil; 78 | } 79 | 80 | - (ELLIOKitViewModel *) viewModelForIndexPath:(NSIndexPath *)indexPath { 81 | if (indexPath.section == 1){ 82 | ELLIOKitNodeInfo *childNode = [self _childrenForLocation][indexPath.row]; 83 | ELLIOKitViewModel *childViewModel = [[ELLIOKitViewModel alloc] initWithNodeInfo:childNode filterTerm:self.filterTerm]; 84 | return childViewModel; 85 | } 86 | return nil; 87 | } 88 | 89 | - (BOOL) hasChildren:(NSIndexPath *)indexPath { 90 | return indexPath.section == 1; 91 | } 92 | 93 | - (NSAttributedString *) titleForIndexPath:(NSIndexPath *)indexPath { 94 | NSString *cellText = @""; 95 | if (indexPath.section == 0) { 96 | cellText = [self _propertiesForLocation][indexPath.row]; 97 | 98 | } else { 99 | ELLIOKitNodeInfo *childNode = [self _childrenForLocation][indexPath.row]; 100 | 101 | cellText = [NSString stringWithFormat:@"%@ %@", childNode.name, 102 | childNode.searchCount && _filterTerm.length ? [NSString stringWithFormat:@"[%li]", (long) childNode.searchCount] : @""]; 103 | } 104 | 105 | NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:cellText]; 106 | [self _highlightSearchTerm:self.filterTerm inText:text]; 107 | 108 | return text; 109 | } 110 | 111 | - (NSString *) titleForHeaderInSection:(NSInteger)section { 112 | if (section == 0) { 113 | return [[self _propertiesForLocation] count] ? @"Properties" : @""; 114 | } else { 115 | return [[self _childrenForLocation] count] ? @"Children" : @""; 116 | } 117 | } 118 | 119 | 120 | - (NSInteger) numberOfRowsInSection:(NSInteger)section { 121 | if (section == 0) { 122 | return [[self _propertiesForLocation] count]; 123 | } else { 124 | return [[self _childrenForLocation] count]; 125 | } 126 | 127 | } 128 | 129 | - (NSInteger)numberOfSections { 130 | return 2; 131 | } 132 | 133 | 134 | #pragma mark Helpers 135 | 136 | - (NSAttributedString *) trail { 137 | 138 | 139 | NSMutableArray *stack = [@[self.nodeInfo.name ?: @""] mutableCopy]; 140 | ELLIOKitNodeInfo *node = self.nodeInfo.parent; 141 | while (node != nil) { 142 | [stack addObject:node.name ?: @"Root"]; 143 | node = node.parent; 144 | } 145 | 146 | NSArray *reversedStack = [[stack reverseObjectEnumerator] allObjects]; 147 | 148 | NSMutableAttributedString *trail = [[NSMutableAttributedString alloc] init]; 149 | [reversedStack enumerateObjectsUsingBlock:^(NSString *element, NSUInteger idx, BOOL *stop) { 150 | NSAttributedString *trailElement = [[NSAttributedString alloc] initWithString:element 151 | attributes:@{ kDepthAttribute: @(idx), 152 | NSFontAttributeName : [UIFont systemFontOfSize:14.0] }]; 153 | [trail appendAttributedString:trailElement]; 154 | if (idx < reversedStack.count - 1) { 155 | NSAttributedString *chevron = [[NSAttributedString alloc] initWithString:@" → "]; 156 | [trail appendAttributedString:chevron]; 157 | 158 | } 159 | }]; 160 | 161 | NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init]; 162 | paragraphStyle.lineHeightMultiple = 1.2f; 163 | 164 | [trail addAttributes:@{NSParagraphStyleAttributeName : paragraphStyle} range:NSMakeRange(0, trail.length)]; 165 | 166 | return trail; 167 | } 168 | 169 | - (NSArray *)_propertiesForLocation { 170 | return self.filterTerm.length ? self.nodeInfo.matchingProperties : self.nodeInfo.properties; 171 | } 172 | 173 | - (NSArray *)_childrenForLocation { 174 | return (self.filterTerm.length ? self.nodeInfo.matchedChildren : self.nodeInfo.children); 175 | } 176 | 177 | 178 | - (void)_highlightSearchTerm:(NSString *)searchTerm inText:(NSMutableAttributedString *)text { 179 | if (searchTerm.length) { 180 | NSDictionary *attrs = @{NSBackgroundColorAttributeName : [UIColor yellowColor]}; 181 | 182 | NSRange range = [text.string rangeOfString:searchTerm options:NSCaseInsensitiveSearch]; 183 | while (range.location != NSNotFound) { 184 | [text setAttributes:attrs range:range]; 185 | range = [text.string rangeOfString:searchTerm 186 | options:NSCaseInsensitiveSearch 187 | range:NSMakeRange(range.location + 1, [text length] - range.location - 1)]; 188 | } 189 | 190 | } 191 | } 192 | 193 | 194 | 195 | 196 | @end 197 | -------------------------------------------------------------------------------- /IOKitTest/ELLViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELLViewController.h 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class ELLIOKitViewModel; 12 | 13 | @interface ELLViewController : UIViewController 14 | 15 | @property (nonatomic, strong) ELLIOKitViewModel *viewModel; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /IOKitTest/ELLViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELLViewController.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import "ELLViewController.h" 10 | #import "ELLIOKitNodeInfo.h" 11 | #import "ELLIOKitDumper.h" 12 | #import "ELLIOKitViewModel.h" 13 | #import 14 | 15 | @interface ELLCopyMenuItem : UIMenuItem 16 | @property (nonatomic, strong) NSString *IOKitText; 17 | @end 18 | 19 | @implementation ELLCopyMenuItem 20 | @end 21 | 22 | @interface ELLViewController () 23 | @property(nonatomic, strong) ELLIOKitNodeInfo *root; 24 | @property(nonatomic, strong) ELLIOKitNodeInfo *locationInTree; 25 | 26 | @property(nonatomic, strong) IBOutlet UITableView *tableView; 27 | @property(nonatomic, strong) IBOutlet UIActivityIndicatorView *spinner; 28 | @property(nonatomic, strong) IBOutlet UISearchBar *searchBar; 29 | @property(nonatomic, strong) IBOutlet UITextView *trailLabel; 30 | @property(nonatomic, strong) IBOutlet UIView *trailHolder; 31 | @property(nonatomic, strong) IBOutlet NSLayoutConstraint *textHeightConstraint; 32 | 33 | @property (nonatomic, strong) UITableViewCell *sizingCell; 34 | 35 | @property(nonatomic, strong) NSMutableArray *trailStack; 36 | @property(nonatomic, strong) NSMutableArray *offsetStack; 37 | 38 | @property (nonatomic, strong) UIBarButtonItem *refreshButton; 39 | 40 | @property(nonatomic, copy) NSString *searchTerm; 41 | 42 | @property(nonatomic, strong) NSTimer *searchDelayTimer; 43 | @property(nonatomic, strong) FBKVOController *KVOController; 44 | @property(nonatomic, assign) BOOL menuVisible; 45 | 46 | @end 47 | 48 | @implementation ELLViewController 49 | 50 | static NSString *kSearchTerm = @"kSearchTerm"; 51 | 52 | - (void)awakeFromNib { 53 | [[NSNotificationCenter defaultCenter] addObserver:self 54 | selector:@selector(keyboardWasShown:) 55 | name:UIKeyboardDidShowNotification object:nil]; 56 | 57 | [[NSNotificationCenter defaultCenter] addObserver:self 58 | selector:@selector(keyboardWillBeHidden:) 59 | name:UIKeyboardWillHideNotification object:nil]; 60 | self.KVOController = [[FBKVOController alloc] initWithObserver:self]; 61 | 62 | 63 | } 64 | 65 | 66 | - (void)dealloc { 67 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 68 | [_searchDelayTimer invalidate]; 69 | } 70 | 71 | - (void)viewWillAppear:(BOOL)animated { 72 | [super viewWillAppear:animated]; 73 | [self.viewModel load]; 74 | } 75 | 76 | 77 | - (void)viewDidLoad { 78 | [super viewDidLoad]; 79 | self.sizingCell = [self.tableView dequeueReusableCellWithIdentifier:@"ELLViewControllerCellPropertiesIdentifier"]; 80 | self.refreshButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(refresh:)]; 81 | self.navigationItem.rightBarButtonItem = self.refreshButton; 82 | } 83 | 84 | 85 | - (void)setViewModel:(ELLIOKitViewModel *)viewModel { 86 | if (viewModel != _viewModel) { 87 | _viewModel = viewModel; 88 | 89 | [self.KVOController observe:viewModel keyPath:@"state" options:NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew block:^(ELLViewController *observer, ELLIOKitViewModel *model, NSDictionary *change) { 90 | 91 | observer.title = model.title; 92 | 93 | switch (model.state) { 94 | case ELLIOKitViewModelStateLoaded: { 95 | observer.tableView.hidden = NO; 96 | [observer.spinner stopAnimating]; 97 | [observer.tableView reloadData]; 98 | 99 | observer.refreshButton.enabled = YES; 100 | 101 | observer.title = observer.viewModel.title; 102 | observer.searchBar.text = observer.viewModel.filterTerm; 103 | 104 | observer.trailLabel.hidden = NO; 105 | observer.trailLabel.attributedText = observer.viewModel.trail; 106 | 107 | CGSize sizeThatShouldFitTheContent = [observer.trailLabel sizeThatFits:CGSizeMake(CGRectGetWidth(observer.view.bounds), CGFLOAT_MAX)]; 108 | observer.textHeightConstraint.constant = sizeThatShouldFitTheContent.height; 109 | 110 | } 111 | break; 112 | case ELLIOKitViewModelStateSearching:{ 113 | [observer.spinner startAnimating]; 114 | } 115 | break; 116 | case ELLIOKitViewModelStateLoading: { 117 | observer.tableView.hidden = YES; 118 | observer.refreshButton.enabled = NO; 119 | observer.trailLabel.hidden = YES; 120 | [observer.spinner startAnimating]; 121 | } 122 | break; 123 | default: 124 | break; 125 | } 126 | }]; 127 | 128 | } 129 | } 130 | 131 | - (void)refresh:(id)sender { 132 | [self.viewModel refresh]; 133 | } 134 | 135 | 136 | #pragma mark UITableViewDataSource 137 | 138 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 139 | return [self.viewModel numberOfRowsInSection:section]; 140 | } 141 | 142 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { 143 | return self.viewModel.numberOfSections; 144 | } 145 | 146 | - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { 147 | return [self.viewModel titleForHeaderInSection:section]; 148 | } 149 | 150 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 151 | static NSString *identifier = @"ELLViewControllerCellPropertiesIdentifier"; 152 | 153 | UITableViewCell *cell = [_tableView dequeueReusableCellWithIdentifier:identifier]; 154 | if (cell == nil) { 155 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; 156 | } 157 | 158 | UILabel *textLabel = (UILabel *)[cell viewWithTag:101]; 159 | textLabel.attributedText = [self.viewModel titleForIndexPath:indexPath]; 160 | 161 | cell.accessoryType = [self.viewModel hasChildren:indexPath] ? UITableViewCellAccessoryDisclosureIndicator : UITableViewCellAccessoryNone; 162 | 163 | return cell; 164 | } 165 | 166 | 167 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { 168 | UILabel *textLabel = (UILabel *)[self.sizingCell viewWithTag:101]; 169 | textLabel.attributedText = [self.viewModel titleForIndexPath:indexPath]; 170 | CGSize calcualtedSize = [textLabel sizeThatFits:CGSizeMake(CGRectGetWidth(tableView.bounds) - 16.0f, CGFLOAT_MAX)]; 171 | return MIN(600.0f, calcualtedSize.height + 30.0f); 172 | } 173 | 174 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 175 | if (![self.viewModel hasChildren:indexPath]) { 176 | UIMenuController *menuController = [UIMenuController sharedMenuController]; 177 | 178 | if (self.menuVisible) { 179 | [self resignFirstResponder]; 180 | [menuController setMenuVisible:NO animated:YES]; 181 | self.menuVisible = NO; 182 | } else { 183 | [self becomeFirstResponder]; 184 | NSString *IOKitTextForRow = [self.viewModel titleForIndexPath:indexPath].string; 185 | ELLCopyMenuItem *copyMenuItem = [[ELLCopyMenuItem alloc] initWithTitle:@"Copy" action:@selector(copyMenuButtonPressed:)]; 186 | copyMenuItem.IOKitText = IOKitTextForRow; 187 | menuController.menuItems = @[copyMenuItem]; 188 | [menuController setTargetRect:[self.tableView rectForRowAtIndexPath:indexPath] inView:self.tableView]; 189 | [menuController setMenuVisible:YES animated:YES]; 190 | self.menuVisible = YES; 191 | } 192 | 193 | } 194 | 195 | [tableView deselectRowAtIndexPath:indexPath animated:YES]; 196 | } 197 | 198 | #pragma mark segways 199 | 200 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { 201 | if ([[segue identifier] isEqualToString:@"showChild"]) { 202 | ELLViewController *viewController = segue.destinationViewController; 203 | 204 | NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow]; 205 | ELLIOKitViewModel *viewModel = [self.viewModel viewModelForIndexPath:indexPath]; 206 | viewController.viewModel = viewModel; 207 | } 208 | } 209 | 210 | - (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender { 211 | if ([identifier isEqualToString:@"showChild"]) { 212 | NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow]; 213 | return [self.viewModel hasChildren:indexPath]; 214 | } 215 | return NO; 216 | } 217 | 218 | 219 | #pragma mark UISearchBar 220 | 221 | - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchTerm { 222 | [_searchDelayTimer invalidate]; 223 | self.searchDelayTimer = [NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(_searchWithTimer:) 224 | userInfo:@{kSearchTerm : searchTerm} 225 | repeats:NO]; 226 | } 227 | 228 | - (void)_searchWithTimer:(NSTimer *)timer { 229 | NSString *searchTerm = timer.userInfo[kSearchTerm]; 230 | if(searchTerm.length > 1) { 231 | self.searchTerm = searchTerm; 232 | [self.viewModel filterModelByTerm:searchTerm]; 233 | } else { 234 | self.searchTerm = nil; 235 | [self.viewModel clearFilter]; 236 | } 237 | [_tableView reloadData]; 238 | } 239 | 240 | #pragma mark 241 | 242 | - (BOOL)canBecomeFirstResponder { 243 | return YES; 244 | } 245 | 246 | - (void)copyMenuButtonPressed:(UIMenuController *)menuController { 247 | [self resignFirstResponder]; 248 | ELLCopyMenuItem *copyMenuItem = [menuController menuItems][0]; 249 | if (copyMenuItem.IOKitText.length) { 250 | [UIPasteboard generalPasteboard].string = copyMenuItem.IOKitText; 251 | } 252 | } 253 | 254 | #pragma mark Keyboard 255 | 256 | - (void)keyboardWasShown:(NSNotification *)aNotification { 257 | NSDictionary *info = [aNotification userInfo]; 258 | CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size; 259 | 260 | UIEdgeInsets contentInsets = UIEdgeInsetsMake(0.0, 0.0, kbSize.height, 0.0); 261 | _tableView.contentInset = contentInsets; 262 | _tableView.scrollIndicatorInsets = contentInsets; 263 | 264 | } 265 | 266 | - (void)keyboardWillBeHidden:(NSNotification *)aNotification { 267 | UIEdgeInsets contentInsets = UIEdgeInsetsZero; 268 | _tableView.contentInset = contentInsets; 269 | _tableView.scrollIndicatorInsets = contentInsets; 270 | } 271 | 272 | #pragma mark 273 | - (IBAction)textTapped:(UITapGestureRecognizer *)recognizer { 274 | UITextView *textView = (UITextView *)recognizer.view; 275 | 276 | 277 | NSLayoutManager *layoutManager = textView.layoutManager; 278 | CGPoint location = [recognizer locationInView:textView]; 279 | location.x -= textView.textContainerInset.left; 280 | location.y -= textView.textContainerInset.top; 281 | 282 | // Find the character that's been tapped on 283 | 284 | NSUInteger characterIndex; 285 | characterIndex = [layoutManager characterIndexForPoint:location 286 | inTextContainer:textView.textContainer 287 | fractionOfDistanceBetweenInsertionPoints:NULL]; 288 | 289 | if (characterIndex < textView.textStorage.length) { 290 | 291 | NSRange range; 292 | NSNumber *index = [self.viewModel.trail attribute:kDepthAttribute atIndex:characterIndex effectiveRange:&range]; 293 | 294 | NSArray *viewControllers = self.navigationController.viewControllers; 295 | [self.navigationController popToViewController:viewControllers[index.integerValue] animated:YES]; 296 | 297 | } 298 | } 299 | 300 | @end 301 | -------------------------------------------------------------------------------- /IOKitTest/IOKitBrowser-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.electriclabs.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 8 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIMainStoryboardFile~ipad 32 | Main 33 | UIRequiredDeviceCapabilities 34 | 35 | armv7 36 | 37 | UISupportedInterfaceOrientations 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationLandscapeLeft 41 | UIInterfaceOrientationLandscapeRight 42 | 43 | UISupportedInterfaceOrientations~ipad 44 | 45 | UIInterfaceOrientationPortrait 46 | UIInterfaceOrientationPortraitUpsideDown 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /IOKitTest/IOKitBrowser-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | 15 | #import 16 | #import 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /IOKitTest/IOKitDefines.h: -------------------------------------------------------------------------------- 1 | // 2 | // IOKitDefines.h 3 | // IOKitBrowser 4 | // 5 | // Created by Christopher Anderson on 14/02/2015. 6 | // Copyright (c) 2015 Electric Labs. All rights reserved. 7 | // 8 | 9 | #ifndef IOKitBrowser_IOKitDefines_h 10 | #define IOKitBrowser_IOKitDefines_h 11 | 12 | #define kIOServicePlane "IOService" 13 | 14 | typedef mach_port_t io_object_t; 15 | typedef io_object_t io_registry_entry_t; 16 | typedef io_object_t io_iterator_t; 17 | typedef char io_name_t[128]; 18 | typedef UInt32 IOOptionBits; 19 | 20 | typedef io_object_t (* IOIteratorNextShim)(io_iterator_t iterator); 21 | 22 | typedef kern_return_t (* IOObjectReleaseShim)(io_object_t object); 23 | 24 | typedef kern_return_t (* IORegistryEntryGetNameInPlaneShim)(io_registry_entry_t entry, 25 | const io_name_t plane, 26 | io_name_t name); 27 | 28 | typedef kern_return_t (* IOMasterPortShim)(mach_port_t bootstrapPort, mach_port_t *masterPort); 29 | 30 | typedef io_registry_entry_t (*IORegistryGetRootEntryShim)(mach_port_t); 31 | 32 | typedef kern_return_t (* IORegistryEntryCreateCFPropertiesShim)(io_registry_entry_t entry, 33 | CFMutableDictionaryRef *properties, 34 | CFAllocatorRef allocator, 35 | IOOptionBits options); 36 | 37 | 38 | typedef kern_return_t (* IOObjectRetainShim)(io_object_t object); 39 | 40 | typedef boolean_t (* IOObjectConformsToShim)(io_object_t object, 41 | const io_name_t className); 42 | 43 | 44 | typedef kern_return_t (* IORegistryEntryGetChildIteratorShim)(io_registry_entry_t entry, 45 | const io_name_t plane, 46 | io_iterator_t *iterator); 47 | 48 | 49 | 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x-1.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x-1.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon76x76.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon76x76@2x.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "AppIcon29x29@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "40x40", 11 | "idiom" : "iphone", 12 | "filename" : "AppIcon40x40@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "60x60", 17 | "idiom" : "iphone", 18 | "filename" : "AppIcon60x60@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "idiom" : "iphone", 23 | "size" : "60x60", 24 | "scale" : "3x" 25 | }, 26 | { 27 | "size" : "29x29", 28 | "idiom" : "ipad", 29 | "filename" : "AppIcon29x29.png", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "size" : "29x29", 34 | "idiom" : "ipad", 35 | "filename" : "AppIcon29x29@2x-1.png", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "size" : "40x40", 40 | "idiom" : "ipad", 41 | "filename" : "AppIcon40x40.png", 42 | "scale" : "1x" 43 | }, 44 | { 45 | "size" : "40x40", 46 | "idiom" : "ipad", 47 | "filename" : "AppIcon40x40@2x-1.png", 48 | "scale" : "2x" 49 | }, 50 | { 51 | "size" : "76x76", 52 | "idiom" : "ipad", 53 | "filename" : "AppIcon76x76.png", 54 | "scale" : "1x" 55 | }, 56 | { 57 | "size" : "76x76", 58 | "idiom" : "ipad", 59 | "filename" : "AppIcon76x76@2x.png", 60 | "scale" : "2x" 61 | } 62 | ], 63 | "info" : { 64 | "version" : 1, 65 | "author" : "xcode" 66 | } 67 | } -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/Image.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "ElectricLabsLogoColour.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "ElectricLabsLogoColour@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x", 16 | "filename" : "ElectricLabsLogoColour@3x.png" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/Image.imageset/ElectricLabsLogoColour.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/Image.imageset/ElectricLabsLogoColour.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/Image.imageset/ElectricLabsLogoColour@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/Image.imageset/ElectricLabsLogoColour@2x.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/Image.imageset/ElectricLabsLogoColour@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/IOKitTest/Images.xcassets/Image.imageset/ElectricLabsLogoColour@3x.png -------------------------------------------------------------------------------- /IOKitTest/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /IOKitTest/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | -------------------------------------------------------------------------------- /IOKitTest/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /IOKitTest/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | 10 | #import "ELLAppDelegate.h" 11 | 12 | int main(int argc, char *argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([ELLAppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /IOKitTestTests/IOKitBrowserTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.electriclabs.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /IOKitTestTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | platform :ios, '8.0' 3 | 4 | pod 'KVOController' 5 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KVOController (1.0.3) 3 | 4 | DEPENDENCIES: 5 | - KVOController 6 | 7 | SPEC CHECKSUMS: 8 | KVOController: b1139ef1fc373b6757e4b69493fedd7b56eb1272 9 | 10 | COCOAPODS: 0.34.4 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lyonanderson/IOKitBrowser/7139bf915d88cad5e41d27c63da442df10f6856d/README.md --------------------------------------------------------------------------------