From cc15311759219225903e0cb95bd9fd9139934d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Fri, 20 Dec 2013 12:21:30 +0100 Subject: [PATCH] De-register spec app for notifications first. --- lib/motion/project/template/ios/config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/motion/project/template/ios/config.rb b/lib/motion/project/template/ios/config.rb index 1afdaee6..d18f350f 100644 --- a/lib/motion/project/template/ios/config.rb +++ b/lib/motion/project/template/ios/config.rb @@ -456,10 +456,10 @@ EOS - (void)appLaunched:(id)notification { - // Give a bit of time for the simulator to attach... - [self performSelector:@selector(runSpecs) withObject:nil afterDelay:0.3]; // unregister observer to avoid duplicate invocation [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil]; + // Give a bit of time for the simulator to attach... + [self performSelector:@selector(runSpecs) withObject:nil afterDelay:0.3]; } - (void)runSpecs