Skip to content

Capacitor: Cannot find interface declaration for 'NSObject', superclass of 'FileUtility' #1657

@ptmkenny

Description

@ptmkenny

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions