Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when mixing plugins written in objc and swift #2357

Closed
bagbyte opened this issue Jan 21, 2020 · 3 comments
Closed

Issue when mixing plugins written in objc and swift #2357

bagbyte opened this issue Jan 21, 2020 · 3 comments

Comments

@bagbyte
Copy link

bagbyte commented Jan 21, 2020

In my Capacitor project (I#m currently using version 1.4.0) I'm using these plugins:

  • @ionic-native/adjust : 5.19.1
  • @ionic-native/fingerprint-aio : 5.19.1
  • com.adjust.sdk : 4.18.0
  • cordova-plugin-fingerprint-aio : 3.0.1

I can build the project with XCode without no problem, but when I try to archive it, I get an error on ios/capacitor-cordova-ios-plugins/sources/Com.adjust.sdk/src/ios/AdjustSdk.framework/Modules/module.modulemap file:

framework module AdjustSdk {
  umbrella header "Adjust.h"

  export *
  module * { export * }
}

On line 2: Umbrella for module 'CordovaPlugins' already covers this directory
On line 5: Inferred submodules require a module with an umbrella

What I've noticed is that while fingerprint-aio is a swift project, adjust plugin is written in objc, could this be the cause? Do you have any idea how to fix this?

Note:

The issue has been caused by adding fingerprint-aio plugin, before I had no issue, and the project could be built and archived without any problem.

Screenshot 2020-01-21 at 23 18 04

archive.log

@jcesarmobile
Copy link
Member

no, it's not because of the mixing, is because of some incompatible plugin

@jcesarmobile
Copy link
Member

The problem is on the AdjustSdk.framework, it includes a modulemap that collides with the one CocoaPods generates when Swift classes are present.

https://github.com/adjust/cordova_sdk/blob/master/src/ios/AdjustSdk.framework/Modules/module.modulemap

Closing as incompatible plugin (com.adjust.sdk) only when mixed with swift plugins

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 11, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants