Skip to content

Commit b442adf

Browse files
committed
Initial release
1 parent 0a66055 commit b442adf

19 files changed

+2396
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
11
# AppleSimulatorUtils
22
A collection of Apple simulator utils
3+
4+
```shell
5+
Usage: applesimutils --simulator <simulator identifier> --bundle <bundle identifier> --setPermissions "<permission1>, <permission1>, ..."
6+
applesimutils --simulator <simulator identifier> --restartSB
7+
8+
Options:
9+
--simulator The simulator identifier
10+
--bundle The app bundle identifier
11+
--setPermissions Sets the specified permissions and restarts SpringBoard for the changes to take effect
12+
--restartSB Restarts SpringBoard
13+
--help, -h Prints usage
14+
15+
Available permissions:
16+
calendar=YES|NO
17+
camera=YES|NO
18+
contacts=YES|NO
19+
health=YES|NO
20+
homekit=YES|NO
21+
medialibrary=YES|NO
22+
microphone=YES|NO
23+
motion=YES|NO
24+
notifications=YES|NO
25+
photos=YES|NO
26+
reminders=YES|NO
27+
siri=YES|NO
28+
```
Lines changed: 340 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,340 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
391596E01E8CBAA900FDD6F5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 391596DF1E8CBAA900FDD6F5 /* main.m */; };
11+
391596FA1E8CCA8C00FDD6F5 /* GBCommandLineParser.m in Sources */ = {isa = PBXBuildFile; fileRef = 391596F01E8CCA8C00FDD6F5 /* GBCommandLineParser.m */; };
12+
391596FB1E8CCA8C00FDD6F5 /* GBOptionsHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 391596F21E8CCA8C00FDD6F5 /* GBOptionsHelper.m */; };
13+
391596FC1E8CCA8C00FDD6F5 /* GBPrint.m in Sources */ = {isa = PBXBuildFile; fileRef = 391596F41E8CCA8C00FDD6F5 /* GBPrint.m */; };
14+
391596FD1E8CCA8C00FDD6F5 /* GBSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 391596F61E8CCA8C00FDD6F5 /* GBSettings.m */; };
15+
391597021E8CDD1D00FDD6F5 /* SetNotificationsPermission.m in Sources */ = {isa = PBXBuildFile; fileRef = 391597011E8CDD1D00FDD6F5 /* SetNotificationsPermission.m */; };
16+
391EBF311E911CAA0009AACD /* SetServicePermission.m in Sources */ = {isa = PBXBuildFile; fileRef = 391EBF301E911CAA0009AACD /* SetServicePermission.m */; };
17+
391EBF351E91211F0009AACD /* JPSimulatorHacksDB.m in Sources */ = {isa = PBXBuildFile; fileRef = 391EBF341E91211F0009AACD /* JPSimulatorHacksDB.m */; };
18+
391EBF381E91212B0009AACD /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 391EBF371E91212B0009AACD /* libsqlite3.tbd */; };
19+
/* End PBXBuildFile section */
20+
21+
/* Begin PBXCopyFilesBuildPhase section */
22+
391596DA1E8CBAA900FDD6F5 /* CopyFiles */ = {
23+
isa = PBXCopyFilesBuildPhase;
24+
buildActionMask = 2147483647;
25+
dstPath = /usr/share/man/man1/;
26+
dstSubfolderSpec = 0;
27+
files = (
28+
);
29+
runOnlyForDeploymentPostprocessing = 1;
30+
};
31+
/* End PBXCopyFilesBuildPhase section */
32+
33+
/* Begin PBXFileReference section */
34+
391596DC1E8CBAA900FDD6F5 /* applesimutils */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = applesimutils; sourceTree = BUILT_PRODUCTS_DIR; };
35+
391596DF1E8CBAA900FDD6F5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
36+
391596EE1E8CCA8C00FDD6F5 /* GBCli.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GBCli.h; path = src/GBCli.h; sourceTree = "<group>"; };
37+
391596EF1E8CCA8C00FDD6F5 /* GBCommandLineParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GBCommandLineParser.h; path = src/GBCommandLineParser.h; sourceTree = "<group>"; };
38+
391596F01E8CCA8C00FDD6F5 /* GBCommandLineParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GBCommandLineParser.m; path = src/GBCommandLineParser.m; sourceTree = "<group>"; };
39+
391596F11E8CCA8C00FDD6F5 /* GBOptionsHelper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GBOptionsHelper.h; path = src/GBOptionsHelper.h; sourceTree = "<group>"; };
40+
391596F21E8CCA8C00FDD6F5 /* GBOptionsHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GBOptionsHelper.m; path = src/GBOptionsHelper.m; sourceTree = "<group>"; };
41+
391596F31E8CCA8C00FDD6F5 /* GBPrint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GBPrint.h; path = src/GBPrint.h; sourceTree = "<group>"; };
42+
391596F41E8CCA8C00FDD6F5 /* GBPrint.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GBPrint.m; path = src/GBPrint.m; sourceTree = "<group>"; };
43+
391596F51E8CCA8C00FDD6F5 /* GBSettings.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GBSettings.h; path = src/GBSettings.h; sourceTree = "<group>"; };
44+
391596F61E8CCA8C00FDD6F5 /* GBSettings.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GBSettings.m; path = src/GBSettings.m; sourceTree = "<group>"; };
45+
391597001E8CDD1D00FDD6F5 /* SetNotificationsPermission.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SetNotificationsPermission.h; sourceTree = "<group>"; };
46+
391597011E8CDD1D00FDD6F5 /* SetNotificationsPermission.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SetNotificationsPermission.m; sourceTree = "<group>"; };
47+
391EBF2F1E911CAA0009AACD /* SetServicePermission.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SetServicePermission.h; sourceTree = "<group>"; };
48+
391EBF301E911CAA0009AACD /* SetServicePermission.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SetServicePermission.m; sourceTree = "<group>"; };
49+
391EBF331E91211F0009AACD /* JPSimulatorHacksDB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JPSimulatorHacksDB.h; sourceTree = "<group>"; };
50+
391EBF341E91211F0009AACD /* JPSimulatorHacksDB.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JPSimulatorHacksDB.m; sourceTree = "<group>"; };
51+
391EBF371E91212B0009AACD /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; };
52+
/* End PBXFileReference section */
53+
54+
/* Begin PBXFrameworksBuildPhase section */
55+
391596D91E8CBAA900FDD6F5 /* Frameworks */ = {
56+
isa = PBXFrameworksBuildPhase;
57+
buildActionMask = 2147483647;
58+
files = (
59+
391EBF381E91212B0009AACD /* libsqlite3.tbd in Frameworks */,
60+
);
61+
runOnlyForDeploymentPostprocessing = 0;
62+
};
63+
/* End PBXFrameworksBuildPhase section */
64+
65+
/* Begin PBXGroup section */
66+
391596D31E8CBAA900FDD6F5 = {
67+
isa = PBXGroup;
68+
children = (
69+
391596DE1E8CBAA900FDD6F5 /* applesimutils */,
70+
391596DD1E8CBAA900FDD6F5 /* Products */,
71+
391EBF361E91212B0009AACD /* Frameworks */,
72+
);
73+
sourceTree = "<group>";
74+
};
75+
391596DD1E8CBAA900FDD6F5 /* Products */ = {
76+
isa = PBXGroup;
77+
children = (
78+
391596DC1E8CBAA900FDD6F5 /* applesimutils */,
79+
);
80+
name = Products;
81+
sourceTree = "<group>";
82+
};
83+
391596DE1E8CBAA900FDD6F5 /* applesimutils */ = {
84+
isa = PBXGroup;
85+
children = (
86+
391596FF1E8CDD0500FDD6F5 /* PermissionSetters */,
87+
391596E71E8CCA8C00FDD6F5 /* GBCli */,
88+
391596DF1E8CBAA900FDD6F5 /* main.m */,
89+
);
90+
path = applesimutils;
91+
sourceTree = "<group>";
92+
};
93+
391596E71E8CCA8C00FDD6F5 /* GBCli */ = {
94+
isa = PBXGroup;
95+
children = (
96+
391596EE1E8CCA8C00FDD6F5 /* GBCli.h */,
97+
391596EF1E8CCA8C00FDD6F5 /* GBCommandLineParser.h */,
98+
391596F01E8CCA8C00FDD6F5 /* GBCommandLineParser.m */,
99+
391596F11E8CCA8C00FDD6F5 /* GBOptionsHelper.h */,
100+
391596F21E8CCA8C00FDD6F5 /* GBOptionsHelper.m */,
101+
391596F31E8CCA8C00FDD6F5 /* GBPrint.h */,
102+
391596F41E8CCA8C00FDD6F5 /* GBPrint.m */,
103+
391596F51E8CCA8C00FDD6F5 /* GBSettings.h */,
104+
391596F61E8CCA8C00FDD6F5 /* GBSettings.m */,
105+
);
106+
path = GBCli;
107+
sourceTree = "<group>";
108+
};
109+
391596FF1E8CDD0500FDD6F5 /* PermissionSetters */ = {
110+
isa = PBXGroup;
111+
children = (
112+
391597001E8CDD1D00FDD6F5 /* SetNotificationsPermission.h */,
113+
391597011E8CDD1D00FDD6F5 /* SetNotificationsPermission.m */,
114+
391EBF321E9121150009AACD /* JP */,
115+
391EBF2F1E911CAA0009AACD /* SetServicePermission.h */,
116+
391EBF301E911CAA0009AACD /* SetServicePermission.m */,
117+
);
118+
name = PermissionSetters;
119+
sourceTree = "<group>";
120+
};
121+
391EBF321E9121150009AACD /* JP */ = {
122+
isa = PBXGroup;
123+
children = (
124+
391EBF331E91211F0009AACD /* JPSimulatorHacksDB.h */,
125+
391EBF341E91211F0009AACD /* JPSimulatorHacksDB.m */,
126+
);
127+
name = JP;
128+
sourceTree = "<group>";
129+
};
130+
391EBF361E91212B0009AACD /* Frameworks */ = {
131+
isa = PBXGroup;
132+
children = (
133+
391EBF371E91212B0009AACD /* libsqlite3.tbd */,
134+
);
135+
name = Frameworks;
136+
sourceTree = "<group>";
137+
};
138+
/* End PBXGroup section */
139+
140+
/* Begin PBXNativeTarget section */
141+
391596DB1E8CBAA900FDD6F5 /* applesimutils */ = {
142+
isa = PBXNativeTarget;
143+
buildConfigurationList = 391596E31E8CBAA900FDD6F5 /* Build configuration list for PBXNativeTarget "applesimutils" */;
144+
buildPhases = (
145+
391596D81E8CBAA900FDD6F5 /* Sources */,
146+
391596D91E8CBAA900FDD6F5 /* Frameworks */,
147+
391596DA1E8CBAA900FDD6F5 /* CopyFiles */,
148+
);
149+
buildRules = (
150+
);
151+
dependencies = (
152+
);
153+
name = applesimutils;
154+
productName = applesimutils;
155+
productReference = 391596DC1E8CBAA900FDD6F5 /* applesimutils */;
156+
productType = "com.apple.product-type.tool";
157+
};
158+
/* End PBXNativeTarget section */
159+
160+
/* Begin PBXProject section */
161+
391596D41E8CBAA900FDD6F5 /* Project object */ = {
162+
isa = PBXProject;
163+
attributes = {
164+
LastUpgradeCheck = 0830;
165+
ORGANIZATIONNAME = Wix;
166+
TargetAttributes = {
167+
391596DB1E8CBAA900FDD6F5 = {
168+
CreatedOnToolsVersion = 8.3;
169+
ProvisioningStyle = Automatic;
170+
};
171+
};
172+
};
173+
buildConfigurationList = 391596D71E8CBAA900FDD6F5 /* Build configuration list for PBXProject "applesimutils" */;
174+
compatibilityVersion = "Xcode 3.2";
175+
developmentRegion = English;
176+
hasScannedForEncodings = 0;
177+
knownRegions = (
178+
en,
179+
);
180+
mainGroup = 391596D31E8CBAA900FDD6F5;
181+
productRefGroup = 391596DD1E8CBAA900FDD6F5 /* Products */;
182+
projectDirPath = "";
183+
projectRoot = "";
184+
targets = (
185+
391596DB1E8CBAA900FDD6F5 /* applesimutils */,
186+
);
187+
};
188+
/* End PBXProject section */
189+
190+
/* Begin PBXSourcesBuildPhase section */
191+
391596D81E8CBAA900FDD6F5 /* Sources */ = {
192+
isa = PBXSourcesBuildPhase;
193+
buildActionMask = 2147483647;
194+
files = (
195+
391EBF311E911CAA0009AACD /* SetServicePermission.m in Sources */,
196+
391EBF351E91211F0009AACD /* JPSimulatorHacksDB.m in Sources */,
197+
391596FC1E8CCA8C00FDD6F5 /* GBPrint.m in Sources */,
198+
391596FD1E8CCA8C00FDD6F5 /* GBSettings.m in Sources */,
199+
391596FA1E8CCA8C00FDD6F5 /* GBCommandLineParser.m in Sources */,
200+
391596E01E8CBAA900FDD6F5 /* main.m in Sources */,
201+
391597021E8CDD1D00FDD6F5 /* SetNotificationsPermission.m in Sources */,
202+
391596FB1E8CCA8C00FDD6F5 /* GBOptionsHelper.m in Sources */,
203+
);
204+
runOnlyForDeploymentPostprocessing = 0;
205+
};
206+
/* End PBXSourcesBuildPhase section */
207+
208+
/* Begin XCBuildConfiguration section */
209+
391596E11E8CBAA900FDD6F5 /* Debug */ = {
210+
isa = XCBuildConfiguration;
211+
buildSettings = {
212+
ALWAYS_SEARCH_USER_PATHS = NO;
213+
CLANG_ANALYZER_NONNULL = YES;
214+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
215+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
216+
CLANG_CXX_LIBRARY = "libc++";
217+
CLANG_ENABLE_MODULES = YES;
218+
CLANG_ENABLE_OBJC_ARC = YES;
219+
CLANG_WARN_BOOL_CONVERSION = YES;
220+
CLANG_WARN_CONSTANT_CONVERSION = YES;
221+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
222+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
223+
CLANG_WARN_EMPTY_BODY = YES;
224+
CLANG_WARN_ENUM_CONVERSION = YES;
225+
CLANG_WARN_INFINITE_RECURSION = YES;
226+
CLANG_WARN_INT_CONVERSION = YES;
227+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
228+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
229+
CLANG_WARN_UNREACHABLE_CODE = YES;
230+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
231+
CODE_SIGN_IDENTITY = "-";
232+
COPY_PHASE_STRIP = NO;
233+
DEBUG_INFORMATION_FORMAT = dwarf;
234+
ENABLE_STRICT_OBJC_MSGSEND = YES;
235+
ENABLE_TESTABILITY = YES;
236+
GCC_C_LANGUAGE_STANDARD = gnu99;
237+
GCC_DYNAMIC_NO_PIC = NO;
238+
GCC_NO_COMMON_BLOCKS = YES;
239+
GCC_OPTIMIZATION_LEVEL = 0;
240+
GCC_PREPROCESSOR_DEFINITIONS = (
241+
"DEBUG=1",
242+
"$(inherited)",
243+
);
244+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
245+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
246+
GCC_WARN_UNDECLARED_SELECTOR = YES;
247+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
248+
GCC_WARN_UNUSED_FUNCTION = YES;
249+
GCC_WARN_UNUSED_VARIABLE = YES;
250+
MACOSX_DEPLOYMENT_TARGET = 10.12;
251+
MTL_ENABLE_DEBUG_INFO = YES;
252+
ONLY_ACTIVE_ARCH = YES;
253+
SDKROOT = macosx;
254+
};
255+
name = Debug;
256+
};
257+
391596E21E8CBAA900FDD6F5 /* Release */ = {
258+
isa = XCBuildConfiguration;
259+
buildSettings = {
260+
ALWAYS_SEARCH_USER_PATHS = NO;
261+
CLANG_ANALYZER_NONNULL = YES;
262+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
263+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
264+
CLANG_CXX_LIBRARY = "libc++";
265+
CLANG_ENABLE_MODULES = YES;
266+
CLANG_ENABLE_OBJC_ARC = YES;
267+
CLANG_WARN_BOOL_CONVERSION = YES;
268+
CLANG_WARN_CONSTANT_CONVERSION = YES;
269+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
270+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
271+
CLANG_WARN_EMPTY_BODY = YES;
272+
CLANG_WARN_ENUM_CONVERSION = YES;
273+
CLANG_WARN_INFINITE_RECURSION = YES;
274+
CLANG_WARN_INT_CONVERSION = YES;
275+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
276+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
277+
CLANG_WARN_UNREACHABLE_CODE = YES;
278+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
279+
CODE_SIGN_IDENTITY = "-";
280+
COPY_PHASE_STRIP = NO;
281+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
282+
ENABLE_NS_ASSERTIONS = NO;
283+
ENABLE_STRICT_OBJC_MSGSEND = YES;
284+
GCC_C_LANGUAGE_STANDARD = gnu99;
285+
GCC_NO_COMMON_BLOCKS = YES;
286+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
287+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
288+
GCC_WARN_UNDECLARED_SELECTOR = YES;
289+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
290+
GCC_WARN_UNUSED_FUNCTION = YES;
291+
GCC_WARN_UNUSED_VARIABLE = YES;
292+
MACOSX_DEPLOYMENT_TARGET = 10.12;
293+
MTL_ENABLE_DEBUG_INFO = NO;
294+
SDKROOT = macosx;
295+
};
296+
name = Release;
297+
};
298+
391596E41E8CBAA900FDD6F5 /* Debug */ = {
299+
isa = XCBuildConfiguration;
300+
buildSettings = {
301+
GCC_C_LANGUAGE_STANDARD = "compiler-default";
302+
MACOSX_DEPLOYMENT_TARGET = 10.11;
303+
PRODUCT_NAME = "$(TARGET_NAME)";
304+
};
305+
name = Debug;
306+
};
307+
391596E51E8CBAA900FDD6F5 /* Release */ = {
308+
isa = XCBuildConfiguration;
309+
buildSettings = {
310+
GCC_C_LANGUAGE_STANDARD = "compiler-default";
311+
MACOSX_DEPLOYMENT_TARGET = 10.11;
312+
PRODUCT_NAME = "$(TARGET_NAME)";
313+
};
314+
name = Release;
315+
};
316+
/* End XCBuildConfiguration section */
317+
318+
/* Begin XCConfigurationList section */
319+
391596D71E8CBAA900FDD6F5 /* Build configuration list for PBXProject "applesimutils" */ = {
320+
isa = XCConfigurationList;
321+
buildConfigurations = (
322+
391596E11E8CBAA900FDD6F5 /* Debug */,
323+
391596E21E8CBAA900FDD6F5 /* Release */,
324+
);
325+
defaultConfigurationIsVisible = 0;
326+
defaultConfigurationName = Release;
327+
};
328+
391596E31E8CBAA900FDD6F5 /* Build configuration list for PBXNativeTarget "applesimutils" */ = {
329+
isa = XCConfigurationList;
330+
buildConfigurations = (
331+
391596E41E8CBAA900FDD6F5 /* Debug */,
332+
391596E51E8CBAA900FDD6F5 /* Release */,
333+
);
334+
defaultConfigurationIsVisible = 0;
335+
defaultConfigurationName = Release;
336+
};
337+
/* End XCConfigurationList section */
338+
};
339+
rootObject = 391596D41E8CBAA900FDD6F5 /* Project object */;
340+
}

applesimutils/applesimutils.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// GBCli.h
3+
// GBCli
4+
//
5+
// Created by Tomaz Kragelj on 23.05.14.
6+
//
7+
//
8+
9+
// Imports all source files for GBCli
10+
11+
#import "GBCommandLineParser.h"
12+
#import "GBSettings.h"
13+
#import "GBOptionsHelper.h"
14+
#import "GBPrint.h"

0 commit comments

Comments
 (0)