ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.35k stars 1.01k forks source link

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

Closed cyril-colin closed 3 years ago

cyril-colin commented 3 years ago

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

Additional Context

This issue https://github.com/ionic-team/capacitor/issues/5158#issuecomment-948369681 tells that we have to make request to get our plugin working again. So I do it 😄

Thanks for reading !

jcesarmobile commented 3 years ago

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 https://github.com/ionic-team/capacitor/pull/5175

media4learning commented 3 years ago

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 commented 3 years ago

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[bot] commented 2 years ago

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.