This topic describes FAQ about public recursive DNS SDK and API.
Why does the code fail to be run and why is 'DNSResolver.h' file not found error code returned after I integrate my iOS app with Alibaba Cloud DNS SDK?
This error indicates that the compiler cannot find the specified header file. Perform the following operations to resolve the issue:
If the application is developed in the swift language, you can use CocoaPods to automatically integrate the DNS SDKs and add
import <pdns-sdk-ios/DNSResolver.h>to import the header file.If the application is developed in the OC language:
You can add
import "pdns-sdk-ios/DNSResolver.h"to import the header file.If the issue persists, you can change the Header Search Paths in the Build Settings tab to your local path.
