-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxcode.h
More file actions
executable file
·264 lines (223 loc) · 11 KB
/
Copy pathxcode.h
File metadata and controls
executable file
·264 lines (223 loc) · 11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
/*
MIT License
Copyright (c) 2017 Appdome ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#pragma once
/* Classes and APIs used by Xcode */
#include <Foundation/Foundation.h>
@interface IDERunOperationWorker : NSObject
{
NSString *_extensionIdentifier;
id _launchSession;
id _workerGroup;
BOOL _isLongTerm;
id _runnableTracker;
}
@property BOOL isLongTerm;
@property(retain, nonatomic) id runnableTracker;
@property(readonly) id launchSession;
@property(readonly) NSString *extensionIdentifier;
@property(retain) id creationBacktrace;
@property(readonly) id invalidationBacktrace;
@property(readonly, nonatomic, getter=isValid) BOOL valid;
- (void)primitiveInvalidate;
- (void)terminate;
- (id)notFinishedReasonWithDepth:(unsigned long long)arg1;
- (void)finishedWithError:(id)arg1;
- (void)start;
- (void)startNextWorkerFromCompletedWorker:(id)arg1 error:(id)arg2;
- (void)setWorkerGroup:(id)arg1;
- (id)initWithExtensionIdentifier:(id)arg1 launchSession:(id)arg2;
@end
@interface IDELaunchiPhoneLauncher : IDERunOperationWorker
{
id _serviceHubProcessControlChannel;
id _assetServerChannel;
id _passcodeLockedToken;
BOOL _shouldSkipAppTermination;
int _posixSpawnSTDOUTFDForRedirection;
BOOL _launchingToDebug;
id _device;
}
@property(getter=isLaunchingToDebug) BOOL launchingToDebug; // @synthesize launchingToDebug=_launchingToDebug;
@property(retain) id device; // @synthesize device=_device;
+ (unsigned long long)assertionBehaviorAfterEndOfEventForSelector:(SEL)arg1;
- (id)_assetServerChannel;
- (id)_assetServerConnection;
- (void)setupAssetServerWithCompletion:(id /* block */)arg1;
- (BOOL)setupOptimizationProfileGeneration;
- (void)primitiveInvalidate;
- (void)terminate;
- (void)_deviceWoke;
- (void)pidDiedCallback:(id)arg1;
- (void)_cancelServiceHubProcessControlChannel;
- (id)_serviceHubProcessControlChannel;
- (id)_bestPrimaryInstrumentsServer;
- (void)_setupPlainLaunching;
- (void)outputReceived:(NSString *)arg1 fromProcess:(int)arg2 atTime:(unsigned long long)arg3;
- (void)_setupDebugging;
- (void)_continueStarting;
- (void)start;
- (void)_holdExecutionWithError:(id)arg1;
- (void)setRunnablePID:(int)pid;
@end
@interface IDEExecutionEnvironment : NSObject
- (id)initWithWorkspaceArena:(id)arg1;
@end
@interface IDELaunchParametersSnapshot : NSObject
+ (id)launchParametersWithSchemeIdentifier:(id)arg1 launcherIdentifier:(id)arg2 debuggerIdentifier:(id)arg3 launchStyle:(int)arg4 runnableLocation:(id)arg5 debugProcessAsUID:(unsigned int)arg6 workingDirectory:(id)arg7 commandLineArgs:(id)arg8 environmentVariables:(id)arg9 architecture:(id)arg10 platformIdentifier:(id)arg11 buildConfiguration:(id)arg12 buildableProduct:(id)arg13 deviceAppDataPackage:(id)arg14 allowLocationSimulation:(BOOL)arg15 locationScenarioReference:(id)arg16 showNonLocalizedStrings:(BOOL)arg17 language:(id)arg18 region:(id)arg19 routingCoverageFileReference:(id)arg20 enableGPUFrameCaptureMode:(int)arg21 enableGPUValidationMode:(int)arg22 debugXPCServices:(BOOL)arg23 debugAppExtensions:(BOOL)arg24 internalIOSLaunchStyle:(int)arg25 internalIOSSubstitutionApp:(id)arg26 launchAutomaticallySubstyle:(unsigned long long)arg27;
+ (id)launchParametersWithSchemeIdentifier:(id)arg1 launcherIdentifier:(id)arg2 debuggerIdentifier:(id)arg3 launchStyle:(int)arg4 runnableLocation:(id)arg5 debugProcessAsUID:(unsigned int)arg6 workingDirectory:(id)arg7 commandLineArgs:(id)arg8 environmentVariables:(id)arg9 platformIdentifier:(id)arg11 buildConfiguration:(id)arg12 buildableProduct:(id)arg13 deviceAppDataPackage:(id)arg14 allowLocationSimulation:(BOOL)arg15 locationScenarioReference:(id)arg16 showNonLocalizedStrings:(BOOL)arg17 language:(id)arg18 region:(id)arg19 routingCoverageFileReference:(id)arg20 enableGPUFrameCaptureMode:(int)arg21 enableGPUValidationMode:(int)arg22 debugXPCServices:(BOOL)arg23 debugAppExtensions:(BOOL)arg24 internalIOSLaunchStyle:(int)arg25 internalIOSSubstitutionApp:(id)arg26 launchAutomaticallySubstyle:(unsigned long long)arg27;
+ (id)launchParametersWithSchemeIdentifier:(id)arg1 launcherIdentifier:(id)arg2 debuggerIdentifier:(id)arg3 launchStyle:(int)arg4 runnableLocation:(id)arg5 debugProcessAsUID:(unsigned int)arg6 workingDirectory:(id)arg7 commandLineArgs:(id)arg8 environmentVariables:(id)arg9 platformIdentifier:(id)arg11 buildConfiguration:(id)arg12 buildableProduct:(id)arg13 deviceAppDataPackage:(id)arg14 allowLocationSimulation:(BOOL)arg15 locationScenarioReference:(id)arg16 showNonLocalizedStrings:(BOOL)arg17 language:(id)arg18 region:(id)arg19 routingCoverageFileReference:(id)arg20 enableGPUFrameCaptureMode:(int)arg21 enableGPUValidationMode:(int)arg22 debugXPCServices:(BOOL)arg23 debugAppExtensions:(BOOL)arg24 internalIOSSubstitutionApp:(id)arg26 launchAutomaticallySubstyle:(unsigned long long)arg27;
- (void) setRunnableBundleIdentifier: (NSString*)identifier;
@end
@interface IDERunDestination : NSObject <NSCopying>
- (id)initWithIneligibleTargetDevice:(id)arg1 architecture:(id)arg2 SDK:(id)arg3 deviceIneligibilityError:(id)arg4;
- (id)initWithTargetDevice:(id)arg1 architecture:(id)arg2 SDK:(id)arg3;
@end
@interface IDELaunchSession : NSObject
- (id)initWithExecutionEnvironment:(IDEExecutionEnvironment *)arg1 launchParameters:(IDELaunchParametersSnapshot *)arg2 runnableDisplayName:(NSString *)arg3 runnableType:(id)arg4 runDestination:(IDERunDestination *)arg5;
@end
@interface DVTDeviceManager : NSObject
- (void) startLocating;
- (void) stopLocating;
+ (DVTDeviceManager *) defaultDeviceManager;
- (id) availableDevices;
@end
@interface DVTPlugInManager : NSObject
{
@public
id _plugInManagerLock;
NSFileManager *_fileManager;
NSString *_hostAppName;
NSString *_hostAppContainingPath;
NSMutableArray *_searchPaths;
NSArray *_extraSearchPaths;
NSMutableSet *_pathExtensions;
NSMutableSet *_exposedCapabilities;
NSMutableSet *_defaultPlugInCapabilities;
NSMutableSet *_requiredPlugInIdentifiers;
NSString *_plugInCachePath;
NSDictionary *_plugInCache;
BOOL _shouldClearPlugInCaches;
id _plugInLocator;
NSMutableDictionary *_plugInsByIdentifier;
NSMutableDictionary *_extensionPointsByIdentifier;
NSMutableDictionary *_extensionsByIdentifier;
NSMutableDictionary *_invalidExtensionsByIdentifier;
NSMutableSet *_warnedExtensionPointFailures;
NSMutableSet *_nonApplePlugInSanitizedStatuses;
NSMutableDictionary *_nonApplePlugInDescriptors;
NSMutableDictionary *_nonApplePlugInDescriptorActivateCallbacks;
id _shouldAllowNonApplePlugInsCallback;
}
+ (DVTPlugInManager *)defaultPlugInManager;
- (BOOL)_scanForPlugIns:(id *)arg1;
@end
@interface DVTDeveloperPaths : NSObject
+ (void) initializeApplicationDirectoryName:(NSString*)string;
@end
@interface IDERunnable : NSObject
- (id) runnableUTIType:(id*)what;
- (NSString *) displayName;
@end
@interface IDERemoteRunnable : IDERunnable
- (id)initWithRemotePath:(id)arg1 bundleIdentifier:(id)arg2;
@end
@interface DTDKApplicationItemBase : NSObject
- (NSSet *) children;
- (bool) downloadToFile:(NSString *)path error:(NSError **)error;
@end
@interface DTDKApplication : DTDKApplicationItemBase
- (NSString *) devicePath;
- (NSString *) executableName;
- (NSString *) bundleIdentifier;
- (NSString *) name;
@end
@interface DVTFilePath : NSObject
+(instancetype) filePathForPathString: (NSString *)string;
-(NSString *) pathString;
@end
@interface IDEExecutionRunnableTracker : NSObject
- (id)notFinishedReasonWithDepth:(unsigned long long)arg1;
- (void)executionWantsHold:(BOOL)arg1 withError:(id)arg2;
- (void)runningDidFinish:(id)arg1 withError:(id)arg2;
- (void)runningDidFinishWithError:(id)arg1;
- (void)cancel;
- (BOOL)isFinished;
- (id)initWithWorker:(id)arg1;
@end
@interface DTDKCrashLogDatabase : NSObject
- (id)importCrashLogs:(NSArray*)logs;
@end
@interface DVTiPhoneScreenshotController : NSObject
- (void)addCapturedScreenshot:(id)data;
@end
@interface DTDKRemoteDeviceConnection : NSObject
- (id) deviceRef;
- (id) startServiceWithIdentifier:(NSString*)serviceIdentifier;
@end
@interface DTDKMobileDeviceToken : NSObject
- (DTDKRemoteDeviceConnection *) primaryConnection;
- (DVTFilePath *) idealExistingSymbolsDirectory:(void *) unknown;
- (id)copyAndProcessSharedCache;
@end
@interface DTDKRemoteDeviceToken : DTDKMobileDeviceToken
- (id) deviceName;
- (id) deviceSerialNumber;
- (id) deviceClass;
- (id) productVersion;
- (id) deviceArchitecture;
- (NSNumber *) deviceAvailableCapacity;
- (NSNumber *) deviceTotalCapacity;
- (bool) deviceIsActivated;
- (id) startCrashReportCopyMobileServiceWithError:(id *)error;
@end
@interface DVTiOSDevice : NSObject
+ (id)alliOSDevices;
- (NSSet *)applications;
- (NSSet *)systemApplications;
- (NSString *)identifier;
- (DTDKRemoteDeviceToken *) token;
- (id) softwareVersion;
- (bool) isRunningSupportedOS;
- (void) takeScreenshotWithCompletionBlock:(void (^)(NSString *))block;
@end
@interface DTDKCrashLogCopying : NSObject
+(void) checkDevice:(DTDKRemoteDeviceToken *) device;
@end
@interface DVTFuture : NSObject
-(instancetype) initWithResult:(id)result;
@end
typedef struct {
char unused[0x14];
void *conn_SSLContext;
} service_connection;
typedef service_connection * ServiceConnectionRef;
extern id (*AFCConnectionCreate)(int unknown, int socket, int unknown2, int unknown3, void *context);
extern int (*AMDServiceConnectionGetSocket)(ServiceConnectionRef connection);
extern void *(*AMDServiceConnectionGetSecureIOContext)(id service);
extern void (*AFCConnectionSetSecureContext)(id connection, void *context);
extern int (*AFCRemovePath)(id connection, const char *path);
extern int (*AFCDirectoryOpen)(id connection, const char *path, id *dir);
extern int (*AFCDirectoryRead)(id connection, id dir, char **dirent);
extern int (*AFCDirectoryClose)(id connection, id dir);
extern int (*AMDeviceSecureStartService)(id device, CFStringRef service_name, NSDictionary *options, ServiceConnectionRef result);
extern int (*AMDeviceStartSession)(id device);
extern int (*AMDeviceConnect)(id device);
extern int (*AMDServiceConnectionReceive)(ServiceConnectionRef con, void * data, size_t size);
extern int (*AMDServiceConnectionSend)(ServiceConnectionRef con, const void * data, size_t size);