Closed invliD closed 7 years ago
Do you have a plan when you migrate your code to Swift 3 or Swift 2.3? Since Xcode 8 is out now we would like to switch as fast as possible.
Check out the swift-3.0 branch: https://github.com/wvteijlingen/Spine/tree/swift-3.0
swift-3.0 branch does not work for me. Here are a few points to look at
Has anyone got it to work? Please advise.
I updated the Podspec to remove the extraneous apostrophe. I'm no Cocoapods user but I believe you need to point to the SwiftyJSON swift 3 branch in your own Podfile.
Regarding the syntax issues and runtime error, could you create a PR for them or let me know which issues there are? Thanks!
Hey,
to use the Swift 3 branch as dependency for your POD you need to specify that in the podspec of Spine in its Swift 3 branch. With Cocoapods always the pod owner is responsible for setting the correct dependencies.
If I am not mistaken Cocoapods does not allow you specify unreleased pod versions in a Podspec. See https://github.com/cocoapods/cocoapods/issues/3901#issuecomment-227291635. Again, I'm not a Cocoapods user so if you have a fix for this, feel free to create a PR.
Right, you can't specify a dependency as git repo in podspec. In that case you might want to update the installation guide for cocoapod with the following line. It works for me.
pod 'SwiftyJSON', :git => 'https://github.com/appsailor/SwiftyJSON.git', :branch => 'swift3'
Thanks,
Ahhh nice thank you!
We want too 👍