locate private framework in SharedFrameworks directory if needed (xcode 6)

This commit is contained in:
Laurent Sansonetti
2014-06-02 22:28:02 -07:00
parent 25975ec040
commit f85340a378

View File

@@ -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) {