icanzilb / SwiftSpinner

A beautiful activity indicator and modal alert written in Swift (originally developed for my app DoodleDoodle) Using blur effects, translucency, flat and bold design - all iOS 8 latest and greatest
MIT License
2.19k stars 268 forks source link

Errors when trying to compile using Xcode 10 Swift 4.2 #132

Closed jayczech23 closed 5 years ago

jayczech23 commented 5 years ago

I am getting a compilation error when trying to compile my XCode project using:

Snippets of the code in SwiftSpinner.swift that is giving me the errors are below:

screen shot 2018-12-04 at 9 17 50 pm screen shot 2018-12-04 at 9 17 24 pm screen shot 2018-12-04 at 9 17 12 pm
andreamazz commented 5 years ago

Duplicate of https://github.com/icanzilb/SwiftSpinner/issues/128

So I found a solution to this problem. The issue arrises if you update all the PODS in your Workspace before converting your source to Swift 4.2. I was using Swift 4 with SwiftSpinner 1.5.0. I updated all my pods before I updated my project source files. Mistake. Once I updated all the source files (and not the pods), then deleted all the existing PODS in the project directory, then ran Pod Install, I got things working with SwiftSpinner 1.6.2

jayczech23 commented 5 years ago

I'll give that a go thank you @andreamazz