最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Flutter iOS Build Fails: ld: framework 'Flutter' not found (Xcode) - Stack Overflow

programmeradmin2浏览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

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

Share Improve this question edited Mar 20 at 12:41 Rajendra Suthar asked Mar 20 at 12:36 Rajendra SutharRajendra Suthar 12 bronze badges 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 – Tijl Ivens Commented Mar 20 at 14:21
Add a comment  | 

1 Answer 1

Reset to default 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
    
发布评论

评论列表(0)

  1. 暂无评论