Really excited about the recent addition of sharing Realm data between apps and extensions. The documentation details how to set the default realm to the app group directory, I've got that working.
Here's what I'm stuck on -- what's the best way to transfer the old database to the new location in the app group?
Based on @segiddins comment, I decided to go with moving the old database to the app group using NSFileManager:
Hope this will help other reader.
As discussed in https://github.com/realm/realm-cocoa/issues/4490, you can set app group path with below code and use File Manager to move existing db as mention above.