diff --git a/bin/sim.m b/bin/sim.m index 4e2d961f..f695d7b8 100644 --- a/bin/sim.m +++ b/bin/sim.m @@ -1320,7 +1320,11 @@ main(int argc, char **argv) #if defined(SIMULATOR_IOS) // Load the frameworks. [[NSBundle bundleWithPath:[xcode_path stringByAppendingPathComponent:@"../SharedFrameworks/DVTFoundation.framework"]] load]; - [[NSBundle bundleWithPath:[xcode_path stringByAppendingPathComponent:@"Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTiPhoneSimulatorRemoteClient.framework"]] load]; + NSString *framework_path = [xcode_path stringByAppendingPathComponent:@"Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTiPhoneSimulatorRemoteClient.framework"]; + if (![[NSFileManager defaultManager] fileExistsAtPath:framework_path]) { + framework_path = [xcode_path stringByAppendingPathComponent:@"../SharedFrameworks/DVTiPhoneSimulatorRemoteClient.framework"]; + } + [[NSBundle bundleWithPath:framework_path] load]; Class Platform = NSClassFromString(@"DVTPlatform"); if (Platform == NULL) {