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

defaultIssuer and defaultName are internal and cannot be referenced #152

Closed
martindaum opened this issue Oct 27, 2017 · 6 comments
Closed
Milestone

Comments

@martindaum
Copy link

I get the following errors when building my application:

In Token.swift:
Static let 'defaultIssuer' is internal and cannot be referenced from a default argument value
Static let 'defaultName' is internal and cannot be referenced from a default argument value

I have added OneTimePassword with cocoapods and my application uses Swift4.

@gabornagyfarkas
Copy link

We're having the same issue. With Swift 3.2 it compiles perfectly, so the problem most probably is Swift 4.

@gabornagyfarkas
Copy link

@martindaum as I see the problem is fixed as shown here.

My problem is that I cannot add the develop branch as a dependency to my own pod. Could you please create a tag from it @mattrubin ?

Thanks!

@kingmatusevich
Copy link

Fix this please

@MuhammadAliYousaf
Copy link

Fix it please.

@ko0f
Copy link

ko0f commented Mar 4, 2018

In the mean time, change the Podfile code to

pod 'OneTimePassword', :git => 'https://github.com/mattrubin/OneTimePassword'

@mattrubin
Copy link
Owner

The CocoaPods compile issue is fixed, and version 3.0.1 of the pod is now available.

The underlying issue was CocoaPods not respecting the project's .swift-version file, and defaulting to Swift 4.0 for all pods. The swift_version podspec parameter added in CocoaPods 1.4.0 allows the podspec to specify a Swift version that will be used by the generated Pods project.

@mattrubin mattrubin added this to the 3.0.1 milestone Mar 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants