Back

[SOLVED] Unable to run app after installing appwrite package

  • 0
  • Flutter
Drake
8 Jul, 2023, 17:33
TL;DR
The user was unable to run their app after installing the appwrite package. They tried various solutions, such as deleting the pod lock, upgrading package versions, and changing the minimum macOS version. They were eventually able to fix the error, although it's unclear which solution exactly worked for them. The thread concludes with a suggestion to increase the minimum deployment target.
Hemish11
8 Jul, 2023, 17:33

so, now i need to replace the frontend application

Hemish11
8 Jul, 2023, 17:34

mine is macos app, so what should be the min version?

Drake
8 Jul, 2023, 17:37

I encourage you to read, think, and practice your problem solving skills

Hemish11
8 Jul, 2023, 18:06

I have tried many things, tried upgrading other package versions and what not, but wasnt able to figure out

Hemish11
8 Jul, 2023, 18:06

is that so that illl have to update the min version of macos in project?

Hemish11
8 Jul, 2023, 18:07

If so, then what is the min version?

Hemish11
8 Jul, 2023, 18:35

I did also tried upgrading macos min version to 10.15

Drake
8 Jul, 2023, 18:45

What exactly did you do?

Hemish11
8 Jul, 2023, 18:45

I tried upgrading min version for macOS from 10.14 to 10.15

Hemish11
8 Jul, 2023, 18:46

I also tried upgrading all of my other packages to latest version

Hemish11
8 Jul, 2023, 18:46

I also tried deleting the podfile and recreated a new one

Drake
8 Jul, 2023, 18:47

Please share a screenshot of what you did

Hemish11
9 Jul, 2023, 03:40

I upgraded this to 10.15 it was previously 10.14

Hemish11
9 Jul, 2023, 03:41

Then i also tried doing flutter clean

Drake
9 Jul, 2023, 03:41

And you opened this from the macos folder?

Hemish11
9 Jul, 2023, 03:41

Yes

Hemish11
9 Jul, 2023, 03:41

I also tried setting it to 11.0

Drake
9 Jul, 2023, 03:43

Ok, what's in your Podfile?

Hemish11
9 Jul, 2023, 03:49
TypeScript
platform :osx, '10.15'

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

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_macos_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_macos_build_settings(target)
  end
end
Drake
9 Jul, 2023, 04:04

Delete the pod lock if you have one, build, and share the updated error message

Hemish11
9 Jul, 2023, 04:15

I tried that, and ya it somehow fixed the error

Hemish11
9 Jul, 2023, 04:15

Thanks a lot

Hemish11
9 Jul, 2023, 04:15

[Solved] Unable to run app after installing appwrite package

Hemish11
9 Jul, 2023, 04:15

[SOLVED] Unable to run app after installing appwrite package

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more