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

Douyin dou+ advertising strategy helps you become popular

Doujia is the official quick promotion method of ...

How to keep your community active? Here are 2 tips to share with you!

Community activity is a difficult problem faced b...

How does the points mall operate? These 4 stages are very important!

When I first came into contact with the Points Ma...

How to choose channels for app soft promotion?

There is another big pitfall in App soft promotio...

E-commerce detail page conversion skills worth 50,000

When the user reaches the details page, there is ...

What benefits can WeChat Mini Programs bring to businesses?

Nowadays, mini programs are becoming a product th...

User Operation | How to do user behavior path analysis?

User behavior path analysis is a type of data ana...

Analyze the algorithm mechanism behind Tik Tok!

Understanding the platform rules is the key to pl...

Three basic operating modes for members!

In the current Internet environment, user operati...