nickoneill / PermissionScope

Intelligent iOS permissions UI and unified API
MIT License
4.85k stars 507 forks source link

Swift 3 compatibility #176

Closed afiq90 closed 7 years ago

afiq90 commented 8 years ago

Does anyone know how to fix this error when using Xcode 8 BETA? Below is the error screenshot.

http://i.imgur.com/ImuQIUE.png

Any help will be much appreciated.

nickoneill commented 8 years ago

You can try the code in issue #174 to get the Swift 3 syntax in the short term. We'll have an official swift 3 branch soonish.

SaifAlDilaimi commented 7 years ago

any progress?

bre7 commented 7 years ago

Check #174 which has the latest swift 3 changes

bre7 commented 7 years ago

Check swift3 branch (compatible with Xcode 8 beta 6)

TODO:

nickoneill commented 7 years ago

Just fixed both of these on the swift3 branch, as well as some other issues.

Let me know if this makes sense for a swapover:

That'll make sure people on swift 2 have the newest when using that branch.

The readme has been updated for swift 3. I might have to revisit the code samples (not the example projects, just in the readme) to make sure they're right.

bre7 commented 7 years ago

👍

ogezue commented 7 years ago

What is currently needed to run a swift 3.0 migrated project with PermissionScope?

nickoneill commented 7 years ago

Use the swift3 branch with cocoapods or carthage @ogezue

bclubb commented 7 years ago

I'm trying

pod 'PromiseKit', :git => 'https://github.com/nickoneill/PermissionScope.git', :branch => 'swift3'

but getting [!] Unable to find a specification for 'PromiseKit'.

Is there something obvious that I'm doing wrong with the podfile? Great project.

nickoneill commented 7 years ago

@bclubb The pod name is PermissionScope, not PromiseKit

bclubb commented 7 years ago

Sorry, going through my podfile and updating for swift3. Great project

nickoneill commented 7 years ago

Master is now swift 3 with version 1.1... I'm still fighting cocoapods to get the update pushed there

nickoneill commented 7 years ago

Should be done now, at version 1.1.1 after much fighting.