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

Error with ios #11

Open
obadah9 opened this issue Oct 24, 2024 · 4 comments
Open

Error with ios #11

obadah9 opened this issue Oct 24, 2024 · 4 comments

Comments

@obadah9
Copy link

obadah9 commented Oct 24, 2024

hello
when i had added the capturesdk_flutter package :
capturesdk_flutter:
git:
url: https://oauth2:[email protected]/capture/flutter-capturesdk.git
version: ^1.5.19
i had a problem with ios :
[!] CocoaPods could not find compatible versions for pod "CaptureSDK":
In Podfile:
capturesdk_flutter (from .symlinks/plugins/capturesdk_flutter/ios) was resolved to 1.5.19, which depends on
CaptureSDK (~> 1.9.59)
i have tried
pod install --repo-update
and did not worked
thank you in advance

@obadah9
Copy link
Author

obadah9 commented Oct 24, 2024

arch -x86_64 pod install --repo-update :
[!] CocoaPods could not find compatible versions for pod "CaptureSDK":
In Podfile:
capturesdk_flutter (from .symlinks/plugins/capturesdk_flutter/ios) was resolved to 1.5.19, which depends on
CaptureSDK (~> 1.9.59)

None of your spec sources contain a spec satisfying the dependency: CaptureSDK (~> 1.9.59).

You have either:

  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile.

@doubleo2
Copy link

The Flutter instructions are missing a step

  1. Log in to the developer portal
  2. Scroll down to Getting started with CaptureSDK
  3. Click on the iOS Cocoapods tab
  4. Copy-paste the source ... line into the top of your Flutter project's Podfile

Note: You do not need to add the pod ... line to your Podfile since that is added by the capturesdk_flutter plugin

@doubleo2
Copy link

Make sure you copied the source ... line exactly as it appears on the iOS Cocoapods tab because the access token is different than the one in your pubspec

@cyrille-socket
Copy link
Collaborator

Our new version of the Flutter CaptureSDK is back on Github so you don't need the personal access token anymore and you can use directly the package as this in your pub spec.yaml:

dependencies:
flutter:
sdk: flutter

...
capturesdk_flutter: ^1.5.41
...

As the iOS CaptureSDK is also back on Github, you don't have to set the source of the Cocoapods repository on our private repository.
By doing pod install --repo-update it should find the right version of iOS CaptureSDK now.

Let us know if that works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants