I updated my application for the Apple Watch, but I should have weighed it too much, and now it is definitely slowing down. I canβt understand the reasons for this slowdown, so I would like to debug the application, but I donβt know how to do it, because the application works for the simulator normally, the slowdown appears only on the device.
I tried to launch the application directly from xCode to Watch, but as soon as xCode started installing the application in Watch, it stopped execution so that I could not see what happens during operation (for example, when a certain breakpoint is started or otherwise we debug )
Does anyone have any idea what the correct way to debug on a physical Apple Watch?
PS: For example, this code:
func clearScreen() { firstPicker.setSelectedItemIndex(0) secondPicker.setSelectedItemIndex(0) defaultLabels() } func defaultLabels() { feesLabel.setText(NSLocalizedString ("FEES", comment: "Commissioni")) clearAllMenuItems() addMenuItemWithItemIcon(.Decline, title: NSLocalizedString("CAN_CEL", comment: ""), action: "clearScreen") if DefaultParameter.sharedInstance.wishMode == true { addMenuItemWithImage(UIImage(named: "will")! , title: NSLocalizedString("WILL_RECEIVE", comment: ""), action: "willWishButtonPressed") receivedLabel.setText(NSLocalizedString ("DESIRED_AMOUNT", comment: "")) } else { addMenuItemWithImage(UIImage(named: "wish")! , title: NSLocalizedString("WISH_RECEIVE", comment: ""), action: "willWishButtonPressed") receivedLabel.setText(NSLocalizedString ("RECEIVED_AMOUNT", comment: "")) } }
it takes about 7 seconds to start ...
source share