Problem: sometimes the.h file is not found

The reason is location.

Solution:



Method 1: Add an item to the project do not select Copy items if need

The diagram below:

#import



Method 2: Method 1: Add an item to the project Select Copy items if need, then import the head file as shown in the following figure:





#import < alipaysdk. h> or “alipaysdk.h”


Again, this is an SDK project, not a normal engineering project