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)