mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
[sim] display message instead of assert with Xcode 4
This commit is contained in:
@@ -1309,7 +1309,10 @@ main(int argc, char **argv)
|
||||
[[NSBundle bundleWithPath:[xcode_path stringByAppendingPathComponent:@"Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTiPhoneSimulatorRemoteClient.framework"]] load];
|
||||
|
||||
Class Platform = NSClassFromString(@"DVTPlatform");
|
||||
assert(Platform != nil);
|
||||
if (!Platform) {
|
||||
fprintf(stderr, "*** We stopped supporting Xcode 4. Please use Xcode 5 or higher.\n\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Class AppSpecifier =
|
||||
NSClassFromString(@"DTiPhoneSimulatorApplicationSpecifier");
|
||||
|
||||
Reference in New Issue
Block a user