Skip to content

Commit b9a7e69

Browse files
committed
Fixed ""The application that opened iOS Simulator failed to send all of the required information" error
1 parent b3ee3ee commit b9a7e69

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Source/iPhoneSimulator.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ - (int)launchApp:(NSString *)path withFamily:(NSString *)family
342342
}
343343
}
344344

345-
[self changeDeviceType:family retina:retinaDevice isTallDevice:tallDevice];
345+
NSString* devicePropertyValue = [self changeDeviceType:family retina:retinaDevice isTallDevice:tallDevice];
346+
[config setSimulatedDeviceInfoName:devicePropertyValue];
346347

347348
/* Start the session */
348349
session = [[[[self FindClassByName:@"DTiPhoneSimulatorSession"] alloc] init] autorelease];
@@ -359,7 +360,7 @@ - (int)launchApp:(NSString *)path withFamily:(NSString *)family
359360
return EXIT_SUCCESS;
360361
}
361362

362-
- (void) changeDeviceType:(NSString *)family retina:(BOOL)retina isTallDevice:(BOOL)isTallDevice {
363+
- (NSString*) changeDeviceType:(NSString *)family retina:(BOOL)retina isTallDevice:(BOOL)isTallDevice {
363364
NSString *devicePropertyValue;
364365
if (retina) {
365366
if (verbose) {
@@ -384,6 +385,8 @@ - (void) changeDeviceType:(NSString *)family retina:(BOOL)retina isTallDevice:(B
384385
}
385386
CFPreferencesSetAppValue((CFStringRef)deviceProperty, (CFPropertyListRef)devicePropertyValue, (CFStringRef)simulatorPrefrencesName);
386387
CFPreferencesAppSynchronize((CFStringRef)simulatorPrefrencesName);
388+
389+
return devicePropertyValue;
387390
}
388391

389392

0 commit comments

Comments
 (0)