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

iOS crush after flash screen on Mac M3 Max #572

Open
tamirrab opened this issue Jan 17, 2024 · 2 comments
Open

iOS crush after flash screen on Mac M3 Max #572

tamirrab opened this issue Jan 17, 2024 · 2 comments
Labels
Text Recognition Issues corresponding to Text Recognition API

Comments

@tamirrab
Copy link

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
Copy link

@tamirrab did you get any updates?

@cp-amisha-i
Copy link

cp-amisha-i commented Mar 6, 2024

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.

@fbernaly fbernaly added the Text Recognition Issues corresponding to Text Recognition API label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Text Recognition Issues corresponding to Text Recognition API
Projects
None yet
Development

No branches or pull requests

4 participants