Skip to content

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

@RoqueCampos

Description

@RoqueCampos

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions