I have an interesting issue, When I create a global actor
@objc @globalActor public final actor MyActor {
static public let shared = MyActor()
private init(){}
}
and Conform it to a class that inherits NSObject
@MyActor
public final class MyClass: NSObject {
@objc public var propertyOne: SomeType
@objc func functionOne() async {
///Some Logic
}
}
I then use xcode build to generate an XCFramework
When I import the Module the swift compiler is all kinds of unhappy in regards to this actor
inside of MyModule.swiftmodule/arm64-apple-ios.private.swiftinterface
I keep getting the error.
No type named 'MyActor' in module 'MyModule'
on a variety of properties and functions that are public
and are available in Objective-C via @objc func
or @objc var/let
.
I have no Idea why this is occurring, however it seems to be centered around NSObject classes.
Any suggestions on the reason why this could be happening is greatly appreciated.
Thanks,
Cole