Relative Content

Tag Archive for swiftxcode

Xcode Swift issue with FBLPromises not found

I’ve gone to an old app and I’m trying to build it. I keep getting the error “ld: framework ‘FBLPromises’ not found”. I have no PODS installed for this app. There is no PODS folder. Other Linker Flags is empty. I cannot find any reference to this framework in the app.

Is it safe to call an optional closure without [weak self]?

I have two classes, class A and class B. In class A I have declared an optional closure and from class B I am calling that closure. In class B, you can see in callTapA function I am calling the closure with [weak self] to safely release the reference, but in callTapB function I am calling the optional closure and assigning with a function. Both are correct but how is the [weak self] is managed in callTapB ? Is it safe to use closure like this?