Lookback doesn't work at all / Lookback_Weak returns nil

281 Views Asked by At

I followed the CocoaPods-based installation instructions for Lookback, the app compiles and links, yet all my calls to the Lookback API do nothing. Nothing happens when I shake the device even though I have shakeToRecord = YES. If I use [Lookback lookback] instead of [Lookback_Weak lookback], I get a linker error saying that the class Lookback doesn't exist.

1

There are 1 best solutions below

1
On

Lookback requires two "Other Linker Flags" (OTHER_LDFLAGS) settings: -ObjC and -framework Lookback. Both these are automatically set by CocoaPods, but if you set your own flags without including $(inherited) in your overrides, CocoaPods' settings will be lost.

I recommend that you add $(inherited) to the top of your other linker flags; or remove your customizations entirely (select the "Other Linker Flags" line and press backspace).

$(inherited) as used in Other Linker Flags in Xcode