The use of Swift 3 @objc inference in Swift 4 mode is deprecated?
Asked 07 September, 2021
Viewed 2K times
  • 58
Votes

Briefly, while using Xcode 9 Beta, I have run into the following warning:


  

The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and disable Swift 3 @objc inference.**

After some research, I still have no idea how to fix the issue. I would greatly appreciate any tips on how to fix this issue as well as an explanation of what is going on.

My goal is to grasp a better understanding of what is happening with my code.

12 Answer