
奮斗的七月
在ios中經(jīng)常會遇到:ARC forbids explicit message send of 'autorelease' 或[“ARC forbids explicit message send of release”]這樣的錯誤,特別是在引入第三方庫的時候會經(jīng)常遇到。
原因是項目使用了arc機(jī)制,而有些文件禁止使用而報錯
解決方法
點擊項目Target -> 找到"Build Settings" -> 找到"Compile Sources" -> 找到出錯的類,在對應(yīng)類的"Compiler Flags"中添加"-fno-objc-arc"

奮斗的七月