flutter-ml / google_ml_kit_flutter

A flutter plugin that implements Google's standalone ML Kit
MIT License
908 stars 709 forks source link

iOS crush after flash screen on Mac M3 Max #572

Open tamirrab opened 5 months ago

tamirrab commented 5 months ago

iOS - simulator crush after flash screen on Mac M3 Max

Flutter 3.16.7 • channel stable Tools • Dart 3.2.4 • DevTools 2.28.5

New flutter project, Adding on pudspec.yaml:

google_mlkit_text_recognition: ^0.11.0

Podfile adding:

platform :ios, '12.0'
$iOSVersion = '12.0'

post_install do |installer|
  # add these lines:
  installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=*]"] = "armv7"
    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
  end

  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)

    # add these lines:
    target.build_configurations.each do |config|
      if Gem::Version.new($iOSVersion) > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = $iOSVersion
      end
    end

  end
end

The build done --> Splash screen --> crash (No log appears)

On Xcode getting error:

Logging Error: Failed to initialize logging system. Log messages may be missing. If this issue persists, try setting IDEPreferLogStreaming=YES in the active scheme actions environment variables.
amit13091992 commented 5 months ago

@tamirrab did you get any updates?

cp-amisha-i commented 4 months ago

I'm also facing the same issue with my SwiftUI app whenever I try to run the app on a real device, so it would be great if someone could suggest a solution.