When we develop iOS applications, we often use
CocoaPods for third-party library management.
In addition to external third-party libraries, it is common for
CocoaPods to be used as a library management tool for individuals or companies.
We usually use macros such as
DEBUG for environment-sensitive branch compilation.
DEBUG macro injection by default to facilitate our local debugging.
However, in actual development projects, in addition to using the
DEBUG macro to identify local debugging, macros such as
QA are also used to identify the
test build package.
At this time, we expect that the library in Pods can also inject
TEST macros on demand.