Monday, April 1, 2024
HomeiOS DevelopmentModule not discovered when constructing flutter app for IOS

Module not discovered when constructing flutter app for IOS


So I am having an issue when constructing my Flutter app in launch mode for flutter.

After I construct my Flutter app in debug mode it really works superb and I can use my app in any emulator with none downside. However after I click on edit scheme and attempt to run it in launch mode the construct fails and I get cloud_firestore module not discovered.

The explanation I am making an attempt to construct for launch mode is that after I submitted my app for the app retailer it bought rejected nearly instantly and the explanation was that the app crashed when launching.

Info you need to know:
Mac Model:
mac_version

App works superb in debug mode

XCode model: v14.2

Flutter physician: No errors

Cocoapods model: 1.15.2

Flutter model: 3.19.5 (Steady model)

Dart model: 3.3.3

Podfile content material:

platform :ios, '12.0'

ENV['COCOAPODS_DISABLE_STATS'] = 'true'


venture 'Runner', {
  'Debug' => :debug,
  'Profile' => :launch,
  'Launch' => :launch,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.be part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  until File.exist?(generated_xcode_build_settings_path)
    elevate "#{generated_xcode_build_settings_path} should exist. In case you're working pod set up manually, be sure flutter pub get is executed first"
  finish

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT=(.*)/)
    return matches[1].strip if matches
  finish
  elevate "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Attempt deleting Generated.xcconfig, then run flutter pub get"
finish

require File.expand_path(File.be part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

goal 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  goal 'RunnerTests' do
    inherit! :search_paths
  finish
finish

post_install do |installer|
  installer.pods_project.targets.every do |goal|
    flutter_additional_ios_build_settings(goal)
  finish
finish

Pubspec.yaml content material:

identify: lifenavigator
model: 1.0.0+1
publish_to: none
description: A brand new Flutter venture.
surroundings: 
  sdk: '>=3.2.3 <4.0.0'

dependencies: 
  cupertino_icons: ^1.0.2
  get: 4.6.6
  flutter: 
    sdk: flutter
  google_fonts: 6.1.0
  firebase_core: ^2.27.0
  firebase_auth: ^4.17.8
  font_awesome_flutter: ^10.7.0
  convex_bottom_bar: ^3.2.0
  cloud_firestore: ^4.15.8
  firebase_messaging: ^14.7.19
  google_sign_in: ^6.2.1
  flutter_facebook_auth: ^6.1.1
  flutter_dotenv: ^5.1.0
  dio: ^5.4.1
  url_launcher: ^6.2.5
  flutter_launcher_icons: ^0.13.1
  google_mobile_ads: ^5.0.0

dev_dependencies: 
  flutter_lints: ^3.0.2
  flutter_test: 
    sdk: flutter
  flutter_launcher_icons: "^0.13.1"


flutter_launcher_icons:
  android: "launcher_icon"
  ios: true
  image_path: "belongings/applogo.png"
flutter: 
  uses-material-design: true
  belongings:
    - belongings/
    - .env

Options I attempted:
I attempted cleansing the earlier builds and constructing once more.

I attempted Flutter improve and pod repo replace and flutter pub get and pod set up

I attempted including cloudFirestore in Podfile as pod 'FirebaseCore', :modular_headers => true (trigggered a brand new error)

I used to be making an attempt to construct my software for launch mode however the construct failed and I bought module “cloud_firestore” not discovered



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments