IOS Adds C File Error [How to Solve]

Ios Adds C File Error [How To Solve]

Reason: This is definitely the logic of utilizing pch recordsdata in Xcode compilation, after introducing c recordsdata within the challenge, pch will combine #embody and #import, so as to scale back compiler workload, you want to use precompiled macros to make a slight distinction.

Solution: Check all pch recordsdata within the challenge and put “#import xxx”, which is simply utilized in OC, in “#indef __OBJC__” and “#endif”

#ifndef PrefixHeader_pch
#outline PrefixHeader_pch

#ifdef __OBJC__

#import "Masonry.h"

#endif


#endif /* PrefixHeader_pch */

Read More:

This entry was posted in Error and tagged C language, ios, IOS error summary-, objective-c, xcode on by Robins.

Leave a Reply

Your email address will not be published. Required fields are marked *