最新版本的 Xocde 運(yùn)行之前的 老項(xiàng)目, 報(bào)錯(cuò): cannot create weak reference in file using
解決方案:
點(diǎn)擊工程啟動文件 - TARGETS -Build Settings - 在下方搜索框搜索weak - 在Apple LLVM 8.0 - Language - Objective C選項(xiàng)下邊 - 把Weak Reference in Manual Retain Release選項(xiàng)改成YES即可。