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

Cannot compile in Xcode 10.2 #140

Open
mxie1563 opened this issue Apr 19, 2019 · 7 comments
Open

Cannot compile in Xcode 10.2 #140

mxie1563 opened this issue Apr 19, 2019 · 7 comments

Comments

@mxie1563
Copy link

Have a lot error related to (NS)String class:
.../Pods/M13Checkbox/Sources/M13CheckboxAnimationGenerator.swift:38:69: Type 'String' has no member 'easeIn'
.../Pods/M13Checkbox/Sources/M13CheckboxAnimationGenerator.swift:43:69: Type 'String' has no member 'easeOut'
.../Pods/M13Checkbox/Sources/Managers/M13CheckboxBounceController.swift:93:37: Type 'String' has no member 'round'; did you mean 'count'?
.../Pods/M13Checkbox/Sources/M13CheckboxAnimationGenerator.swift:184:30: Type 'CAMediaTimingFillMode' (aka 'NSString') has no member 'forwards'

@mxie1563
Copy link
Author

resolved by replacing all the implicit .round, .forwards, .backwards with explicit kCA constant values:

replace:
markLayer.lineCap = .round
markLayer.lineJoin = .round
with
markLayer.lineCap = kCALineCapRound
markLayer.lineJoin = kCALineJoinRound

replace
animation.fillMode = CAMediaTimingFillMode.forwards
animation.timingFunction = CAMediaTimingFunction(name: .easeInEaseOut)
with
animation.fillMode = kCAFillModeForwards
animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut)

....
Throughout the project.

@BradPatras
Copy link

@mxie1563 Did you run pod update after updating to 10.2?

@mxie1563
Copy link
Author

mxie1563 commented Apr 23, 2019

@BradPatras I did. However, the compile didn't work until I unlocked and made these changes I mentioned above.

@BradPatras
Copy link

@mxie1563 What version of swift are you using with your project? And do you have a swift version explicitly stated in your Podfile?

@mxie1563
Copy link
Author

@BradPatras The project is specified for swift 4.
In the Podfile, there is no swift version specified:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'

use_frameworks!

@LeXuanKhanh
Copy link

i have the same issue, have it fixed yet ?

@BradPatras
Copy link

@LeXuanKhanh If you've already updated your project to swift 4 and made sure you're targeting the latest version of the M13Checkbox, you could add something like this to the bottom of your podfile and specify a swift version for the M13Checkbox. groue/GRDB.swift#410 (comment)

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

No branches or pull requests

3 participants