Skip to content

Commit

Permalink
Fixed ""The application that opened iOS Simulator failed to send all …
Browse files Browse the repository at this point in the history
…of the required information" error
  • Loading branch information
shazron committed Mar 11, 2014
1 parent b3ee3ee commit b9a7e69
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/iPhoneSimulator.m
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ - (int)launchApp:(NSString *)path withFamily:(NSString *)family
}
}

[self changeDeviceType:family retina:retinaDevice isTallDevice:tallDevice];
NSString* devicePropertyValue = [self changeDeviceType:family retina:retinaDevice isTallDevice:tallDevice];
[config setSimulatedDeviceInfoName:devicePropertyValue];

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

- (void) changeDeviceType:(NSString *)family retina:(BOOL)retina isTallDevice:(BOOL)isTallDevice {
- (NSString*) changeDeviceType:(NSString *)family retina:(BOOL)retina isTallDevice:(BOOL)isTallDevice {
NSString *devicePropertyValue;
if (retina) {
if (verbose) {
Expand All @@ -384,6 +385,8 @@ - (void) changeDeviceType:(NSString *)family retina:(BOOL)retina isTallDevice:(B
}
CFPreferencesSetAppValue((CFStringRef)deviceProperty, (CFPropertyListRef)devicePropertyValue, (CFStringRef)simulatorPrefrencesName);
CFPreferencesAppSynchronize((CFStringRef)simulatorPrefrencesName);

return devicePropertyValue;
}


Expand Down

0 comments on commit b9a7e69

Please sign in to comment.