-
-
Notifications
You must be signed in to change notification settings - Fork 53
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: Error when building iOS - CocoaPods could not find compatible versions for pod "GoogleMLKit/BarcodeScanning" #244
Comments
Please follow the installation instructions and set the correct minimum deployment target, see Minimum Deployment Target. |
Thanks for the feedback. ✖ Running xcodebuild - failed! [capacitor]
I already checked and there is not any duplicate simulator. |
This issue has been labeled as Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so we can debug the issue. If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for us to reproduce the issue. |
Solved! |
Plugin(s)
Version
7.0.0
Platform(s)
Current behavior
I'm experiencing an issue while building the iOS project. The build fails during the CocoaPods dependency analysis due to the following error:
[error] Analyzing dependencies [!] CocoaPods could not find compatible versions for pod "GoogleMLKit/BarcodeScanning": In Podfile: CapacitorMlkitBarcodeScanning (from
../../node_modules/@capacitor-mlkit/barcode-scanning`) was resolved to7.0.0, which depends on
GoogleMLKit/BarcodeScanning (= 7.0.0)
`
Expected behavior
npx cap add ios
should work and
Reproduction
n/a
Steps to reproduce
Add the @capacitor-mlkit/barcode-scanning plugin.
Run the ionic build command for iOS.
Encounter the above error when building the project.
Other information
Ionic info
Ionic:
Ionic CLI : 7.2.0 (/Users/parry/.nvm/versions/node/v22.11.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.4.3
@angular-devkit/build-angular : 18.2.14
@angular-devkit/schematics : 18.2.14
@angular/cli : 18.2.14
@ionic/angular-toolkit : 11.0.1
Capacitor:
Capacitor CLI : 7.0.1
@capacitor/android : 7.0.1
@capacitor/core : 7.0.1
@capacitor/ios : 7.0.1
Utility:
cordova-res : not installed globally
native-run : 2.0.1
System:
NodeJS : v22.11.0 (/Users/parry/.nvm/versions/node/v22.11.0/bin/node)
npm : 10.9.0
OS : macOS Unknown
Capacitor doctor
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1
Installed Dependencies:
@capacitor/cli: 7.0.1
@capacitor/android: 7.0.1
@capacitor/core: 7.0.1
@capacitor/ios: 7.0.1
[success] iOS looking great! 👌
[success] Android looking great! 👌
Before submitting
The text was updated successfully, but these errors were encountered: