react-native-ml-kit icon indicating copy to clipboard operation
react-native-ml-kit copied to clipboard

Please update this

Open bharaty878 opened this issue 1 year ago • 7 comments

What happened?

Ios creating issue when i m going to build the project in android it is working fine please update it so it will work fine in ios

Version

@react-native-ml-kit/barcode-scanning: version@react-native-ml-kit/face-detection: version@react-native-ml-kit/identify-languages: version@react-native-ml-kit/image-labeling: version@react-native-ml-kit/text-recognition: version@react-native-ml-kit/translate-text: version

Which ML Kit packages do you use?

  • [ ] @react-native-ml-kit/barcode-scanning
  • [ ] @react-native-ml-kit/face-detection
  • [ ] @react-native-ml-kit/identify-languages
  • [ ] @react-native-ml-kit/image-labeling
  • [X] @react-native-ml-kit/text-recognition
  • [ ] @react-native-ml-kit/translate-text

What platforms are you seeing this issue on?

  • [ ] Android
  • [X] iOS

System Information

npx pod-install

Steps to Reproduce

not build

bharaty878 avatar Jul 12 '24 05:07 bharaty878

Hello @bharaty878!

A new release of all the packages containing ML Kit v6.0.0 on iOS has just been released, can you please try upgrading to the latest version and sharing if that fixes your issue or not? 🙏🏼

Here's the upgrade command:

npm install @react-native-ml-kit/text-recognition@latest

or if you're using Yarn:

yarn add @react-native-ml-kit/text-recognition@latest

If your issue is still present after upgrading to the latest, please share more details like the error logs to be able to check your issue.

a7medev avatar Jul 14 '24 20:07 a7medev

Error not working on iOS and Android is working fine

On Mon, Jul 15, 2024, 2:05 AM Ahmed Elrefaey @.***> wrote:

Hello @bharaty878 https://github.com/bharaty878!

A new release of all the packages containing ML Kit v6.0.0 on iOS has just been released, can you please try upgrading to the latest version and sharing if that fixes your issue or not? 🙏🏼

Here's the upgrade command:

npm install @@.***

or if you're using Yarn:

yarn add @@.***

If your issue is still present after upgrading to the latest, please share more details like the error logs to be able to check your issue.

— Reply to this email directly, view it on GitHub https://github.com/a7medev/react-native-ml-kit/issues/54#issuecomment-2227476013, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3K5LNBV3Q3AOXNEM6RWV23ZMLOIPAVCNFSM6AAAAABKYIR6UOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRXGQ3TMMBRGM . You are receiving this because you were mentioned.Message ID: @.***>

bharaty878 avatar Jul 15 '24 05:07 bharaty878

@a7medev I'm experiencing the same issue. It's working fine on Android, but pod install is failing.

Abdulhaque4241 avatar Jul 24 '24 04:07 Abdulhaque4241

I havebread error it is saying that it is for arm64 not for x86_64 please update it to work on both arm64 and x86_64

On Wed, Jul 24, 2024, 9:52 AM Abdulhaque4241 @.***> wrote:

@a7medev https://github.com/a7medev I'm experiencing the same issue. It's working fine on Android, but pod install is failing.

— Reply to this email directly, view it on GitHub https://github.com/a7medev/react-native-ml-kit/issues/54#issuecomment-2246836899, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3K5LNFBPOKKO5GSNVD6YETZN4TYPAVCNFSM6AAAAABKYIR6UOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBWHAZTMOBZHE . You are receiving this because you were mentioned.Message ID: @.***>

bharaty878 avatar Jul 24 '24 04:07 bharaty878

I encounter this issue when running pod install:

[!] CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core": In Podfile: RNGoogleSignin (from ../node_modules/@react-native-google-signin/google-signin) was resolved to 9.1.0, which depends on GoogleSignIn (~> 6.2) was resolved to 6.2.3, which depends on GTMSessionFetcher/Core (~> 1.1)

RNMLKitTextRecognition (from `../node_modules/@react-native-ml-kit/text-recognition`) was resolved to 1.5.2, which depends on
  GoogleMLKit/TextRecognitionDevanagari (= 6.0.0) was resolved to 6.0.0, which depends on
    MLKitTextRecognitionDevanagari (~> 3.0.0) was resolved to 3.0.0, which depends on
      MLKitCommon (~> 11.0) was resolved to 11.0.0, which depends on
        GTMSessionFetcher/Core (< 4.0, >= 3.3.2)

