-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add Swift Version to Podspec #57
Comments
Hi @khoogheem, many thanks for reporting this. Could you please clarify what specifically this addition to the podspec would improve? We currently have a My guest is that you might need to make More details would greatly help in resolving this issue. Thanks. |
my understanding and from that read is that the .swift-version is just for lint and push to trunk. |
Right, have you stumbled upon any problems with the way it is currently? Doesn't CocoaPods set the version for the integrated pod automatically to Swift 4.2? |
I am not sure what the current version that Pods sets as the automatic swift version. But this is something we have run into over the past. This change is a preventative change that ensures the pod is set to the correct version for Swift regardless of what the App or CocoaPod thinks. |
To clarify, I've never tested XMLCoder with Swift 4.0 or Swift 4.1 previously. Tests would almost certainly fail in 4.0 as they rely on I'm not against adding it to the podspec, but we need to be sure it's the correct version. Also we'd need to run the tests against all possible versions. Adding |
4.2 seems to make more sense. Would then we also want to change that in the Package to use the 4.2 tools |
This sets Swift version to 4.2 for both SwiftPM and CocoaPods. A `swift test` run has been added to `.travis.yml`, which makes CI builds longer, but looks like it's the only way to make sure SwiftPM builds work and generate code coverage at the same time. Resolves #57
@khoogheem this is resolved in #60, which is going to be released in the imminent XMLCoder 0.3. Hope this works for you, please feel free to reopen this issue otherwise. |
should be added to podSpec
The text was updated successfully, but these errors were encountered: