Even seasoned iOS developers have found some difficulty when they try their hand at developing for the Apple Watch and watchOS 2. Here are some Apple Watch developer tricks we’ve discovered:
- Remove the app from the watch and reinstall frequently.
- To force quit your app, hold down side button and once you see the Power Off screen, hold side button again.
- You will run into fewer issues debugging on the watch when it is on the changer.
- If debugging on the Apple Watch isn’t working, un-pair and re-pair, trust computer, restart Xcode.
- Test with both the simulator and the physical watch.
- If you are having trouble chasing down an app crash try just running the iPhone app without the watch to eliminate that whole piece of the puzzle.
- If that doesn’t help, it is possible to debug an iOS app while the associated watch app is running.
- Log to the iOS console as much as possible. iOS Console from LemonJar makes this easier.
- Get to know all of the shortcut combos for the iOS and watch simulators.
- When testing notifications, turn off Wrist Detection in General settings of Apple Watch Companion app.
I’d love to hear what tricks you’ve discovered. Please leave a comment.