Commit dc8e769e authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

iossim: fix environment mutation

* ensure that the dictionary is mutable
* remove Objective-2.0 code

Change-Id: I30c3966a37ad24dfabfd4bd15b0079d0f1a02efc
Reviewed-by: default avatarEike Ziller <>
parent 401d28a0
......@@ -271,11 +271,11 @@ NSString *deviceIpadRetina = @"iPad (Retina)";
NSString *sdkVersion = [sdkRoot sdkVersion];
NSString *appSupportDir = [NSString stringWithFormat:@"%@/Library/Application Support/iPhone Simulator/%@",
NSHomeDirectory(), sdkVersion];
[environment addEntriesFromDictionary:@{
@"CFFIXED_USER_HOME" : appSupportDir,
@"IPHONE_SIMULATOR_ROOT" : [sdkRoot sdkRootPath],
@"NSUnbufferedIO" : @"YES",
NSMutableDictionary *mutableEnv = [NSMutableDictionary dictionaryWithDictionary:environment];
[mutableEnv setObject:appSupportDir forKey:@"CFFIXED_USER_HOME"];
[mutableEnv setObject:[sdkRoot sdkRootPath] forKey:@"IPHONE_SIMULATOR_ROOT"];
[mutableEnv setObject:@"YES" forKey:@"NSUnbufferedIO"];
environment = mutableEnv;
/* Set up the session configuration */
tClass = objc_getClass("DTiPhoneSimulatorSessionConfig");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment