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

Argument labels '(stringInterpolationSegment:)' do not match any available overloads #47

Open
1tan1 opened this issue Apr 14, 2019 · 3 comments

Comments

@1tan1
Copy link

1tan1 commented Apr 14, 2019

Hi, I upgraded my application from Swift 4.2 to Swift 5 and I get an error. How do i fix this?

File: GMStepper.swift

Error: Argument labels '(stringInterpolationSegment:)' do not match any available overloads

Error is in 2 areas.

Area 1:

else if isInteger {
label.text = String(stringInterpolationSegment: "(Int(value))(self.suffixString)"/Int(value)/)
}
else {
label.text = String(stringInterpolationSegment: "(value)(self.suffixString)"/value/)
}

Area 2:

if self.showIntegerIfDoubleIsInteger && floor(self.value) == self.value {
label.text = String(stringInterpolationSegment: "(Int(self.value))(self.suffixString)")
} else {
label.text = String(stringInterpolationSegment: "(Int(self.value))(self.suffixString)")
}

@liuchangsmx
Copy link

try this in your podfile
post_install do |installer|
tTargets = ['GMStepper']
installer.pods_project.targets.each do |target|
if tTargets.include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
end
end

@1tan1
Copy link
Author

1tan1 commented Apr 20, 2019

I rolled back to Swift 4.2. This is a temp fix.

Hoping the dev fixes it for the new Xcode running Swift 5.

@nickthedude
Copy link

nickthedude commented Jun 12, 2019

Still having an issue with this even after adding podfile post install script as suggested

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

3 participants