I recently updated an Apple Watch App from the app + extension lifecycle to the SwiftUI lifecycle.
Or to put it another way, the bundle Ids have changed so that:
Before
com.myapp
com.myapp.watchkitapp
com.myapp.watchkitapp.extension
After
com.myapp.paddlelogger
com.myapp.watchkitapp
For me everything works great, but we have multiple reports of people seeing two versions of the app in the Apple Health Sources
This means there are two "sources" of data and two sets of permissions. In the past we just had one set of permissions.
It also means we have trouble reading data on the iPhone app that was recorded on the watch app.
HKSource.default().bundleIdentifier
is
com.myapp
on iPhone and
com.myapp.watchkitapp
on Apple Watch
That must be part of the issue(?).
Is this something I've done wrong? I can't find any docs on migrating from from the legacy Extension style to the new SwiftUI Lifecycle