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: CDN: trunk URL couldn't be downloaded (can't sync capacitor after package install) #170

Closed
5 of 11 tasks
loic-parent opened this issue Jul 24, 2024 · 1 comment
Closed
5 of 11 tasks
Labels
bug/fix Something isn't working needs: triage

Comments

@loic-parent
Copy link

loic-parent commented Jul 24, 2024

Plugin(s)

  • Barcode Scanning
  • Face Detection
  • Face Mesh Detection
  • Selfie Segmentation
  • Translation

Version

6.1.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

Hello,
This command npm install @capacitor-mlkit/barcode-scanning works fine but when I sync capacitor using npx cap sync, I get this error message :

✖ update ios - failed!
[error] Analyzing dependencies
[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/all_pods_versions_b_e_b.txt Response: URL using bad/illegal format or missing URL

Expected behavior

Capacitor should sync correctly without any error message.

Reproduction

https://github.com/loic-parent/capacitor-mlkit-scanner-test

Steps to reproduce

  1. Close or download a copy of this repository.
  2. Install the packages using npm install
  3. Launch the command npx cap sync
  4. See the error message in the console.

Other information

No response

Capacitor doctor

Latest Dependencies:

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

Installed Dependencies:

  @capacitor/android: not installed
  @capacitor/cli: 6.1.1
  @capacitor/core: 6.1.1
  @capacitor/ios: 6.1.1

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@loic-parent loic-parent added bug/fix Something isn't working needs: triage labels Jul 24, 2024
@loic-parent
Copy link
Author

Hello,

I finally fix this following this guide.

So :

  1. Add source 'https://github.com/CocoaPods/Specs.git' at the top of the Podfile.
  2. Delete the /ios/App/Podfile.lock
  3. Open the terminal in this folder /ios/App/
  4. Run the command pod repo remove trunk.
  5. Run the command pod install
  6. Go back to the project folder (in terminal)
  7. Run the command npx cap synx
  8. See that the command terminates well ✅

So, It was an incompatibility with the version and config of Cocoapods. I close this ticket.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug/fix Something isn't working needs: triage
Projects
None yet
Development

No branches or pull requests

1 participant