REALFREE REALFREE - 6 months ago 253
Objective-C Question

Xcode 7.3 cannot create __weak reference in file using manual reference counting

After updating Xcode 7.3, it throw me error

Cannot create __weak reference in file using manual reference counting
in pod files. Does anyone have solved this issue?

Answer

Set Build Settings -> Apple LLVM 7.1 - Language - Objective C -> Weak References in Manual Retain Release to YES.

Visual example

Taken from Apple Developers Forums - Xcode 7.3b4, non-arc, cannot create __weak reference.