Xcode 6 doesn't execute application:openURL:sourceApplication:annotation:
| Originator: | mc | ||
| Number: | rdar://17557576 | Date Originated: | 2014-07-04 |
| Status: | Closed | Resolved: | 2014-07-16 |
| Product: | Developer Tools | Product Version: | Xcode 6 Beta 2 |
| Classification: | Serious Bug | Reproducible: | Always |
The same app, same code in application:openURL:sourceApplication:annotation: Xcode 5.1.1 runs it Xcode 6 doesn't
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Probably my fault
Works now, so it was probably my fault. Code to test it
@implementation AppDelegate { NSURL u17557576; UIApplication app; }
(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions { u17557576 = [NSURL URLWithString:@"http://objcgn.com/17557576.html"]; // rdar17557576 app = [UIApplication sharedApplication]; NSLog(@"%@ -> %d", u17557576, [app canOpenURL:u17557576]); [self openURL]; return YES; }
(BOOL)application:(UIApplication *)application openURL:(NSURL )url sourceApplication:(NSString )sourceApplication annotation:(id)annotation { NSLog(@"nnurl: %@nsourceApplication: %@nannotation: %@", url, sourceApplication, annotation); [self openURL]; return YES; }
(void)openURL { [app performSelector:@selector(openURL:) withObject:u17557576 afterDelay:1]; }
@end