CEWendel / SWTableViewCell

An easy-to-use UITableViewCell subclass that implements a swippable content view which exposes utility buttons (similar to iOS 7 Mail Application)
MIT License
7.14k stars 1.27k forks source link

The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor. #425

Open boai opened 6 years ago

boai commented 6 years ago

The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.

felixdkatt commented 5 years ago

This is most likely another pod's fault. SWTableViewCell is an Objective C library so it shouldnt be triggering it. When i installed my version of this i got the same error but it was from another library STRatingControl.

add this to your pod file or in the build settings add the SWIFT_VERSION = "your version of swift"

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

piaojin commented 5 years ago

1.create a swift file and create SWTableViewCell-Bridging-Header.h file. 2.set all of 'Build Settings''s 'Swift Language Version' to new Swift version (include Pods's Build Settings)