From 9bf407e413b07d751eb8622debd5b75f6fe7a34f Mon Sep 17 00:00:00 2001 From: Watson Date: Sat, 21 Dec 2013 11:36:23 +0900 Subject: [PATCH] [sim] display message instead of assert with Xcode 4 --- bin/sim.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/sim.m b/bin/sim.m index 815b21f7..529ac318 100644 --- a/bin/sim.m +++ b/bin/sim.m @@ -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");