skywinder / GaugeKit

Kit for building custom gauges + easy reproducible Apple's style ring gauges.
https://www.cocoacontrols.com/controls/gaugekit
MIT License
1.03k stars 100 forks source link

Gauge+Animations updateProgress not exposed to Objective-C #63

Closed jfosterdavis closed 4 years ago

jfosterdavis commented 6 years ago
pod spec lint

 -> ZMAppFoundation (0.1.5)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - ERROR | xcodebuild:  GaugeKit/GaugeKit/Gauge+Animations.swift:22:23: error: argument of '#selector' refers to instance method 'updateProgress' that is not exposed to Objective-C
    - NOTE  | xcodebuild:  GaugeKit/GaugeKit/Gauge+Animations.swift:32:10: note: add '@objc' to expose this instance method to Objective-C

Analyzed 1 podspec.

I have a cocoa pod that uses gauge kit as a dependency (https://github.com/jfosterdavis/ZMAppFoundation/tree/release-0.1.5). When I am doing local development I change line Gauge+Animations.swift:32:10 from: func updateProgress(_ timer: Timer) -> Void { to @objc func updateProgress(_ timer: Timer) -> Void {

jfosterdavis commented 6 years ago

It looks like this is corrected in your swift-4 branch?

skywinder commented 4 years ago

fixed in latest versions