如果一个工程为MRC,其中需要添加ARC的文件:

选择target  ->  build phases  ->  compile sources  ->单击ARC的文件将compile flags设置为:-fobjc-arc

如果一个工程为ARC,其中要添加MRC的文件:

选择target  ->  build phases  ->  compile sources  ->单击MRC的文件将compile flags设置为:-fno-objc-arc

相关文章:

  • 2022-01-18
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-12-20
  • 2021-04-06
  • 2021-05-31
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
相关资源
相似解决方案