CocoaPods could not find compatible versions for pod "GoogleDataTransport": In Podfile: GoogleDataTransport

RNFBMessaging (from `../node_modules/@react-native-firebase/messaging`) was resolved to 19.3.0, which depends on
  Firebase/Messaging (= 10.24.0) was resolved to 10.24.0, which depends on
    FirebaseMessaging (~> 10.24.0) was resolved to 10.24.0, which depends on
      GoogleDataTransport (~> 9.3)

RNMLKitTextRecognition (from `../node_modules/@react-native-ml-kit/text-recognition`) was resolved to 1.5.2, which depends on
  GoogleMLKit/TextRecognitionDevanagari (= 6.0.0) was resolved to 6.0.0, which depends on
    MLKitTextRecognitionDevanagari (~> 3.0.0) was resolved to 3.0.0, which depends on
      MLKitCommon (~> 11.0) was resolved to 11.0.0, which depends on
        GoogleDataTransport (< 10.0, >= 9.4.1)

CocoaPods could not find compatible versions for pod "GoogleUtilities/Logger": In Podfile: RNFBApp (from ../node_modules/@react-native-firebase/app) was resolved to 19.3.0, which depends on Firebase/CoreOnly (= 10.24.0) was resolved to 10.24.0, which depends on FirebaseCore (= 10.24.0) was resolved to 10.24.0, which depends on GoogleUtilities/Logger (~> 7.12)

RNMLKitTextRecognition (from `../node_modules/@react-native-ml-kit/text-recognition`) was resolved to 1.5.2, which depends on
  GoogleMLKit/TextRecognitionDevanagari (= 6.0.0) was resolved to 6.0.0, which depends on
    MLKitTextRecognitionDevanagari (~> 3.0.0) was resolved to 3.0.0, which depends on
      MLKitCommon (~> 11.0) was resolved to 11.0.0, which depends on
        GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0) was resolved to 7.13.3, which depends on
          GoogleUtilities/Logger (= 7.13.3)

RNMLKitTextRecognition (from `../node_modules/@react-native-ml-kit/text-recognition`) was resolved to 1.5.2, which depends on
  GoogleMLKit/TextRecognitionDevanagari (= 6.0.0) was resolved to 6.0.0, which depends on
    MLKitTextRecognitionDevanagari (~> 3.0.0) was resolved to 3.0.0, which depends on
      MLKitCommon (~> 11.0) was resolved to 11.0.0, which depends on
        GoogleUtilitiesComponents (~> 1.0) was resolved to 1.1.0, which depends on
          GoogleUtilities/Logger

CocoaPods could not find compatible versions for pod "nanopb": In Podfile: RNFBMessaging (from ../node_modules/@react-native-firebase/messaging) was resolved to 19.3.0, which depends on Firebase/Messaging (= 10.24.0) was resolved to 10.24.0, which depends on FirebaseMessaging (~> 10.24.0) was resolved to 10.24.0, which depends on nanopb (< 2.30911.0, >= 2.30908.0)

nanopb

Abdulhaque4241 avatar Jul 24 '24 05:07 Abdulhaque4241

Your issue is related to Build failing on IOS Please check out my response at https://github.com/a7medev/react-native-ml-kit/issues/10

Energieman avatar Aug 16 '24 17:08 Energieman

After install @react-native-firebase/app 21.X and react-native-ml-kit I met this problem. Temporary, use @react-native-firebase/app 20.X this problem is disappeared. But I think react-native-ml-kit's Podfile library will be updated.

jihokim2 avatar Nov 01 '24 02:11 jihokim2

Hello guys! Thanks for reporting these issues.

I see there are two categories of the issues here:

  1. Version conflicts with other packages (mainly Firebase) when doing pod install. These should be fixed with the latest update to RN ML Kit packages, so please update to the latest version and see if that fixes your issue. If not, feel free to open an issue with more details about the error you're facing.
  2. Issues with building for arm64 simulator. Unfortunately, ML Kit still doesn't support arm64 simulators so you either need to run on a physical device or run on a Rosetta simulator.

I'm closing this for now but feel free to reopen it or open another issue with more details if you're still facing any issues. 🙏🏼

a7medev avatar Sep 01 '25 22:09 a7medev