Could not build module ' XXXXXXXX ' or error:expected identifier or ' ('. A bunch of strange mistakes ———— the root of the error

Source: Internet
Author: User

A bunch of weird bugs: 1?? Could not build module ' XXXXXXXX '

2?? error:expected identifier or ' ('

3?? EDIT Setting precompile Prefix header = No results in a bunch of syntax errors instead, in stuff like NSObject.h (and othe R 4?? Foundation Framework Header)

5?? EDIT User Cy-4ah figured it out:there needs to be #ifdef __OBJC__ around the whole pch file.

6?? Error:could not build module ' Foundation ', and things in Foundation.h not being found.

Most of the causes of the above errors are:

You add a. c/.h/.m file or other copied. c/.h/.m file that causes PCH file errors

(Delete the file and add it again.) What happened, where was the root of the error? )

Like these questions, there is no right solution, here I can only guide you to find the root of the error ......

We revolve around: #import preprocessing directives: #ifdef __objc__ #endif to find the source of the error

The PCH is included as a prefix to the C and OBJC files. So the file you added certainly won't work

We usually try not to copy other people's code files, it is easy to let the program crash. The copy should also have a degree, do not copy the entire file.

Try not to copy the file .....

Could not build module ' XXXXXXXX ' or error:expected identifier or ' ('. A bunch of strange mistakes ———— the root of the error

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.