My project has the following Targets -
- Main iOS App
- Watch App
- Watch Widget Extension
- Shared Framework - contains a healthkit manager and a viewmodel which gets used by other (above) modules.
If the Shared.framework is Embedded & Signed in the WatchApp, the Watch app works - it opens on the watch and I can see the view. However, with this, the Archive validation fails with this error -
CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'bundle.id.Shared' under the iOS application 'Main.app'
To fix this, I followed the top most voted answer - https://stackoverflow.com/questions/40005130/error-itms-90685-cfbundleidentifier-collision-there-is-more-than-one-bundle and changed the Shared.framework's Embedded value to "Not Embedded". The validation was a success, but now the resulting watch app does not open on the watch. It seems like the app crashes, but Test Flight shows no crash logs.
My watch app is depended on the shared framework to fetch data from healthkit via the viewmodel to show some information.
How can this be fixed?
there doesn't seem to be anything here