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: Error when building iOS - CocoaPods could not find compatible versions for pod "GoogleMLKit/BarcodeScanning" #244

Closed
5 of 11 tasks
pc-perrycima opened this issue Feb 5, 2025 · 4 comments

Comments

@pc-perrycima
Copy link

pc-perrycima commented Feb 5, 2025

Plugin(s)

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

Version

7.0.0

Platform(s)

  • Android
  • iOS
  • Web

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 to
7.0.0, which depends on
GoogleMLKit/BarcodeScanning (= 7.0.0)

    Specs satisfying the `GoogleMLKit/BarcodeScanning (= 7.0.0)` dependency were found, but they required a higher
    minimum deployment target.

`

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

  • 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.
@pc-perrycima pc-perrycima added bug/fix Something isn't working needs: triage labels Feb 5, 2025
@robingenz
Copy link
Member

Please follow the installation instructions and set the correct minimum deployment target, see Minimum Deployment Target.

@pc-perrycima
Copy link
Author

Thanks for the feedback.
I dont know if it can be related to the plugin because after installation im always getting the following error:

✖ Running xcodebuild - failed!
[capacitor] [error] Command line invocation:
[capacitor] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace App.xcworkspace -scheme App -configuration Debug -destination id=DEC4FD9C-F0E2-459F-8819-DBF8872D27B8 -derivedDataPath /Users/parry/pc-dev/htdocs/eurospesa-fidelity-angular-app/ios/DerivedData/DEC4FD9C-F0E2-459F-8819-DBF8872D27B8
[capacitor]
[capacitor] User defaults from command line:
[capacitor] IDEDerivedDataPathOverride = /Users/parry/pc-dev/htdocs/eurospesa-fidelity-angular-app/ios/DerivedData/DEC4FD9C-F0E2-459F-8819-DBF8872D27B8
[capacitor] IDEPackageSupportUseBuiltinSCM = YES
[capacitor]
[capacitor] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
[capacitor] { platform:iOS Simulator, id:DEC4FD9C-F0E2-459F-8819-DBF8872D27B8, OS:17.0, name:iPhone 15 }
[capacitor] { platform:iOS Simulator, id:DEC4FD9C-F0E2-459F-8819-DBF8872D27B8, OS:17.0, name:iPhone 15 }
[capacitor] Prepare packages
[capacitor]

[capacitor]
[capacitor] warning: Run script build phase '[CP] Embed Pods Frameworks' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'App' from project 'App')
[capacitor] ** BUILD FAILED **
[capacitor]
[capacitor]
[capacitor] The following build commands failed:
[capacitor] SwiftEmitModule normal x86_64 Emitting\ module\ for\ App (in target 'App' from project 'App')
[capacitor] EmitSwiftModule normal x86_64 (in target 'App' from project 'App')
[capacitor] Building workspace App with scheme App and configuration Debug
[capacitor] (3 failures)
[capacitor]
[ERROR] An error occurred while running subprocess capacitor.

    capacitor run ios --no-sync --target DEC4FD9C-F0E2-459F-8819-DBF8872D27B8 exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more information.

I already checked and there is not any duplicate simulator.

Copy link
Contributor

github-actions bot commented Feb 5, 2025

This issue has been labeled as needs: reproduction. This label is added to issues that need a code reproduction.

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.

@pc-perrycima
Copy link
Author

Solved!

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

No branches or pull requests

2 participants