├── .gitignore
├── .husky
├── .gitignore
└── pre-commit
├── .npmignore
├── .vscode
└── launch.json
├── IOSDeviceLib.sln
├── IOSDeviceLib.xcodeproj
├── project.pbxproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── xcshareddata
│ └── xcschemes
│ └── IOSDeviceLib.xcscheme
├── IOSDeviceLib
├── CommonFunctions.h
├── Constants.h
├── Declarations.h
├── DevicectlHelper.cpp
├── DevicectlHelper.h
├── FileHelper.cpp
├── FileHelper.h
├── GDBHelper.cpp
├── GDBHelper.h
├── IOSDeviceLib.cpp
├── IOSDeviceLib.vcxproj
├── IOSDeviceLib.vcxproj.filters
├── PlistCpp
│ ├── Plist.cpp
│ ├── Plist.hpp
│ ├── PlistDate.cpp
│ ├── PlistDate.hpp
│ ├── base64.hpp
│ ├── include
│ │ └── boost
│ │ │ ├── any.hpp
│ │ │ ├── config.hpp
│ │ │ ├── config
│ │ │ ├── abi
│ │ │ │ ├── borland_prefix.hpp
│ │ │ │ ├── borland_suffix.hpp
│ │ │ │ ├── msvc_prefix.hpp
│ │ │ │ └── msvc_suffix.hpp
│ │ │ ├── abi_prefix.hpp
│ │ │ ├── abi_suffix.hpp
│ │ │ ├── auto_link.hpp
│ │ │ ├── compiler
│ │ │ │ ├── borland.hpp
│ │ │ │ ├── clang.hpp
│ │ │ │ ├── codegear.hpp
│ │ │ │ ├── comeau.hpp
│ │ │ │ ├── common_edg.hpp
│ │ │ │ ├── compaq_cxx.hpp
│ │ │ │ ├── cray.hpp
│ │ │ │ ├── digitalmars.hpp
│ │ │ │ ├── gcc.hpp
│ │ │ │ ├── gcc_xml.hpp
│ │ │ │ ├── greenhills.hpp
│ │ │ │ ├── hp_acc.hpp
│ │ │ │ ├── intel.hpp
│ │ │ │ ├── kai.hpp
│ │ │ │ ├── metrowerks.hpp
│ │ │ │ ├── mpw.hpp
│ │ │ │ ├── nvcc.hpp
│ │ │ │ ├── pathscale.hpp
│ │ │ │ ├── pgi.hpp
│ │ │ │ ├── sgi_mipspro.hpp
│ │ │ │ ├── sunpro_cc.hpp
│ │ │ │ ├── vacpp.hpp
│ │ │ │ └── visualc.hpp
│ │ │ ├── no_tr1
│ │ │ │ ├── cmath.hpp
│ │ │ │ ├── complex.hpp
│ │ │ │ ├── functional.hpp
│ │ │ │ ├── memory.hpp
│ │ │ │ └── utility.hpp
│ │ │ ├── platform
│ │ │ │ ├── aix.hpp
│ │ │ │ ├── amigaos.hpp
│ │ │ │ ├── beos.hpp
│ │ │ │ ├── bsd.hpp
│ │ │ │ ├── cray.hpp
│ │ │ │ ├── cygwin.hpp
│ │ │ │ ├── hpux.hpp
│ │ │ │ ├── irix.hpp
│ │ │ │ ├── linux.hpp
│ │ │ │ ├── macos.hpp
│ │ │ │ ├── qnxnto.hpp
│ │ │ │ ├── solaris.hpp
│ │ │ │ ├── symbian.hpp
│ │ │ │ ├── vms.hpp
│ │ │ │ ├── vxworks.hpp
│ │ │ │ └── win32.hpp
│ │ │ ├── posix_features.hpp
│ │ │ ├── requires_threads.hpp
│ │ │ ├── select_compiler_config.hpp
│ │ │ ├── select_platform_config.hpp
│ │ │ ├── select_stdlib_config.hpp
│ │ │ ├── stdlib
│ │ │ │ ├── dinkumware.hpp
│ │ │ │ ├── libcomo.hpp
│ │ │ │ ├── libcpp.hpp
│ │ │ │ ├── libstdcpp3.hpp
│ │ │ │ ├── modena.hpp
│ │ │ │ ├── msl.hpp
│ │ │ │ ├── roguewave.hpp
│ │ │ │ ├── sgi.hpp
│ │ │ │ ├── stlport.hpp
│ │ │ │ └── vacpp.hpp
│ │ │ ├── suffix.hpp
│ │ │ ├── user.hpp
│ │ │ └── warning_disable.hpp
│ │ │ ├── cstdint.hpp
│ │ │ ├── current_function.hpp
│ │ │ ├── detail
│ │ │ └── workaround.hpp
│ │ │ ├── exception
│ │ │ ├── detail
│ │ │ │ └── attribute_noreturn.hpp
│ │ │ └── exception.hpp
│ │ │ ├── license.txt
│ │ │ ├── limits.hpp
│ │ │ ├── locale
│ │ │ ├── definitions.hpp
│ │ │ ├── encoding_errors.hpp
│ │ │ ├── encoding_utf.hpp
│ │ │ └── utf.hpp
│ │ │ ├── mpl
│ │ │ ├── aux_
│ │ │ │ ├── adl_barrier.hpp
│ │ │ │ ├── arity.hpp
│ │ │ │ ├── config
│ │ │ │ │ ├── adl.hpp
│ │ │ │ │ ├── arrays.hpp
│ │ │ │ │ ├── ctps.hpp
│ │ │ │ │ ├── dtp.hpp
│ │ │ │ │ ├── eti.hpp
│ │ │ │ │ ├── gcc.hpp
│ │ │ │ │ ├── integral.hpp
│ │ │ │ │ ├── intel.hpp
│ │ │ │ │ ├── lambda.hpp
│ │ │ │ │ ├── msvc.hpp
│ │ │ │ │ ├── nttp.hpp
│ │ │ │ │ ├── overload_resolution.hpp
│ │ │ │ │ ├── preprocessor.hpp
│ │ │ │ │ ├── static_constant.hpp
│ │ │ │ │ ├── ttp.hpp
│ │ │ │ │ └── workaround.hpp
│ │ │ │ ├── integral_wrapper.hpp
│ │ │ │ ├── lambda_arity_param.hpp
│ │ │ │ ├── lambda_support.hpp
│ │ │ │ ├── na.hpp
│ │ │ │ ├── na_fwd.hpp
│ │ │ │ ├── na_spec.hpp
│ │ │ │ ├── nttp_decl.hpp
│ │ │ │ ├── preprocessor
│ │ │ │ │ ├── def_params_tail.hpp
│ │ │ │ │ ├── enum.hpp
│ │ │ │ │ ├── filter_params.hpp
│ │ │ │ │ ├── params.hpp
│ │ │ │ │ ├── sub.hpp
│ │ │ │ │ └── tuple.hpp
│ │ │ │ ├── static_cast.hpp
│ │ │ │ ├── template_arity_fwd.hpp
│ │ │ │ ├── value_wknd.hpp
│ │ │ │ └── yes_no.hpp
│ │ │ ├── bool.hpp
│ │ │ ├── bool_fwd.hpp
│ │ │ ├── eval_if.hpp
│ │ │ ├── identity.hpp
│ │ │ ├── if.hpp
│ │ │ ├── int.hpp
│ │ │ ├── int_fwd.hpp
│ │ │ ├── integral_c.hpp
│ │ │ ├── integral_c_fwd.hpp
│ │ │ ├── integral_c_tag.hpp
│ │ │ ├── lambda_fwd.hpp
│ │ │ ├── limits
│ │ │ │ └── arity.hpp
│ │ │ └── void_fwd.hpp
│ │ │ ├── preprocessor
│ │ │ ├── arithmetic
│ │ │ │ ├── add.hpp
│ │ │ │ ├── dec.hpp
│ │ │ │ ├── inc.hpp
│ │ │ │ └── sub.hpp
│ │ │ ├── array
│ │ │ │ ├── data.hpp
│ │ │ │ ├── elem.hpp
│ │ │ │ └── size.hpp
│ │ │ ├── cat.hpp
│ │ │ ├── comma_if.hpp
│ │ │ ├── config
│ │ │ │ └── config.hpp
│ │ │ ├── control
│ │ │ │ ├── detail
│ │ │ │ │ ├── dmc
│ │ │ │ │ │ └── while.hpp
│ │ │ │ │ ├── edg
│ │ │ │ │ │ └── while.hpp
│ │ │ │ │ ├── msvc
│ │ │ │ │ │ └── while.hpp
│ │ │ │ │ └── while.hpp
│ │ │ │ ├── expr_iif.hpp
│ │ │ │ ├── if.hpp
│ │ │ │ ├── iif.hpp
│ │ │ │ └── while.hpp
│ │ │ ├── debug
│ │ │ │ └── error.hpp
│ │ │ ├── detail
│ │ │ │ ├── auto_rec.hpp
│ │ │ │ ├── check.hpp
│ │ │ │ ├── dmc
│ │ │ │ │ └── auto_rec.hpp
│ │ │ │ └── is_binary.hpp
│ │ │ ├── empty.hpp
│ │ │ ├── enum_params.hpp
│ │ │ ├── facilities
│ │ │ │ ├── empty.hpp
│ │ │ │ ├── identity.hpp
│ │ │ │ └── overload.hpp
│ │ │ ├── identity.hpp
│ │ │ ├── inc.hpp
│ │ │ ├── iterate.hpp
│ │ │ ├── iteration
│ │ │ │ ├── detail
│ │ │ │ │ ├── bounds
│ │ │ │ │ │ ├── lower1.hpp
│ │ │ │ │ │ ├── lower2.hpp
│ │ │ │ │ │ ├── lower3.hpp
│ │ │ │ │ │ ├── lower4.hpp
│ │ │ │ │ │ ├── lower5.hpp
│ │ │ │ │ │ ├── upper1.hpp
│ │ │ │ │ │ ├── upper2.hpp
│ │ │ │ │ │ ├── upper3.hpp
│ │ │ │ │ │ ├── upper4.hpp
│ │ │ │ │ │ └── upper5.hpp
│ │ │ │ │ ├── finish.hpp
│ │ │ │ │ ├── iter
│ │ │ │ │ │ ├── forward1.hpp
│ │ │ │ │ │ ├── forward2.hpp
│ │ │ │ │ │ ├── forward3.hpp
│ │ │ │ │ │ ├── forward4.hpp
│ │ │ │ │ │ ├── forward5.hpp
│ │ │ │ │ │ ├── reverse1.hpp
│ │ │ │ │ │ ├── reverse2.hpp
│ │ │ │ │ │ ├── reverse3.hpp
│ │ │ │ │ │ ├── reverse4.hpp
│ │ │ │ │ │ └── reverse5.hpp
│ │ │ │ │ ├── local.hpp
│ │ │ │ │ ├── rlocal.hpp
│ │ │ │ │ ├── self.hpp
│ │ │ │ │ └── start.hpp
│ │ │ │ ├── iterate.hpp
│ │ │ │ ├── local.hpp
│ │ │ │ └── self.hpp
│ │ │ ├── list
│ │ │ │ ├── adt.hpp
│ │ │ │ ├── detail
│ │ │ │ │ ├── dmc
│ │ │ │ │ │ └── fold_left.hpp
│ │ │ │ │ ├── edg
│ │ │ │ │ │ ├── fold_left.hpp
│ │ │ │ │ │ └── fold_right.hpp
│ │ │ │ │ ├── fold_left.hpp
│ │ │ │ │ └── fold_right.hpp
│ │ │ │ ├── fold_left.hpp
│ │ │ │ ├── fold_right.hpp
│ │ │ │ ├── for_each_i.hpp
│ │ │ │ └── reverse.hpp
│ │ │ ├── logical
│ │ │ │ ├── and.hpp
│ │ │ │ ├── bitand.hpp
│ │ │ │ ├── bool.hpp
│ │ │ │ └── compl.hpp
│ │ │ ├── punctuation
│ │ │ │ ├── comma.hpp
│ │ │ │ └── comma_if.hpp
│ │ │ ├── repeat.hpp
│ │ │ ├── repetition
│ │ │ │ ├── detail
│ │ │ │ │ ├── dmc
│ │ │ │ │ │ └── for.hpp
│ │ │ │ │ ├── edg
│ │ │ │ │ │ └── for.hpp
│ │ │ │ │ ├── for.hpp
│ │ │ │ │ └── msvc
│ │ │ │ │ │ └── for.hpp
│ │ │ │ ├── enum_params.hpp
│ │ │ │ ├── for.hpp
│ │ │ │ └── repeat.hpp
│ │ │ ├── slot
│ │ │ │ ├── detail
│ │ │ │ │ ├── counter.hpp
│ │ │ │ │ ├── def.hpp
│ │ │ │ │ ├── shared.hpp
│ │ │ │ │ ├── slot1.hpp
│ │ │ │ │ ├── slot2.hpp
│ │ │ │ │ ├── slot3.hpp
│ │ │ │ │ ├── slot4.hpp
│ │ │ │ │ └── slot5.hpp
│ │ │ │ └── slot.hpp
│ │ │ ├── tuple
│ │ │ │ ├── eat.hpp
│ │ │ │ ├── elem.hpp
│ │ │ │ ├── rem.hpp
│ │ │ │ └── to_list.hpp
│ │ │ └── variadic
│ │ │ │ ├── elem.hpp
│ │ │ │ └── size.hpp
│ │ │ ├── static_assert.hpp
│ │ │ ├── throw_exception.hpp
│ │ │ ├── type_traits
│ │ │ ├── add_pointer.hpp
│ │ │ ├── add_reference.hpp
│ │ │ ├── broken_compiler_spec.hpp
│ │ │ ├── config.hpp
│ │ │ ├── decay.hpp
│ │ │ ├── detail
│ │ │ │ ├── bool_trait_def.hpp
│ │ │ │ ├── bool_trait_undef.hpp
│ │ │ │ ├── cv_traits_impl.hpp
│ │ │ │ ├── false_result.hpp
│ │ │ │ ├── ice_and.hpp
│ │ │ │ ├── ice_eq.hpp
│ │ │ │ ├── ice_not.hpp
│ │ │ │ ├── ice_or.hpp
│ │ │ │ ├── is_function_ptr_helper.hpp
│ │ │ │ ├── is_function_ptr_tester.hpp
│ │ │ │ ├── template_arity_spec.hpp
│ │ │ │ ├── type_trait_def.hpp
│ │ │ │ ├── type_trait_undef.hpp
│ │ │ │ ├── wrap.hpp
│ │ │ │ └── yes_no_type.hpp
│ │ │ ├── ice.hpp
│ │ │ ├── integral_constant.hpp
│ │ │ ├── is_array.hpp
│ │ │ ├── is_const.hpp
│ │ │ ├── is_function.hpp
│ │ │ ├── is_lvalue_reference.hpp
│ │ │ ├── is_reference.hpp
│ │ │ ├── is_rvalue_reference.hpp
│ │ │ ├── is_same.hpp
│ │ │ ├── msvc
│ │ │ │ ├── remove_bounds.hpp
│ │ │ │ ├── remove_reference.hpp
│ │ │ │ └── typeof.hpp
│ │ │ ├── remove_bounds.hpp
│ │ │ └── remove_reference.hpp
│ │ │ ├── utility
│ │ │ └── enable_if.hpp
│ │ │ └── version.hpp
│ ├── pugiconfig.hpp
│ ├── pugixml.cpp
│ └── pugixml.hpp
├── Printing.cpp
├── Printing.h
├── ServerHelper.cpp
├── ServerHelper.h
├── ServiceInfo.h
├── SetTimeout.cpp
├── SetTimeout.h
├── SocketHelper.cpp
├── SocketHelper.h
├── SocketIncludes.h
├── StringHelper.cpp
├── StringHelper.h
├── configuration.xcconfig
├── json.hpp
├── mac_impl.cpp
└── windows_impl.cpp
├── LICENSE
├── README.md
├── constants.js
├── index.js
├── ios-device-lib-stdio-handler.js
├── ios-device-lib.js
├── message-unpack-stream.js
├── package-lock.json
├── package.json
├── test
├── message-unpack-stream.js
└── mocha.opts
└── typings
├── interfaces.d.ts
└── ios-device-lib.d.ts
/.husky/.gitignore:
--------------------------------------------------------------------------------
1 | _
2 |
--------------------------------------------------------------------------------
/.husky/pre-commit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | npm test
5 | npx lint-staged
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | IOSDeviceLib/*
2 | IOSDeviceLib.xcodeproj/*
3 | x64/*
4 | x86/*
5 | **/*.sln
6 | **/*.VC.db
7 | .vscode/*
8 | .vs/*
9 | DerivedData
10 | **/*.pdb
11 | **/*.ipdb
12 | **/*.iobj
13 | .frameworks/*
14 |
15 | ### Test files
16 | test/
17 | coverage/
18 | *.tgz
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "type": "node",
9 | "request": "launch",
10 | "name": "Launch Tests",
11 | "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
12 | // modify timeout, so we can debug tests without failing with timeout error
13 | // real value can be found in mocha.opts file
14 | "args": ["--timeout", "1500000"]
15 | }
16 | ]
17 | }
--------------------------------------------------------------------------------
/IOSDeviceLib.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IOSDeviceLib", "IOSDeviceLib\IOSDeviceLib.vcxproj", "{27E85690-A0FE-42DB-8CC7-D36FC5873A84}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {27E85690-A0FE-42DB-8CC7-D36FC5873A84}.Debug|x64.ActiveCfg = Debug|x64
17 | {27E85690-A0FE-42DB-8CC7-D36FC5873A84}.Debug|x64.Build.0 = Debug|x64
18 | {27E85690-A0FE-42DB-8CC7-D36FC5873A84}.Debug|x86.ActiveCfg = Debug|Win32
19 | {27E85690-A0FE-42DB-8CC7-D36FC5873A84}.Debug|x86.Build.0 = Debug|Win32
20 | {27E85690-A0FE-42DB-8CC7-D36FC5873A84}.Release|x64.ActiveCfg = Release|x64
21 | {27E85690-A0FE-42DB-8CC7-D36FC5873A84}.Release|x64.Build.0 = Release|x64
22 | {27E85690-A0FE-42DB-8CC7-D36FC5873A84}.Release|x86.ActiveCfg = Release|Win32
23 | {27E85690-A0FE-42DB-8CC7-D36FC5873A84}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/IOSDeviceLib.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/IOSDeviceLib.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/IOSDeviceLib/CommonFunctions.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include "Declarations.h"
4 | #include "PlistCpp/Plist.hpp"
5 | #include "PlistCpp/PlistDate.hpp"
6 | #include "PlistCpp/include/boost/any.hpp"
7 | #include