cesarferreira / SwiftEventBus

A publish/subscribe EventBus optimized for iOS
MIT License
1.11k stars 104 forks source link

Could you add the SWIFT_VERSION attribute in at least one of the targets? #59

Open RoqueCampos opened 1 year ago

RoqueCampos commented 1 year ago

Hi there!

I'm using this pod in a KMM (Kotlin Multiplarform) project, of course for the iOS version of the app.

The problem is that I'm not able to add the snippet ENV['SWIFT_VERSION'] = '5' to the generated podfile, and because of that, I'm getting the following error:

pod install Analyzing dependencies Pre-downloading:SwiftEventBusfromhttps://github.com/cesarferreira/SwiftEventBus.git, tag5.1.0` Downloading dependencies Installing SwiftEventBus (5.0.0) [!] Unable to determine Swift version for the following pods:

It will not be possible to add custom code to the podfile until Kmm reaches the version 1.9.0 (currently 1.7), I suppose it will take more than a year.

Would it be possible to include the workaround mentioned in the error message? Thanks in advance!

cesarferreira commented 1 year ago

I'm quite busy atm, feel free to open a pull request with the changes you need and I can accept it