IOS Multiple Targets management and iOSTargets Management

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.