<span id="Label3"><p>First step: introducing a dynamic library<br></p><p>Step two: Drag into a third-party file<br>Add corresponding fields to the project according to the requirements of the file</p><p>Libxml includes require that the target Header Search Paths contain<br>//<br>/usr/include/libxml2<br>//<br></p><p>and other Linker Flags contain<br>//<br>-lxml2<br></p><p>The file being introduced is mrc, allowing it to run in the ARC environment and need to change the settings<br></p><p>There are two scenarios in which you need to change whether an individual file is compiled with arc, and our actual situation is applied to the second of the following</p><p>Two cases<br>1. No arc was used for his old project, but the Third-party library was introduced using ARC.<br>2. The new project uses arc, but the introduction of the Third-party library or the previously written code does not use ARC.</p><p>In both cases, the direct affirmation is not compiled. It can be solved by upgrading the old project to use arc, but this approach is sometimes cumbersome.<br>An easy way to do this is to specify whether a single file will be compiled with ARC.<br>The method is to find the file that needs special processing in the compile source inside the build phase, plus the compile option (Compiler Flags), which is different for both Cases.</p><p>1. For the first case, add The-fobjc-arc option to the source file with the arc<br>2. For the second case, Add-fno-objc-arc</p><p>IOS: parsing an XML file using a Third-party dom</p></span>
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