Apple's underlying open source code was found to contain WeChat compatible code

Twitter users discovered that Apple’s open source underlying code includes a header file specifically compatible with WeChat— make_tapi_happy.h . TAPI is the abbreviation of Tencent’s official API. This file is located in the libmalloc directory, which is the heap management structure adopted by Apple.

Judging from the naming and comments of this header file, its role is to be compatible with TAPI by declaring the contents of the forward-declare in other projects.

/* Make TAPI happy by declaring things that other projects forward-declare. */
/* This header is not installed anywhere. */

Interestingly, we  also found comments from Apple programmers on WeChat in the  make_tapi_happy.h header file:

/* WeChat references this, only god knows why.  This symbol does nothing. */
extern int stack_logging_enable_logging;

Obviously, this Apple programmer did not understand the function of the stack_logging_enable_logging integer variable defined in the WeChat code. He quoted it here mainly for compatibility, so the comment also wrote: "This variable does not do anything."

Apple and Tencent had a disagreement in 2017 due to the "Appreciation" function of WeChat. At that time, Apple stipulated in its App Store review guidelines that all reward function modules in the iOS App must go through the Apple IAP channel, and the App Store serves as The platform side will draw approximately 30% of the share. Based on this, Tencent and Apple negotiated many times, but because they failed to reach a consensus, Tencent removed the "Appreciation" function in the iOS version of WeChat.

In 2018, after some coordination, the two parties have reached a common understanding and reached a settlement on the matter. Tencent decided to restore the "Appreciation" function of the iOS version of WeChat.

 The creation date of the make_tapi_happy.h header file also happens to be 2018.

Guess you like

Origin www.oschina.net/news/127177/apple-libmalloc-compliance-with-wechat