I added a WidgetExtension via Xcode to my react-native project, however I can't get them to work simultaneously. This is because both main.m and my widget are 'main'. Xcode says error: 1 duplicate symbol for architecture arm64
To fix this I removed main.m from Compile Sources in Xcode, so now my widget works fine, but react no longer does. Same for the other way around (removing @main from the widget), then react works fine, but the widget no longer does.
How can I get these two to work simultaneously?