turbolinks / turbolinks-ios

Native iOS adapter for building hybrid apps with Turbolinks 5
MIT License
881 stars 92 forks source link

Error Running Turbolinks iOS Demo #71

Closed Mardiniii closed 7 years ago

Mardiniii commented 8 years ago

Hi Everybody!

I saw the talk from @sstephenson about Turbolinks 5. Now, I want to try some exercises before implementing this feature in my work. I want to be clear that I never have used X-Code, I clone this repository https://github.com/turbolinks/turbolinks-ios/ and I was trying to run the demo. I started the server with the Turbolinks 5 app but when I want to run the simulator X-Code is raising the next error and I don't know how to fix it. You can see the error on the next screenshot:

image

Can you help me please?

jun1st commented 8 years ago

It's a swift 3 error when running codes in swift 2 format.

try out the swift-3.0 branch

Melonbwead commented 8 years ago

is it possible to install the swift-3.0 branch with cocoapods? I've tried passing the branch param on the podfile like:

pod 'Turbolinks', :git => 'https://github.com/turbolinks/turbolinks-ios.git', :branch => 'swift-3.0'

but they still come in at swift 2 syntax when they get put into the app.

jun1st commented 8 years ago

Yes, I'm using the swift-3.0 branch. And your pod file seems good to me, maybe try pod update?

chrise86 commented 7 years ago

I'm still having this issue - it does not seem to be any different using that branch. I have tried Pod update with no luck. @Mardiniii and @ChennyBaby did you manage to solve this?

zachwaugh commented 7 years ago

I can't reproduce this with the master branch or swift-3.0 branch and Xcode 8.1. Anyone seeing this issue, can you confirm you're running Xcode 8 (or 8.1) and building against the iOS 10 SDK? That was related to change with the iOS 10 SDK that made the snapshotViewAfterScreenUpdates method return an optional.