Some solutions for iOS ARC and MRC mixed encoding

Some solutions for iOS ARC and MRC mixed encoding

1. ARC & MRC mixed development

What should I do if I encounter a third-party library developed using MRC during project development?

For example: ASI

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

2> In the compilation options, add the -fno-objc-arc tag to the MRC program, indicating that the file is compiled using MRC.

Remark:

(1) The RegexKitLite used in the demonstration also needs to import the libicucore.dylib dynamic library

(2) If you want to add ARC files to the MRC project, you can use the -fobjc-arc flag.

3> Compile MRC's third-party library directly into a static library for use

Note: When compiling a static library, you cannot add a dynamic library reference

illustrate:

RegexKitLite is a regular expression category added to NSString

*** In the project, if the static library used contains classification, you need to add the -ObjC option in the Other Link Flag

<<:  Google returns to China

>>:  Five core points: How to carry out refined operations of mobile games

Recommend

Pinduoduo Promotion: Tips for Obtaining Free Traffic!

Just one trick allows you to quickly get free tra...

HTTP in iOS Just look at me

[[164463]] This article is a contributed article....

Plague and the Evolution of Diet: The Three Years of the Black Death in Europe

Written by | Wei Shuihua Header Image | foodiesfe...

It's getting fierce. Can ants also undergo amputation surgery? | Nature Trumpet

Welcome to the 61st issue of the Nature Trumpet c...

How to grow users from 100 to 100,000!

This article is divided into two parts. The first...

Quick application development optimization tips

In March 2018, nine major mobile phone manufactur...

Pinduoduo's latest WeChat fission gameplay dismantled

Those who follow WeChat Mini Programs may know th...

Three secrets behind Android 10's name change

Some time ago, Google announced a brand upgrade f...

5 steps and 5 rules for copywriting!

Article Summary: ● Five steps in copywriting (cla...

Himalaya FM-AARRR traffic funnel model analysis report!

With the rise of knowledge payment, audio payment...