IOS Multiple Targets management and iOSTargets Management
Preface:
If I am not good at writing, I will go straight to the topic.
In fact, today we will note that the targets is used when learning a third-party library FBMemoryProfiler, So we searched for some relevant information and recorded it here.
Everyone may encounter this problem. During app upload, the test environment package is accidentally uploaded to the appstore, and the result is directed to the test server address, which I have encountered before, later, I had no choice but to have a domain name ing to direct the Domain Name of the test server to the domain name of the formal server. (At that time, the app was forced to upgrade. Think about it .) You can also directly overwrite the online version or change the bundleId every time you perform the test. In case you forget to change the bundleId ...... It's also scary. Therefore, you can add multiple targets to avoid these problems.
Okay, go directly to the link (personal too lazy): http://www.cocoachina.com/ios/20160331/15832.html
Next, let's write a little more. When using the Target and macro, You need to note that I made a mistake here: when using the macro definition to define the relevant environment variables, I habitually wrote it:
# If DEVELOPMENT instead of # ifdef development leads to the entry of IFDEF every time. Because the definitions are defined in the other two targets, this judgment is useless, this is a problem I encountered here. record it and forget it.