[WatchKit] Add some more logging.

This commit is contained in:
Eloy Durán
2014-12-03 21:28:53 +01:00
parent ac216d111e
commit 7f53dc0c39
2 changed files with 8 additions and 2 deletions

View File

@@ -176,6 +176,7 @@ init_imported_classes(void) {
- (void)launch;
{
NSLog(@"Launching application...");
DVTXPCServiceInformation *unstartedService = [self watchKitAppInformation];
[self.simulator debugXPCServices:@[unstartedService]];
DTXChannel *channel = self.simulator.xpcAttachServiceChannel;
@@ -258,6 +259,7 @@ init_imported_classes(void) {
//@"__XPC_DYLD_FRAMEWORK_PATH": self.buildDir,
//@"__XPC_DYLD_LIBRARY_PATH": self.buildDir
//};
NSLog(@"Watch app `%@`: %@", [app performSelector:@selector(fullPath)], app);
return app;
}

View File

@@ -83,8 +83,12 @@ task :simulate_watch_app do
Rake::Task["build:simulator"].invoke
end
# TODO need a way to identify a watch extension from other extensions
watch_extension = App.config.targets.first
watch_extension.rake("simulator")
#watch_extension = App.config.targets.first
#watch_extension.rake("simulator")
app = App.config.app_bundle('iPhoneSimulator')
sim = File.join(App.config.bindir, 'watch-sim')
#App.info 'Simulate', app
sh "'#{sim}' '#{app}'"
end
desc "Run the simulator"