報錯:Xcode 7.3 cannot create __weak reference in file using manual reference counting
在使用__weak 的時候報錯 Xcode 7.3 cannot create __weak reference in file using manual reference counting
解決方法一:
設定專案中的build setting -> Apple LLVM7.1 - Language - Objective C -> Weak References in Manual Retain Release YES
解決方法二:
用__unsafe_unretained 代替__weak