question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: plugin cordova-ios does not sync during "npx cap sync"

See original GitHub issue

Bug Report

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

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

Installed Dependencies:

  @capacitor/cli: 3.3.3
  @capacitor/core: 3.4.1
  @capacitor/android: 3.3.3
  @capacitor/ios: 3.4.1

[success] iOS looking great! 👌

Platform(s)

iOS

Current Behavior

A cordova plugins that was previously synced is now completely ignored: cordova-ios

✔ Copying web assets from capacitor to ios/App/App/public in 675.67ms
✔ Creating capacitor.config.json in ios/App/App in 922.48μp
⠼ copy ios [info] Found 21 Cordova plugins for ios:
       @havesource/cordova-plugin-push@2.0.0
       branch-cordova-sdk@4.2.4
       com.darktalker.cordova.screenshot@0.1.6
       cordova-hot-code-push-plugin@1.5.3
       cordova-launch-review@4.0.1
       cordova-plugin-app-launcher@0.4.0
       cordova-plugin-appavailability@0.4.2
       cordova-plugin-chooser@1.3.2
       cordova-plugin-device@2.0.3
       cordova-plugin-facebook-connect@3.2.0
       cordova-plugin-file@6.0.2
       cordova-plugin-file-opener2@3.0.5
       cordova-plugin-file-transfer@2.0.0-dev
       cordova-plugin-geolocation@4.1.1-dev
       cordova-plugin-globalization@1.0.9
       cordova-plugin-inappbrowser@5.0.0
       cordova-plugin-keyboard@1.2.0
       cordova-plugin-media-capture@3.0.3
       cordova-plugin-network-information@1.2.1
       cordova-plugin-safariviewcontroller@2.0.0
       cordova-universal-links-plugin@1.2.1
✔ copy ios in 781.61ms
✔ Updating iOS plugins in 37.37ms
[info] Found 1 Capacitor plugin for ios:
       @capacitor/app@1.1.0
⠏ update ios [info] Found 21 Cordova plugins for ios:
       @havesource/cordova-plugin-push@2.0.0
       branch-cordova-sdk@4.2.4
       com.darktalker.cordova.screenshot@0.1.6
       cordova-hot-code-push-plugin@1.5.3
       cordova-launch-review@4.0.1
       cordova-plugin-app-launcher@0.4.0
       cordova-plugin-appavailability@0.4.2
       cordova-plugin-chooser@1.3.2
       cordova-plugin-device@2.0.3
       cordova-plugin-facebook-connect@3.2.0
       cordova-plugin-file@6.0.2
       cordova-plugin-file-opener2@3.0.5
       cordova-plugin-file-transfer@2.0.0-dev
       cordova-plugin-geolocation@4.1.1-dev
       cordova-plugin-globalization@1.0.9
       cordova-plugin-inappbrowser@5.0.0
       cordova-plugin-keyboard@1.2.0
       cordova-plugin-media-capture@3.0.3
       cordova-plugin-network-information@1.2.1
       cordova-plugin-safariviewcontroller@2.0.0
       cordova-universal-links-plugin@1.2.1
✔ Updating iOS native dependencies with pod install in 8.35s
[info] Found 3 incompatible Cordova plugins for ios, skipped install:
       cordova-plugin-androidx-adapter@1.1.1
       cordova-plugin-intent@0.1.2
       cordova-support-android-plugin@1.0.2

✔ update ios in 8.93s
✔ copy web in 383.31μp
✔ update web in 472.75μp

Expected Behavior

cordova-ios plugin should not be ignored

Code Reproduction

I’ve try this in an “empty” project and the plugin is still being ignored.

Other Technical Details

npm --version output: 8.3.1

node --version output: v17.4.0

pod --version output (iOS issues only): 1.11.2

Additional Context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jcesarmobilecommented, Feb 10, 2022

It’s included inside @capacitor/ios, it’s just a version of Cordova that makes possible to use Cordova plugins inside Capacitor apps, nothing that need to be documented because it’s transparent for the users, you just install @capacitor/ios packages and you can use Cordova plugins as you would do in a Cordova app.

0reactions
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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't sync iOS project after update to Capacitor 3 - Ionic Forum
Problem We have an Ionic Angular Monorepo for building mobile Apps. After updating to Capacitor 3, I always get these errors, when I...
Read more >
Cordova Plugins | Capacitor Documentation
If a plugin is known to conflict or cause build issues, it will be skipped when running npx cap sync . Here is...
Read more >
Camera API Plugin: Capacitor and Cordova for Ionic Apps
The Capacitor/Cordova Camera API plugin lets users take photos, capture video, and choose images from the system's image library directly from Ionic apps....
Read more >
cordova-background-geolocation-lt - npm
When the device is detected to be moving, the plugin will automatically start ... npm install cordova-background-geolocation-lt npx cap sync.
Read more >
When I run 'npx cap sync' the terminal just hangs
Since it is an ionic project one other thing you can try is to run ionic sync command: ionic cap sync.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found