gitn00b1337 / expo-widgets

Bringing widget functionality to expo!
145 stars 12 forks source link

- `EXAV` is integrated by multiple targets that use a different Swift version: #6

Closed st4l1nR closed 10 months ago

st4l1nR commented 10 months ago

So i made my widget in swfit 5.0 but on build it raise this error - `EXAV` is integrated by multiple targets that use a different Swift version: `flowwyWidgetExtension` (Swift 5.4) and `flowwy` (Swift 5.0). , when i run it local i modified the podfile to change 5.4 (widget version) to 5.0 and the build went well , the problem it's when i try to upload to eas since the process it's automatic and this can't be changed during the process. It's widget automaticallly building in 5.4 version?

More specifications

Expo version 49.0.21 Expo widgets version 0.5.53

gitn00b1337 commented 10 months ago

Hi,

Sounds like eas is forcing a mismatch of swift version. Try adding the following to your app config:

[
                "@bittingz/expo-widgets",
                {
                    ios: {
                        ...
                        xcode: {
                            configOverrides: {
                                SWIFT_VERSION: '5.0',
                            },                        
                        },
                    },              
                }
            ],
st4l1nR commented 10 months ago

It worked thanks!