File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,11 @@ - (void)removeStdioFIFO:(NSFileHandle *)fileHandle atPath:(NSString *)path {
363
363
}
364
364
365
365
366
+ - (BOOL ) version : (NSString *)versionA isAtLeastVersion : (NSString *)versionB
367
+ {
368
+ return ([versionA compare: versionB options: NSNumericSearch] != NSOrderedAscending);
369
+ }
370
+
366
371
- (int )launchApp : (NSString *)path withFamily : (NSString *)family
367
372
uuid : (NSString *)uuid
368
373
environment : (NSDictionary *)environment
@@ -441,7 +446,7 @@ - (int)launchApp:(NSString *)path withFamily:(NSString *)family
441
446
442
447
// The iOS 8 simulator treats stdout/stderr paths relative to the simulator's data directory.
443
448
// Create symbolic links in the data directory that points at the real stdout/stderr paths.
444
- if ([config.simulatedSystemRoot.sdkVersion isEqual :@" 8.0" ]) {
449
+ if ([self version: config.simulatedSystemRoot.sdkVersion isAtLeastVersion :@" 8.0" ]) {
445
450
NSString * dataPath = config.device .dataPath ;
446
451
[[NSFileManager defaultManager ] createSymbolicLinkAtPath: [dataPath stringByAppendingPathComponent: stdoutPath] withDestinationPath: stdoutPath error: NULL ];
447
452
[[NSFileManager defaultManager ] createSymbolicLinkAtPath: [dataPath stringByAppendingPathComponent: stderrPath] withDestinationPath: stderrPath error: NULL ];
You can’t perform that action at this time.
0 commit comments