Update Xcode to 12.5 will cause an error such that the method cannot be found. The following figure



The problem is that the project has been running for several years and such method attributes are definitely not wrong. Rewrite method is not realistic, the initial positioning is that the bridge file cannot be found, because it is a project of OC and SWIFT mixed. Repeated errors have nothing to do with bridging files. Finally, I found a 12.4 Xcode file and ran it to find the method prompt

Swift property ‘VideoDeleteResponse.success’ uses ‘@objc’ inference deprecated in Swift 4; add ‘@objc’ to provide an Objective-C entrypoint

This means adding an @objc before a method or property. Oc can only call swift, the previous version only prompted, 12.5 version directly reported an error. Some of the older projects in the maintenance company may encounter this problem. Everybody pay attention to the pit.

In addition, OC will rewrite the swift method name when calling swift method, which I didn’t notice until now, because OC+ SWIFT mixed project is seldom contacted. Step pit end ~