Xcode 6.4 (6E35b) Apple watch -handleWatchKitExtensionRequest is not called the first time.
| Originator: | florawqh | ||
| Number: | rdar://21788486 | Date Originated: | 13-Jul-2015 |
| Status: | Duplicate | Resolved: | No |
| Product: | Xcode | Product Version: | 6E35b |
| Classification: | Hang | Reproducible: | Yes |
Summary: Use Xcode Version 6.4 (6E35b) and run a simple watch app demo with SDK 8.4. When running: + (BOOL)openParentApplication:(NSDictionary *)userInfo reply:(void(^)(NSDictionary *replyInfo, NSError *error)) reply; from the watch extension the first time, and the companion app is not launched yet, In the companion app's appDelegate, --application:handleWatchKitExtensionRequest: reply:; is not called. The second time it will work. Tried with several projects on both simulator and devices and all have the same issue. All of them work fine with Xcode 6.3. Steps to Reproduce: 1.install xcode 6.4 2.Create a simple apple watch demo project. 3.Add a method in apple watch extension: + (BOOL)openParentApplication:(NSDictionary *)userInfo reply:(void(^)(NSDictionary *replyInfo, NSError *error)) reply; 4.Handle the watch request in the companion app's app delegate by: -application:handleWatchKitExtensionRequest:reply: 5.Add log to see if application:handleWatchKitExtensionRequest:reply is called. Expected Results: 1. The companion app should be launched by: - application: didFinishLaunchingWithOptions: 2. The watch request should be handled. -Application:handleWatchKitExtensionRequest:reply will be called Actual Results: 1. The companion app is launched by: - application: didFinishLaunchingWithOptions: 2. The watch request is NOT handled. -Application:handleWatchKitExtensionRequest:reply is not called the first time.
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!