2.5 C
New York
Wednesday, April 9, 2025

flutter – Framework ‘sqflite’ not discovered on iOS


I’ve up to date the model of Flutter to 3.29.2. I’ve up to date XCode to the newest model, 16.3 as properly. I’m utilizing the most recent model of sqflite. When I’m constructing the iOS app, it reveals an error state that the Framework 'sqflite' not discovered.

  1. Full Reinstallation of Dependencies
flutter clear
rm -rf ios/Pods ios/Podfile.lock pubspec.lock
flutter pub cache restore
flutter pub get
cd ios
arch -x86_64 pod set up --repo-update  # For on Apple Silicon
cd ..
flutter construct ios
  1. Guide Pod Set up for sqflite
pod deintegrate
pod cache clear --all
pod repo replace
arch -x86_64 pod set up --verbose  # Search for sqflite within the output

I’ve used the processes talked about above. Nonetheless getting the error.

Right here is my Podfile

# Uncomment this line to outline a world platform in your challenge
# platform :ios, '12.0'

# CocoaPods analytics sends community stats synchronously affecting flutter construct latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

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

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.be a part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  except File.exist?(generated_xcode_build_settings_path)
    elevate "#{generated_xcode_build_settings_path} should exist. Should you're working pod set up manually, ensure 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}. Strive deleting Generated.xcconfig, then run flutter pub get"
finish

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

flutter_ios_podfile_setup

goal 'Runner' do
  use_frameworks! :linkage => :static
  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

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles