Skip to content

Module 'path_provider_foundation' not found #2609

Closed Answered by 33885222
33885222 asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like I found a similar issue: https://github.com/orgs/codemagic-ci-cd/discussions/2053
This solution helped me, however, my dependencies require a newer version of iOS, but by default it installs version 12. So, I had to amend the script as follows:


rm -rf ios
flutter create /Users/builder/clone/
podfile_path="/Users/builder/clone/ios/Podfile"

if [ -f "$podfile_path" ]; then
  echo "Podfile"
  platform_line_exists=$(grep -q "platform :ios" "$podfile_path")
  if grep -q "platform :ios" "$podfile_path"; then
    echo "'platform :ios' HERE"
    sed -i '' '/platform :ios/d' "$podfile_path"
  else
    echo "platform :ios' NO"
  fi
  
  sed -i '' '1s/^/platform :ios, '"'"'15.0'"'"'\n…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@himesh-cm
Comment options

Answer selected by 33885222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants