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

Build fail on iOS 11/Swift 4 #19

Closed
zacrose14 opened this issue Nov 27, 2017 · 2 comments
Closed

Build fail on iOS 11/Swift 4 #19

zacrose14 opened this issue Nov 27, 2017 · 2 comments

Comments

@zacrose14
Copy link

Trying to use this and I'm getting a build time error from Swift Compiler and it appears some changes from Swift 3 to Swift broke part..

Argument of '#selector' refers to instance method 'didTapPageControl' that is not exposed to Objective-C

'init(colorLiteralRed:green:blue:alpha:)' is unavailable: This initializer is only meant to be used by color literals

Argument of '#selector' refers to instance method 'tappedPage()' that is not exposed to Objective-C

@adrum
Copy link

adrum commented Nov 27, 2017

If you are using CocoaPods, you can add this to the bottom of your Podfile:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'SwiftyOnboard'
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '3.2'
            end
        end
    end
end

@zacrose14
Copy link
Author

That fixed it for now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants