Some workarounds for IOS Arc vs. MRC

Source: Internet
Author: User

1. ARC & MRC Hybrid Development

What happens to third-party libraries that are developed using MRC in project development?

For example: ASI

1> Attempt to use Xcode's conversion tool (high failure rate)

2> in the Compile option, add the-FNO-OBJC-ARC tag for the MRC program, indicating that at compile time, the file uses MRC to compile

Note:

(1) The Regexkitlite used in the demo also needs to be imported into the Libicucore.dylib dynamic library

(2) If you want to add an arc file to an MRC project, you can use the-FOBJC-ARC tag to

3> Compile the MRC third-party library directly into a static library using

Note: You cannot add a dynamic library reference when compiling a static library


Description


Regexkitlite is a regular expression category that is added to NSString

In a project, if you are using a static library that contains classifications, you need to add the-OBJC option to the other Link flag


Some workarounds for IOS Arc vs. MRC

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.