-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Compiler Version for Xcode 8 #5521
Comments
As a work around I did this
But it really should preserve whatever is in the framework if it is set |
I think we should generate the build setting with I don't think that it is feasible to add this to the podspec as there is no clear definition on what e.g. Swift 3.0 is until the stable version ships. So there really isn't a way for CP to determine if a certain Pod would actually build with whatever Swift version is currently being used. |
@neonichu I'm not sure what this means: |
There is currently a PR pulling the version from the targets - #5540 |
Hey guys, which version of Cocoapods do I need in order to not use this workaround - #5521 (comment)? Is it specified/documented anywhere? I'm still getting “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly." errors for pods. bundle exec pod --version
1.0.1 |
@tomaskraina That workaround is working for me with Cocoapods 1.0.1. My Podfile:
|
Report
What did you do?
Run
pod install
for a pod that uses swift 2.3What did you expect to happen?
Install all pod dependencies correctly.
What happened instead?
The pod is installed but the compiler version setting is not respected and Xcode 8 defaults for Swift 3
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
This project is using swift 2.3, if you install it, Xcode does not set the compiler version
pod 'Charts', :git => "https://github.com/opswhisperer/Charts.git", :branch => "xcode8_swift23"
The text was updated successfully, but these errors were encountered: