RevenueCat/cordova-plugin-purchases

could not build Objective-C module 'CordovaPluginsStatic'

Closed this issue · 1 comments

Common project specific issues

Describe the bug

Cannot build iOS project when using cordova-plugin-purchases and cordova-plugin-firebasex. It is the compile of the PurchasePlugin.swift that fails which is why I am opening the bug here, I am able to reproduce this bug which minimal project which I will link to.

  1. Environment

    1. Platform: iOS
    2. SDK version:
    3. OS version: macOS Catalina 10.15.7
    4. XCode/Android Studio version: 12.4 (12D4e)
    5. How widespread is the issue. Percentage of devices affected.
  2. Debug logs that reproduce the issue

<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/CordovaPluginsStatic-umbrella.h"
        ^
/Users/someuser/my-test/ios/App/Pods/Target Support Files/CordovaPluginsStatic/CordovaPluginsStatic-umbrella.h:13:9: note: in file included from /Users/someuser/my-test/ios/App/Pods/Target Support Files/CordovaPluginsStatic/CordovaPluginsStatic-umbrella.h:13:
#import "AppDelegate+FirebasePlugin.h"
        ^
/Users/someuser/my-test/ios/capacitor-cordova-ios-plugins/sourcesstatic/CordovaPluginFirebasex/AppDelegate+FirebasePlugin.h:8:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified)
+ (AppDelegate *) instance;
               ^
/Users/someuser/my-test/ios/capacitor-cordova-ios-plugins/sourcesstatic/CordovaPluginFirebasex/AppDelegate+FirebasePlugin.h:8:16: note: insert '_Nullable' if the pointer may be null
+ (AppDelegate *) instance;
               ^
/Users/someuser/my-test/ios/capacitor-cordova-ios-plugins/sourcesstatic/CordovaPluginFirebasex/AppDelegate+FirebasePlugin.h:8:16: note: insert '_Nonnull' if the pointer should never be null
+ (AppDelegate *) instance;
               ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/CordovaPluginsStatic-umbrella.h"
        ^
/Users/someuser/my-test/ios/App/Pods/Target Support Files/CordovaPluginsStatic/CordovaPluginsStatic-umbrella.h:14:9: note: in file included from /Users/someuser/my-test/ios/App/Pods/Target Support Files/CordovaPluginsStatic/CordovaPluginsStatic-umbrella.h:14:
#import "FirebasePlugin.h"
        ^
/Users/someuser/my-test/ios/capacitor-cordova-ios-plugins/sourcesstatic/CordovaPluginFirebasex/FirebasePlugin.h:3:9: error: include of non-modular header inside framework module 'CordovaPluginsStatic.FirebasePlugin': '/Users/someuser/my-test/ios/App/Pods/Firebase/CoreOnly/Sources/Firebase.h'
#import "Firebase.h"
        ^
<unknown>:0: error: could not build Objective-C module 'CordovaPluginsStatic'

Screen Shot 2021-02-02 at 5 00 33 PM

  1. Steps to reproduce, with a description of expected vs. actual behavior
  • Create cordova project
  • npm i cordova-plugin-purchases
  • cordova-plugin-firebasex
  • add iOS platfrom
  • build project in xcode

Here is link to sample project https://github.com/spennyf/test-app-purchase

  1. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

I am open to any workaround and know this involves another plugin which makes this a weird case, but as seen in the screen shot it fails when building this so thought I would post here.

I really appreciate the help

Additional context
Add any other context about the problem here.

stale commented

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Please reach out if you have additional information to help us investigate further!