CocoaPods / Rome

Makes it easy to build a list of frameworks.
MIT License
694 stars 64 forks source link

Error Swift_Version missing #86

Closed jblorenzo closed 4 years ago

jblorenzo commented 4 years ago

This is on top of my Podfile


plugin 'cocoapods-rome',
    :pre_compile => Proc.new { |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.0'
            end
        end

        installer.pods_project.save
    },
    :post_compile => Proc.new { |installer|
        puts "Rome finished building all the frameworks"
    }

when i run pod install i get the following

- `AlamofireNetworkActivityLogger-iOS` does not specify a Swift version and none of the targets (<redacted>) 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.
- `AlamofireNetworkActivityLogger-watchOS` does not specify a Swift version and none of the targets (`<redacted>`) 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.
- `Cache` does not specify a Swift version and none of the targets (`<redacted>`) 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.
- `RainbowNavigation` does not specify a Swift version and none of the targets (`<redacted>`) 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.
- `TagCellLayout` does not specify a Swift version and none of the targets (`<redacted>`) 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.
- `netfox` does not specify a Swift version and none of the targets (`<redacted>`) 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.
- `OHHTTPStubs` does not specify a Swift version and none of the targets (`<redacted>`) 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.
tapwork commented 4 years ago

same here. this fixed it for me current_target_definition.swift_version = '4.0' from https://github.com/CocoaPods/CocoaPods/issues/8653#issuecomment-488767262