xcode 编译器禁用 ARC (Automatic Referencing Counting)

来源:互联网 发布:淘宝复制拼多多专家 编辑:程序博客网 时间:2024/05/16 00:58
code 多了一个 ARC 的新编译器特性,在使用模板创建一个项目的时候会自动启用这个特性( -fobjc-arc)

可以在 Build Setting => "Apple LLVM compiler 3.0-Auto Reference Counting“ => "Mugrate cide from MRR to ARC" 设置为 "MIGRATE code to ARC after building with PRECHECK" 可以跳过预语法检查报错, 且自动转换成ARC。

禁用可以设置 Build Setting => "Apple LLVM compiler 3.0-Code Generation“ => “Objective-C automatic Reference Counting" 置为NO。