You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swift Compiler Error after updating to Swift: "Argument of '#selector' refers to instance method 'tick' that is not exposed to Objective-C"
Based on my research, adding @objc would expose these instance methods to Objective-C and I see that in the Hokusai.swift file of your latest Hokusai version (0.4.0) on Github you have those @objc attributes. However, when I install the latest Hokusai pod via Cocoapods, I do not see these attributes in the Hokusai file.
Not sure why the Hokusai.swift pulled from Cocoapods differs from the Hokusai.swift here in the repo (the 6 missing @objc attributes seem to be the only difference). For example, in the Hokusai.swift file of the latest master branch, it correctly shows the attribute for example: @objc func tick(_ displayLink: CADisplayLink)
But in the Hokusai.swift file in my Xcode project, I do not see this @objc attribute, even though I installed the latest Hokusai (0.4.0) (via pod Hokusai in my Podfile). @ytakzk
The text was updated successfully, but these errors were encountered:
Swift Compiler Error after updating to Swift:
"Argument of '#selector' refers to instance method 'tick' that is not exposed to Objective-C"
Based on my research, adding
@objc
would expose these instance methods to Objective-C and I see that in the Hokusai.swift file of your latest Hokusai version (0.4.0) on Github you have those@objc
attributes. However, when I install the latest Hokusai pod via Cocoapods, I do not see these attributes in the Hokusai file.Not sure why the Hokusai.swift pulled from Cocoapods differs from the Hokusai.swift here in the repo (the 6 missing @objc attributes seem to be the only difference). For example, in the Hokusai.swift file of the latest master branch, it correctly shows the attribute for example:
@objc func tick(_ displayLink: CADisplayLink)
But in the Hokusai.swift file in my Xcode project, I do not see this @objc attribute, even though I installed the latest Hokusai (0.4.0) (via
pod Hokusai
in my Podfile).@ytakzk
The text was updated successfully, but these errors were encountered: