mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-17 23:15:02 +08:00
locate private framework in SharedFrameworks directory if needed (xcode 6)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user