Set up class library arc support in Xcode

Source: Internet
Author: User
Tags unsupported
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.