File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,8 @@ - (int)launchApp:(NSString *)path withFamily:(NSString *)family
342
342
}
343
343
}
344
344
345
- [self changeDeviceType: family retina: retinaDevice isTallDevice: tallDevice];
345
+ NSString * devicePropertyValue = [self changeDeviceType: family retina: retinaDevice isTallDevice: tallDevice];
346
+ [config setSimulatedDeviceInfoName: devicePropertyValue];
346
347
347
348
/* Start the session */
348
349
session = [[[[self FindClassByName: @" DTiPhoneSimulatorSession" ] alloc ] init ] autorelease ];
@@ -359,7 +360,7 @@ - (int)launchApp:(NSString *)path withFamily:(NSString *)family
359
360
return EXIT_SUCCESS;
360
361
}
361
362
362
- - (void ) changeDeviceType : (NSString *)family retina : (BOOL )retina isTallDevice : (BOOL )isTallDevice {
363
+ - (NSString * ) changeDeviceType : (NSString *)family retina : (BOOL )retina isTallDevice : (BOOL )isTallDevice {
363
364
NSString *devicePropertyValue;
364
365
if (retina) {
365
366
if (verbose) {
@@ -384,6 +385,8 @@ - (void) changeDeviceType:(NSString *)family retina:(BOOL)retina isTallDevice:(B
384
385
}
385
386
CFPreferencesSetAppValue ((CFStringRef)deviceProperty, (CFPropertyListRef)devicePropertyValue, (CFStringRef)simulatorPrefrencesName);
386
387
CFPreferencesAppSynchronize ((CFStringRef)simulatorPrefrencesName);
388
+
389
+ return devicePropertyValue;
387
390
}
388
391
389
392
You can’t perform that action at this time.
0 commit comments