Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c15964d

Browse files
committed
[Bug 18422] Fix crash when launching iOS 9.2 simulator
1 parent b587114 commit c15964d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/notes/bugfix-18422.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fixed crash when launching the ios 9.2 simulator

revmobile/src/reviphoneproxy.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ int main(int argc, char *argv[])
275275
// Instead, we need to use the SimServiceContext class, making sure we fetch the correct context for the current version of Xcode.
276276
id t_service_context;
277277
t_service_context = NSClassFromString(@"SimServiceContext");
278-
if (t_service_context != nil)
278+
// PM-2016-09-19: [[ Bug 18422] We want to use SimServiceContext class *only* in xcode 8
279+
if (t_service_context != nil && [t_service_context respondsToSelector:@selector(sharedServiceContextForDeveloperDir)])
279280
{
280281
NSString *t_dev_dir;
281282
t_dev_dir = [NSString stringWithFormat: @"%s", argv[1]];

0 commit comments

Comments
 (0)