Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RoqueCampos opened this issue Mar 25, 2023 · 1 comment

Comments

@RoqueCampos
Copy link

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`, tag 5.1.0
Downloading dependencies
Installing SwiftEventBus (5.0.0)
[!] Unable to determine Swift version for the following pods:

  • SwiftEventBus does not specify a Swift version and none of the targets (ios) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.
    `

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants