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

bug: googleanalytic - The 'Pods-App' target has transitive dependencies that include #5219

Closed
cyril-colin opened this issue Nov 8, 2021 · 4 comments · Fixed by #5220
Closed

Comments

@cyril-colin
Copy link

cyril-colin commented Nov 8, 2021

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 3.3.1
  @capacitor/core: 3.3.1
  @capacitor/android: 3.3.1
  @capacitor/ios: 3.3.1

Installed Dependencies:

  @capacitor/cli: 3.2.4
  @capacitor/core: 3.3.1
  @capacitor/android: 3.3.1
  @capacitor/ios: 3.3.1

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

ios

Current Behavior

The command npx cap sync ios failed with error:

[!] The 'Pods-App' target has transitive dependencies that include statically linked binaries: (/Users/user/repo/ios/App/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a and /Users/user/repo/ios/App/Pods/GoogleIDFASupport/Libraries/libAdIdAccessLibrary.a)

Expected Behavior

The command should build as usual.

Other Technical Details

  • This error occurs since capacitor/[email protected]
  • This is related to the cordova plugin: cordova-plugin-google-analytics version 1.9.0

Additional Context

This issue #5158 (comment) tells that we have to make request to get our plugin working again. So I do it 😄

Thanks for reading !

@jcesarmobile
Copy link
Member

I've added the plugin to the list, but FYI, since capacitor 3.3.0 you can add any cordova plugin to the static list by adding it to the capacitor config file inside the cordova object #5175

@media4learning
Copy link

media4learning commented Nov 8, 2021

I've added the plugin to the list, but FYI, since capacitor 3.3.0 you can add any cordova plugin to the static list by adding it to the capacitor config file inside the cordova object #5175

Hi jcesarmobile. Is there documentation for this? I added a "staticPlugins" array with "cordova-plugin-google-analytics" to the "cordova" object in capacitor.config.json and I get the same error. This is with @capacitor/core 3.3.1.

@jcesarmobile
Copy link
Member

jcesarmobile commented Nov 9, 2021

You have to update @capacitor/cli, not core (well, you should also update core, but the change is on the cli)
https://capacitorjs.com/docs/config

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 10, 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 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants