This time I will show you how to set up debug with swift, and what are the precautions for setting up debug with swift. The following is a practical case, let's take a look.
In OC, you can set #if DEBUG #else #endif to distinguish the formal environment and the test environment #if DEBUG... Simulation data#else... Real data#endifBut there is no default tag in swift, so the above writing method does not work. But it can be passed Manually set it yourself to achieve the effect of OC. The specific steps are as follows: In Build setting >>>Other related articles!
Recommended reading:How to add a code block with prompt function
Commonly used WebStorm shortcut keys
Regular expression to verify domestic mobile phone number and landline number
The above is the detailed content of How to set up debug with swift. For more information, please follow other related articles on the PHP Chinese website!