mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-13 01:29:00 +08:00
[WatchKit] Add some more logging.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user