I have
func verifyEmail(let email: String, let completionHandler:(Bool) -> Void) -> Bool
{
in my (swift) framework
exposing it as
FOUNDATION_EXPORT BOOL verifyEmail(NSString *email, void (^completionHandler)(BOOL verificationResult));
in my framework umbrella header
attempting to call it like so
verifyEmail(@"dfs", ^(BOOL verificationResult) {
NSLog(@"objc: using sdk v%f", whateverSdkVersionNumber);
});
in objective c sample code results in a link error: Undefined symbols for architecture arm64: "_verifyEmail", referenced from: -[ObjCExample verify] in ObjCExample.o ld: symbol(s) not found for architecture arm64
Same with other functions exported but if I can map closures to blocks or whatever I'll surely fix the rest :^)
Resolved: converted globals to class func()s