Sunday, November 8, 2026
HomeiOS Developmentios - Objc interop. Sort 'ObjcProtocolImpl' can't conform to protocol 'ObjcProtocol' as...

ios – Objc interop. Sort ‘ObjcProtocolImpl’ can’t conform to protocol ‘ObjcProtocol’ as a result of it has necessities that can’t be glad

[ad_1]

Similar situation, however i feel it does not use exterior modules Sort “SwiftClass” can’t conform to protocol “ObjcProtocol” as a result of it has necessities that can’t be glad. In my situation I am unable to import SwiftProject-Swift.h into bridging header, as a result of swift and objc each see SwiftProject varieties.

Xcode seems errors like:

  • For overriding present strategies

Technique doesn’t override any technique from its superclass

  • For implementing ObjcProtocol

Sort ‘ObjcProtocolImpl’ can’t conform to protocol ‘ObjcProtocol’ as a result of it has necessities that can’t be glad

  • For calling present strategies

Incorrect argument label in name (have ‘withSwiftPack:’, anticipated ‘withSwift:’)

In a brief, swift do not see few objc technique from class ObjcClass.

Repository of instance – https://github.com/Willianlike/SwiftObjcInterop

File in repository, which comprises commented uncompiled strains – https://github.com/Willianlike/SwiftObjcInterop/blob/important/SwiftObjcInterop/SwiftObjcInterop/ViewController.swift

Within the ObjcClass interface declared few strategies which makes use of Swift lessons in signatures from SwiftObjcInterop mission, SwiftPack as swift bundle, SwiftProject as dynamic library and Alamofire as swift bundle. However in a swift code solely accessible technique which makes use of SwiftObjcInterop swift class.

Additionally right here is created ObjcClassSwiftChild and utilizing this class in objc is completely right, however swift code does not see few strategies which is commented in ViewController.swift.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments