Set up class library arc support in Xcode
Import files such as third-party libraries in Xcode: If the imported file uses ARC's mechanism different from the arc mechanism used by your current project, Xcode will give you a warning or an error. Solve:
1, click Targets, Build phases, project navigation file, Compile Sources
2, this time, we see the name of the second column: Compiler Flags
3. Double-click the file you want to modify arc:
Unsupported arc input for arc:-FNO-OBJC-ARC
Unsupported arc mechanism input for ARC mechanism:-FOBJC-ARC
4, recompile, warnings and errors disappear.
Report:
Scheme one: Engineering->targets->build settings->objective-c Automatic Reference counting NO (for full change)
Scenario Two: If you want to partially achieve arc can: engineering->taggets->build phases can see compile sources is your project in the class. m file, double-click the file you want to use arc, and enter-FOBJC-ARC on the line, As above, if you want to use the ARC mechanism code without the arc mechanism, you only need to enter-FNO-OBJC-ARC (for parts)
- The journal was published by Gymnasium 1 years ago under the comprehensive classification and was last updated on June 07, 2014.
- Reprint Please specify: Set up Class library arc support in Xcode | Toddler Garden + Copy link from Toddler Garden
- Http://www.xuebuyuan.com/2039377.html
Set up class library arc support in Xcode