iOS Development--Error summary & common errors and warnings in development summary (15)

Source: Internet
Author: User

Summary of common errors and warnings in development (15)

Multiple target compilation error resolution

There are some compilation errors when using multiple target

Use of undeclared type

This type of error is because the currently running target cannot find a file that must be compiled. Add the file to target, support ilswifttests target below, select the check box before ilswifttests

Does not has a member named

This type of error may be caused by the following two reasons, the workaround is as follows:

  • 1. This method comes from the parent class, and the parent class file is not added to the current target
  • 2. This method comes from the extension, and the extension is not added to the current target

Tips

If the check finds that all class files have been accurately added to target, but compiled or not, focus on checking that the bridge file is set correctly, and adding the corresponding header file to the bridge file. It is recommended that all target bridging files be directed to the same file, if not specifically requested. About the settings of the bridging file,

iOS Development--Error summary & common errors and warnings in development summary (15)

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.