ios – Development or operating Flutter app will get caught at executing xattr

I’m trying to build a Flutter app I’m working on for quite a while. Until a couple of days ago I was able to easily build the app as expected. Now I’m having the issue though that on running flutter build ios --verbose or flutter run --verbose the building process just gets stuck. I think I nailed it down to the execution of xattr.

Basically the build pipeline gets stuck at xattr -r -d /Users/path/to/flutter/folder. First I got a bunch of permission errors on different files in my Pods folder that looked like that: xattr: [Errno 13] Permission denied: /Users/path/to/flutter/app/ios/Pods/. After updating the permissions to 776 via chmod these errors are gone, the command still stays in an infinite state though and nothing happens.

I feel like I tried everything: Cleaning flutter folder, upgrading to the latest flutter version, cleaning xcode build folder. Removing pubspec.lock and podfile.lock and Pods folder with reinstalls, install new simulator, of course restarting the computer, nothing helps me here and I’m just stuck on that.

Happy to provide more infos if required, but would really appreciate some help here.

flutter doctor -v:

[✓] Flutter (Channel stable, 3.7.7, on macOS 13.0.1 22A400 darwin-arm64, locale de)
    • Flutter version 3.7.7 on channel stable at /Users/username/Development/flutter
    • Upstream repository
    • Framework revision 2ad6cd72c0 (10 days ago), 2023-03-08 09:41:59 -0800
    • Engine revision 1837b5be5f
    • Dart version 2.19.4
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
    • Android SDK at /Users/username/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0-rc1
    • Java binary at: /Applications/Android
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android
    • Flutter plugin can be installed from:
    • Dart plugin can be installed from:
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.76.2)
    • VS Code at /Applications/Visual Studio
    • Flutter extension version 3.60.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.0.1 22A400 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 111.0.5563.64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Leave a Reply

Your email address will not be published. Required fields are marked *