When using this with Capacitor, I started getting the following build error:
/Users/private/d/ionic/ios/capacitor-cordova-ios-plugins/sources/CordovaPluginPurchase/FileUtility.h:1:26 Cannot find interface declaration for 'NSObject', superclass of 'FileUtility'
I am getting this behavior on macOS 15/Xcode 16.4 and macOS 14/Xcode 16.2. This is happening locally and in a GitHub Actions build.
Adding #import <Foundation/Foundation.h>to FileUtility.h allows my build to complete.