Getting Going with the Apple Watch in Rubymotion

by Luke, Founder

Getting Going with the Apple Watch in Rubymotion

We've been putting an Apple Watch extension to an existing app and it's been great fun! We were hitting some issues getting going with it in Rubymotion. I thought I'd start to document our findings and hopefully that'll help others.

So the main thing was that we couldn't get the app running on our watches in development mode. The Apple Watch Rubymotion guide tells you to set the identifiers but they tell you to set it to something wrong :/. As you probably know, to allow deployment onto you iPhone and Apple Watch, you'll need to set up identifiers. Here are the identifiers that you need set to in order to deploy successfully:

  • Parent app: com.mycompany.my_app
  • Watch app: com.mycompany.my_app.watchkitapp
  • WatchKit extension: com.mycompany.my_app.watchkitapp.watchkitextension

The 2 Rakefiles need to be set up as described in the guide. Parent app Rakefile provisioning and code-signing info:

app.target "my_watch_app", :watchapp
app.codesign_certificate = 'My Codesign Certificate'
app.provisioning_profile = _com.mycompany.my_app.mobileprovision_

Then, the watch app Rakefile provisioning and code-signing info needs to be:

app.codesign_certificate = 'My Codesign Certificate'
app.provisioning_profile = _com.mycompany.my_app.watchkitextension.mobileprovision_
app.watch_app_config.codesign_certificate = 'My Codesign Certificate'
app.watch_app_config.provisioning_profile = _com.mycompany.my_app.watchapp_

I'll be adding more shortly, so please check back.

More articles

Why engineering process is becoming a consultancy’s biggest advantage

As AI makes code faster to produce, the real differentiator for software consultancies is shifting to the engineering process around it.

Read more

Why mobile apps need ongoing support

Getting a mobile app into the App Store and Google Play is not the end of the story. Ongoing support keeps it compatible, reliable and store-ready as platforms change.

Read more
The Azuki team smiling and gathered together, ready to build and collaborate with clients.

Ready when you are

Let’s build something together

Whether you’re starting fresh or looking to improve things, we’re ready to talk.