I want to debug both the apple watch app (foreground) and the iOS app (background)
The reason is because I'm using this code in Apple watch extension to open the iOS app in background to make a service call:
[WKInterfaceController openParentApplication:@{@"key":@"loadRecentData"} reply:^(NSDictionary *replyInfo, NSError *error) {...
And I want to set a breakpoint inside here to check if there's a reply:
- (void)application:(UIApplication *)application handleWatchKitExtensionRequest:(NSDictionary *)userInfo reply:(void (^)(NSDictionary *))reply {
Suggested solution by Jesse Tayler gives this error: