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

Add Swift version 4.1 to podspec #3608

Merged
merged 1 commit into from
Sep 6, 2018
Merged

Conversation

larryonoff
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Aug 21, 2018

Codecov Report

Merging #3608 into 4.0.0 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            4.0.0    #3608   +/-   ##
=======================================
  Coverage   30.12%   30.12%           
=======================================
  Files         116      116           
  Lines       13220    13220           
=======================================
  Hits         3982     3982           
  Misses       9238     9238

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68d5459...707d627. Read the comment docs.

@liuxuan30
Copy link
Member

Thanks. why should we add this?

Some context: Swift 4.0 branch should be a refactor branch, however @jjatie and I had to take over projects in company, so we postpone the refactor.

Currently, I'm thinking we will finish Xcode 10 update before the refactor. Which means maybe we will move to the latest Swift next month. Adding Swift 4.1 tag in pod might not be valid at that time.

@larryonoff
Copy link
Contributor Author

@liuxuan30 this's needed for CocoaPods to set correct Swift version in Pods project. In other case the default swift version will be set and workspace may not compile.

@jjatie
Copy link
Collaborator

jjatie commented Aug 31, 2018

4.1 is the current version and is supported in the Xcode 10 betas. I think we should do this.

@liuxuan30 liuxuan30 merged commit 97587d0 into ChartsOrg:4.0.0 Sep 6, 2018
@ApoorvKhatreja
Copy link

Just FYI, in my Podfile, I have the Charts pod pointed to the 4.0.0 branch, and this change causes pod install to fail.

Podfile:

 pod 'Charts', :git => 'git@github.com:danielgindi/Charts.git', :branch => '4.0.0'

Error message:

Pre-downloading: `Charts` from `git@github.com:danielgindi/Charts.git`, branch `4.0.0`
[!] Failed to load 'Charts' podspec:
[!] Invalid `Charts.podspec` file: undefined method `swift_version=' for #<Pod::Specification name="Charts">.

 #  from /var/folders/2q/hd3_cxdx0ynfl0vh3hy6_8480000gn/T/d20180913-83750-1n0woo3/Charts.podspec:8
 #  -------------------------------------------
 #    s.authors = "Daniel Cohen Gindi", "Philipp Jahoda"
 >    s.swift_version = '4.1'
 #    s.ios.deployment_target = "8.0"
 #  -------------------------------------------

@larryonoff
Copy link
Contributor Author

@ApoorvKhatreja what CocoaPods version do you use? what version of Xcode?

@ApoorvKhatreja
Copy link

@larryonoff

$ pod --version
1.3.1

I have both Xcode 9.4.1 and the Xcode 10 GM installed.

@larryonoff
Copy link
Contributor Author

larryonoff commented Sep 13, 2018

@ApoorvKhatreja please update CocoaPods to 1.4.* where swift_version was introduced and better to the latest one 1.5.3.

@larryonoff larryonoff deleted the 4.0.0 branch September 13, 2018 17:15
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

Successfully merging this pull request may close these issues.

5 participants