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

Swift 3 issue. #83

Open
dipkasyap opened this issue Apr 24, 2017 · 6 comments
Open

Swift 3 issue. #83

dipkasyap opened this issue Apr 24, 2017 · 6 comments

Comments

@dipkasyap
Copy link

screen shot 2017-04-24 at 11 30 24 am

@ghost
Copy link

ghost commented May 12, 2017

yeah i am getting the same issue no help around here

@andyyhope
Copy link

@Lonealpha @dipkasyap

try adding this to the very end of your Podfile

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '3.0'
        end
    end
end

Also, validate that your Swift Language Version in Build Settings of your target is set to Swift 3

@AdrianBinDC
Copy link

Swift language version in which target? Should I be fiddling with the CocoaPods targets or the targets for my project?

@dsmailes
Copy link

dsmailes commented Oct 27, 2017

Or you could use this which should only affect the Swift versions of this pod and GPUImage which it depends on, leaving any other pods as they are for Swift 4:

post_install do |installer|
        myTargets = ['SwiftOCR', 'GPUImage']

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

@karapurakesh
Copy link

screen shot 2017-11-23 at 10 29 29 pm
screen shot 2017-11-23 at 10 32 04 pm
Unable to build the app (Xoce 8.3.3) Swift 3 - Please send us the sample pod file to use for swift 3

@spotlightishere
Copy link

spotlightishere commented Feb 6, 2018

Commit ffae067 updated everything to the Swift 4 syntax. You could use the commit before that (b739122) by specifying the commit in your Podfile:

pod 'SwiftOCR', :git => 'https://github.com/garnele007/SwiftOCR', :commit => 'b7391228983d894d1ef133dc747b9191fd0237e4'

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

6 participants