0

error image I am trying to build my Flutter iOS app using Xcode, but I am getting the following error:

  • ld: framework 'Flutter' not found

    clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have already tried the following steps:

Ran pod install --repo-update in the ios directory Cleared Derived Data (rm -rf ~/Library/Developer/Xcode/DerivedData) Ran flutter clean and flutter pub get

1
  • If this is a new project you can try to delete the ios folder from the project and create it again using: flutter create --platforms=ios . Maybe this can fix the issue Commented Mar 20 at 14:21

1 Answer 1

0

You can try below solutions:

  1. Check Flutter Setup: Run flutter doctor -v to ensure no issues.

  2. Open Correct Workspace: because you are running your app through Xcode, please make sure to open Runner.xcworkspace instead of Runner.xcodeproj.

  3. Reset iOS build:

    rm -rf ios/Pods ios/.symlinks ios/Flutter ios/Podfile.lock  
    cd ios && pod install --repo-update && cd ..  
    flutter clean && flutter pub get
    
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.