Objective-C ARC Error: -fobjc-arc is not supported with fragile abi

前端 未结 2 1689
[愿得一人]
[愿得一人] 2020-12-17 01:11

I\'m having a problem trying to migrate my iPhone app to the new ARC technology. When I try to convert the code, the following error shows up 29 times:

 Appl         


        
2条回答
  •  孤街浪徒
    2020-12-17 01:31

    change compiler.

    Set the project compiler to "LLVM GCC 4.2", instead of "Apple LLVM 3.0"; ARC is only supported when you use Apple LLVM. To set the project compiler, in your Project, under "Build Settings", and then under "Build Options", there is a settings for "Compiler for Objective-C". Change that value to "LLVM GCC 4.2

提交回复
热议问题