Skip to content

Swift Package Manager integration FAILED! #186054

Closed

Description

@priyankarawat953

Steps to reproduce

project.pbxproj-copy.txt

Runner.xcscheme-copy.txt

flutter upgrade

flutter config --enable-swift-package-manager

flutter run

Actual results

Launching lib/main.dart on iPhone (wireless) in debug mode...
Wireless debugging on iOS 26 may be slower than expected. For better performance, consider using a wired (USB) connection.
Adding Swift Package Manager integration... 1219.9s
Error: An error occurred when adding Swift Package Manager integration:
Error: Unable to get Xcode project information:
2026-05-05 16:59:34.139 xcodebuild[83218:1391991] Writing error result bundle to
/var/folders/dm/xz9zz70s0_zgdn8r94pmrrx80000gn/T/ResultBundle_2026-05-05_16-59-0034.xcresult
xcodebuild: error: Could not resolve package dependencies:
failed downloading 'https://dl.google.com/firebase/ios/swiftpm/12.12.1/GoogleAppMeasurementIdentitySupport.zip' which is required by binary target
'GoogleAppMeasurementIdentitySupport':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_swiftpm_12_12_1_GoogleAppMeasurementIdentitySupport_zip
already exists in file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalNotifications.xcframework.zip' which is required by
binary target 'OneSignalNotifications':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalNotifications
_xcframework_zip already exists in file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalLocation.xcframework.zip' which is required by binary
target 'OneSignalLocation':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalLocation_xcfr
amework_zip already exists in file system
failed downloading 'https://dl.google.com/firebase/ios/swiftpm/12.12.1/FirebaseAnalytics.zip' which is required by binary target 'FirebaseAnalytics':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_swiftpm_12_12_1_FirebaseAnalytics_zip already exists in
file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalExtension.xcframework.zip' which is required by binary
target 'OneSignalExtension':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalExtension_xcf
ramework_zip already exists in file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalUser.xcframework.zip' which is required by binary target
'OneSignalUser':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalUser_xcframew
ork_zip already exists in file system
failed downloading 'https://dl.google.com/firebase/ios/appads/3.5.0/GoogleAdsOnDeviceConversion.zip' which is required by binary target
'GoogleAdsOnDeviceConversion':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_appads_3_5_0_GoogleAdsOnDeviceConversion_zip already
exists in file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalOutcomes.xcframework.zip' which is required by binary
target 'OneSignalOutcomes':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalOutcomes_xcfr
amework_zip already exists in file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalFramework.xcframework.zip' which is required by binary
target 'OneSignalFramework':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalFramework_xcf
ramework_zip already exists in file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalOSCore.xcframework.zip' which is required by binary
target 'OneSignalOSCore':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalOSCore_xcfram
ework_zip already exists in file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalCore.xcframework.zip' which is required by binary target
'OneSignalCore':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalCore_xcframew
ork_zip already exists in file system
failed downloading 'https://dl.google.com/firebase/ios/bin/abseil/1.2024072200.0/rc0/absl.zip' which is required by binary target 'absl':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_abseil_1_2024072200_0_rc0_absl_zip already exists in
file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalInAppMessages.xcframework.zip' which is required by
binary target 'OneSignalInAppMessages':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalInAppMessages
_xcframework_zip already exists in file system
failed downloading 'https://github.com/OneSignal/OneSignal-iOS-SDK/releases/download/5.5.0/OneSignalLiveActivities.xcframework.zip' which is required by
binary target 'OneSignalLiveActivities':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_OneSignal_OneSignal_iOS_SDK_releases_download_5_5_0_OneSignalLiveActivitie
s_xcframework_zip already exists in file system
failed downloading 'https://dl.google.com/firebase/ios/swiftpm/12.12.1/GoogleAppMeasurement.zip' which is required by binary target 'GoogleAppMeasurement':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_swiftpm_12_12_1_GoogleAppMeasurement_zip already exists in
file system
failed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/openssl_grpc.zip' which is required by binary target 'openssl_grpc':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_openssl_grpc_zip already exists in
file system
failed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/grpcpp.zip' which is required by binary target 'grpcpp':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_grpcpp_zip already exists in file
system
failed downloading 'https://dl.google.com/firebase/ios/bin/firestore/12.12.0/rc2/FirebaseFirestoreInternal.zip' which is required by binary target
'FirebaseFirestoreInternal':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_firestore_12_12_0_rc2_FirebaseFirestoreInternal_zip
already exists in file system
failed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/grpc.zip' which is required by binary target 'grpc':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_grpc_zip already exists in file system
failed downloading 'https://github.com/getsentry/sentry-cocoa/releases/download/8.58.1/Sentry.xcframework.zip' which is required by binary target 'Sentry':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_getsentry_sentry_cocoa_releases_download_8_58_1_Sentry_xcframework_zip
already exists in file system
failed downloading 'https://github.com/getsentry/sentry-cocoa/releases/download/8.58.1/Sentry-WithoutUIKitOrAppKit.xcframework.zip' which is required by
binary target 'Sentry-WithoutUIKitOrAppKit':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_getsentry_sentry_cocoa_releases_download_8_58_1_Sentry_WithoutUIKitOrAppKi
t_xcframework_zip already exists in file system
failed downloading 'https://github.com/getsentry/sentry-cocoa/releases/download/8.58.1/Sentry-Dynamic.xcframework.zip' which is required by binary target
'Sentry-Dynamic':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_getsentry_sentry_cocoa_releases_download_8_58_1_Sentry_Dynamic_xcframework
zip already exists in file system
failed downloading 'https://github.com/getsentry/sentry-cocoa/releases/download/8.58.1/Sentry-Dynamic-WithARM64e.xcframework.zip' which is required by binary
target 'Sentry-Dynamic-WithARM64e':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_getsentry_sentry_cocoa_releases_download_8_58_1_Sentry_Dynamic_WithARM64e

xcframework_zip already exists in file system
failed downloading 'https://github.com/getsentry/sentry-cocoa/releases/download/8.58.1/Sentry-WithoutUIKitOrAppKit-WithARM64e.xcframework.zip' which is
required by binary target 'Sentry-WithoutUIKitOrAppKit-WithARM64e':
/Users/priyankarawat/Library/Caches/org.swift.swiftpm/artifacts/https___github_com_getsentry_sentry_cocoa_releases_download_8_58_1_Sentry_WithoutUIKitOrAppKi
t_WithARM64e_xcframework_zip already exists in file system
fatalError

Swift Package Manager is currently an experimental feature, please file a bug at
https://github.com/flutter/flutter/issues/new?template=01_activation.yml
Consider including a copy of the following files in your bug report:
ios/Runner.xcodeproj/project.pbxproj
ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (or the scheme for the flavor used)

To add Swift Package Manager integration manually, please use the following instructions:
https://docs.flutter.dev/to/add-swift-package-manager-manually

Alternatively, to avoid this failure, disable Flutter Swift Package Manager integration for the project
by adding the following in the project's pubspec.yaml under the "flutter" section:
config:
enable-swift-package-manager: false
Or disable Flutter Swift Package Manager integration globally with the
following command:
"flutter config --no-enable-swift-package-manager"

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.38.9, on macOS 26.3 25D125 darwin-x64, locale en-IN) [969ms]
    • Flutter version 3.38.9 on channel stable at /Users/priyankarawat/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 67323de285 (3 months ago), 2026-01-28 13:43:12 -0800
    • Engine revision 587c18f873
    • Dart version 3.10.8
    • DevTools version 2.51.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
      enable-native-assets, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [4.7s]
    • Android SDK at /Users/priyankarawat/Library/Android/sdk
    • Emulator version 35.6.11.0 (build_id 13610412) (CL:N/A)
    • Platform android-36, build-tools 36.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.1) [2.7s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17B55
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [22ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Connected device (3 available) [8.8s]
    • Priyanka’s iPhone (wireless) (mobile) • 00008140-001A44261493001C • ios            • iOS 26.3.1 23D771330a
    • macOS (desktop)                       • macos                     • darwin-x64     • macOS 26.3 25D125 darwin-x64
    • Chrome (web)                          • chrome                    • web-javascript • Google Chrome 147.0.7727.138

[✓] Network resources [674ms]
    • All expected network resources are available.

• No issues found!

Activity

  1. vashworth commented on May 5, 2026

    @vashworth
    Contributor

    @priyankarawat953 Thank you for you report. This seems like Xcode is failing to download the artifacts. Could you try running rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts/ and then try again?

  2. added
    platform-iosiOS applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    platform-macosBuilding on or for macOS specifically
    t: xcode"xcodebuild" on iOS and general Xcode project management
    team-iosOwned by iOS platform team
    on May 5, 2026
  3. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 7, 2026
  4. large commented on May 25, 2026

    @large

    This still fails on the xcode cloud, using Flutter v3.44 @vashworth / @okorohelijah
    It is 50/50 if it comes through when compiling main, but if you create a branch it will compile "always". It does not fail so often.

    Tried to update the ci_scripts to clear cache directories etc (like /Users/local/Library/Caches/org.swift.swiftpm/artifacts/ ) , but that does not work.

    I cannot give you an reproducing code either, so this is annoying and odd.

    From the log above, the equalness is "grpcpp" package.

    CI-log:

    Resolve package dependencies - 1m 32.1s
    Run command: 'xcodebuild -resolvePackageDependencies -workspace /Volumes/workspace/repository/ios/Runner.xcworkspace -scheme Runner -derivedDataPath /Volumes/workspace/DerivedData -hideShellScriptEnvironment'
    Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace /Volumes/workspace/repository/ios/Runner.xcworkspace -scheme Runner -derivedDataPath /Volumes/workspace/DerivedData -hideShellScriptEnvironment
    Resolve Package Graph
    Fetching from https://github.com/firebase/firebase-ios-sdk
    Fetching from https://github.com/googleads/google-ads-on-device-conversion-ios-sdk
    Fetching from https://github.com/google/GTMAppAuth.git
    Fetching from https://github.com/google/abseil-cpp-binary.git
    Fetching from https://github.com/firebase/nanopb.git
    Fetching from https://github.com/google/grpc-binary.git
    Fetching from https://github.com/google/GoogleUtilities.git
    Fetching from https://github.com/google/GoogleAppMeasurement.git
    Fetching from https://github.com/google/GoogleSignIn-iOS.git
    Fetching from https://github.com/google/app-check.git (cached)
    Fetching from https://github.com/googleads/swift-package-manager-google-user-messaging-platform.git (cached)
    Fetching from https://github.com/googleads/swift-package-manager-google-mobile-ads (cached)
    Fetching from https://github.com/google/interop-ios-for-google-sdks.git (cached)
    Fetching from https://github.com/firebase/leveldb.git (cached)
    Fetching from https://github.com/google/GoogleDataTransport.git (cached)
    Fetching from https://github.com/openid/AppAuth-iOS.git (cached)
    Fetching from https://github.com/google/promises.git (cached)
    Fetching from https://github.com/google/gtm-session-fetcher.git (cached)
    Creating working copy of package ‘GoogleSignIn-iOS’
    Creating working copy of package ‘GoogleUtilities’
    Creating working copy of package ‘GoogleAppMeasurement’
    Creating working copy of package ‘google-ads-on-device-conversion-ios-sdk’
    Creating working copy of package ‘nanopb’
    Creating working copy of package ‘leveldb’
    Creating working copy of package ‘grpc-binary’
    Creating working copy of package ‘abseil-cpp-binary’
    Creating working copy of package ‘app-check’
    Checking out 1.22.5 of package ‘leveldb’
    Checking out 9.1.0 of package ‘GoogleSignIn-iOS’
    Checking out 1.69.1 of package ‘grpc-binary’
    Creating working copy of package ‘gtm-session-fetcher’
    Checking out 1.2024072200.0 of package ‘abseil-cpp-binary’
    Checking out 2.30910.0 of package ‘nanopb’
    Checking out 3.5.0 of package ‘google-ads-on-device-conversion-ios-sdk’
    Checking out 8.1.0 of package ‘GoogleUtilities’
    Checking out 12.13.0 of package ‘GoogleAppMeasurement’
    Creating working copy of package ‘promises’
    Checking out 11.2.0 of package ‘app-check’
    Creating working copy of package ‘firebase-ios-sdk’
    Creating working copy of package ‘GoogleDataTransport’
    Creating working copy of package ‘AppAuth-iOS’
    Checking out 3.5.0 of package ‘gtm-session-fetcher’
    Checking out 2.4.0 of package ‘promises’
    Creating working copy of package ‘GTMAppAuth’
    Checking out 10.1.0 of package ‘GoogleDataTransport’
    Creating working copy of package ‘interop-ios-for-google-sdks’
    Checking out 2.0.0 of package ‘AppAuth-iOS’
    Creating working copy of package ‘swift-package-manager-google-mobile-ads’
    Creating working copy of package ‘swift-package-manager-google-user-messaging-platform’
    Checking out 5.0.0 of package ‘GTMAppAuth’
    Checking out 101.0.0 of package ‘interop-ios-for-google-sdks’
    Checking out 13.4.0 of package ‘swift-package-manager-google-mobile-ads’
    Checking out 12.13.0 of package ‘firebase-ios-sdk’
    Checking out 3.1.0 of package ‘swift-package-manager-google-user-messaging-platform’
    failed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/grpcpp.zip' which is required by binary target 'grpcpp': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_grpcpp_zip already exists in file systemfatalError
    Resolved source packages:
    FlutterGeneratedPluginSwiftPackage: (null)
    2026-05-25 14:31:17.439 xcodebuild[7617:35696] Writing error result bundle to /var/folders/cx/946jy9911339kqrvnyyl8fvh0000gn/T/ResultBundle_2026-25-05_14-31-0017.xcresult
    xcodebuild: error: Could not resolve package dependencies:
    failed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/grpcpp.zip' which is required by binary target 'grpcpp': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_grpcpp_zip already exists in file system
    fatalError
    Error
    Command exited with non-zero exit-code: 74

    ci_post_clone.sh script for xcode cloud to run:

    #!/bin/sh
    
    #Updated 19.jan etter https://docs.flutter.dev/deployment/cd#custom-build-script
    
    # Fail this script if any subcommand fails.
    set -e
    
    # The default execution directory of this script is the ci_scripts directory.
    cd "$CI_PRIMARY_REPOSITORY_PATH" # change working directory to the root of your cloned repo.
    
    # Install Flutter using git.
    #git clone https://github.com/flutter/flutter.git -b master $HOME/flutter
    git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter
    #TODO: Remove this rubbish below to handle the first time bug for v3.29.0 not handled correctly in GIT
    #git clone https://github.com/flutter/flutter.git -b stable $HOME/flutter
    #cd $HOME/flutter
    #git checkout f73bfc4522dd0bc87bbcdb4bb3088082755c5e87
    #cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo.
    export PATH="$PATH:$HOME/flutter/bin"
    
    # Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms.
    flutter precache --ios
    
    # Install Flutter dependencies.
    flutter pub get
    
    # Fix the auto-generated FlutterGeneratedPluginSwiftPackage which defaults to
    # iOS 13.0, but Firebase 12.x+ requires iOS 15.0. Patch it to match our
    # project's deployment target.
    GENERATED_PACKAGE="$CI_PRIMARY_REPOSITORY_PATH/ios/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage/Package.swift"
    if [ -f "$GENERATED_PACKAGE" ]; then
      echo "Patching FlutterGeneratedPluginSwiftPackage iOS deployment target to 15.0..."
      sed -i '' 's/\.iOS("[0-9]*\.[0-9]*")/\.iOS("15.0")/' "$GENERATED_PACKAGE"
      if grep -q '\.iOS("15.0")' "$GENERATED_PACKAGE"; then
        echo "Successfully patched iOS deployment target to 15.0"
      else
        echo "WARNING: Failed to patch iOS deployment target in $GENERATED_PACKAGE"
        cat "$GENERATED_PACKAGE"
      fi
    else
      echo "WARNING: FlutterGeneratedPluginSwiftPackage/Package.swift not found after flutter pub get"
    fi
    
    # Activate FlutterFire
    dart pub global activate flutterfire_cli
    
    # Install CocoaPods using Homebrew.
    # shellcheck disable=SC2034
    HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates.
    brew install cocoapods
    
    # Install CocoaPods dependencies (still have one that is not converted)
    cd ios && pod install # run `pod install` in the `ios` directory.
    
    # ── Clean SPM binary-target artifacts LAST ──
    # This MUST run at the very end of ci_post_clone.sh, AFTER flutter pub get and
    # pod install, because those commands can download/create SPM binary-target
    # artifacts (Firebase, Google Ads, gRPC, etc.).
    #
    # Xcode Cloud pipeline order:
    #   1. Clone repo
    #   2. ci_post_clone.sh          ← THIS SCRIPT
    #   3. Resolve Package Dependencies  ← Xcode Cloud automatic step
    #   4. ci_pre_xcodebuild.sh      ← runs AFTER resolve, too late to fix caches
    #   5. xcodebuild
    #
    # If stale .zip artifacts exist in org.swift.swiftpm/artifacts/ when step 3
    # runs, SPM fails with "already exists in file system". Cleaning here — after
    # all dependency-fetching commands — ensures a clean state for the resolve step.
    #
    # IMPORTANT: Only remove the "artifacts" subdirectory (binary-target .zip files).
    # Do NOT remove the "repositories" subdirectory — it contains cached git clones
    # of SPM packages. Deleting it forces SPM to re-clone everything from scratch,
    # which can fail on Xcode Cloud with "could not read Username for
    # 'http://github.com': terminal prompts disabled" due to network/auth issues.
    echo "Cleaning stale SPM binary-target artifacts (post flutter pub get / pod install)..."
    rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts || true
    rm -rf /Users/local/Library/Caches/org.swift.swiftpm/artifacts || true
    rm -rf ~/Library/Developer/Xcode/DerivedData || true
    rm -rf /Volumes/workspace/DerivedData || true
    echo "SPM artifact cleanup complete."
    
    exit 0

    If you run the same unchanged code, once again in the xcode cloud you get other failures:

    Resolve package dependencies - 1m 17.5s
    Run command: 'xcodebuild -resolvePackageDependencies -workspace /Volumes/workspace/repository/ios/Runner.xcworkspace -scheme Runner -derivedDataPath /Volumes/workspace/DerivedData -hideShellScriptEnvironment'
    Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace /Volumes/workspace/repository/ios/Runner.xcworkspace -scheme Runner -derivedDataPath /Volumes/workspace/DerivedData -hideShellScriptEnvironment
    Resolve Package Graph
    Fetching from https://github.com/firebase/nanopb.git
    Fetching from https://github.com/google/interop-ios-for-google-sdks.git
    Fetching from https://github.com/googleads/google-ads-on-device-conversion-ios-sdk
    Fetching from https://github.com/google/gtm-session-fetcher.git
    Fetching from https://github.com/google/GoogleAppMeasurement.git
    Fetching from https://github.com/google/GoogleDataTransport.git
    Fetching from https://github.com/google/app-check.git
    Fetching from https://github.com/firebase/firebase-ios-sdk
    Fetching from https://github.com/google/GTMAppAuth.git
    Fetching from https://github.com/google/GoogleUtilities.git
    Fetching from https://github.com/google/promises.git (cached)
    Fetching from https://github.com/googleads/swift-package-manager-google-user-messaging-platform.git (cached)
    Fetching from https://github.com/google/GoogleSignIn-iOS.git (cached)
    Fetching from https://github.com/google/grpc-binary.git (cached)
    Fetching from https://github.com/google/abseil-cpp-binary.git (cached)
    Fetching from https://github.com/openid/AppAuth-iOS.git (cached)
    Fetching from https://github.com/googleads/swift-package-manager-google-mobile-ads (cached)
    Fetching from https://github.com/firebase/leveldb.git (cached)
    Creating working copy of package ‘GTMAppAuth’
    Creating working copy of package ‘GoogleDataTransport’
    Creating working copy of package ‘GoogleUtilities’
    Creating working copy of package ‘firebase-ios-sdk’
    Creating working copy of package ‘nanopb’
    Creating working copy of package ‘google-ads-on-device-conversion-ios-sdk’
    Creating working copy of package ‘gtm-session-fetcher’
    Creating working copy of package ‘interop-ios-for-google-sdks’
    Creating working copy of package ‘app-check’
    Creating working copy of package ‘GoogleSignIn-iOS’
    Checking out 5.0.0 of package ‘GTMAppAuth’
    Checking out 3.5.0 of package ‘google-ads-on-device-conversion-ios-sdk’
    Checking out 10.1.0 of package ‘GoogleDataTransport’
    Checking out 8.1.0 of package ‘GoogleUtilities’
    Checking out 3.5.0 of package ‘gtm-session-fetcher’
    Creating working copy of package ‘abseil-cpp-binary’
    Checking out 101.0.0 of package ‘interop-ios-for-google-sdks’
    Checking out 11.2.0 of package ‘app-check’
    Creating working copy of package ‘promises’
    Checking out 9.1.0 of package ‘GoogleSignIn-iOS’
    Creating working copy of package ‘swift-package-manager-google-mobile-ads’
    Checking out 1.2024072200.0 of package ‘abseil-cpp-binary’
    Creating working copy of package ‘GoogleAppMeasurement’
    Checking out 2.4.0 of package ‘promises’
    Creating working copy of package ‘grpc-binary’
    Checking out 2.30910.0 of package ‘nanopb’
    Checking out 12.13.0 of package ‘firebase-ios-sdk’
    Creating working copy of package ‘AppAuth-iOS’
    Creating working copy of package ‘swift-package-manager-google-user-messaging-platform’
    Checking out 13.4.0 of package ‘swift-package-manager-google-mobile-ads’
    Creating working copy of package ‘leveldb’
    Checking out 12.13.0 of package ‘GoogleAppMeasurement’
    Checking out 3.1.0 of package ‘swift-package-manager-google-user-messaging-platform’
    Checking out 2.0.0 of package ‘AppAuth-iOS’
    Checking out 1.69.1 of package ‘grpc-binary’
    Checking out 1.22.5 of package ‘leveldb’
    failed downloading 'https://dl.google.com/firebase/ios/appads/3.5.0/GoogleAdsOnDeviceConversion.zip' which is required by binary target 'GoogleAdsOnDeviceConversion': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_appads_3_5_0_GoogleAdsOnDeviceConversion_zip already exists in file systemfailed downloading 'https://dl.google.com/firebase/ios/bin/abseil/1.2024072200.0/rc0/absl.zip' which is required by binary target 'absl': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_abseil_1_2024072200_0_rc0_absl_zip already exists in file systemfailed downloading 'https://dl.google.com/googleadmobadssdk/363b6fe04dd55d7f/googlemobileadsios-spm-13.4.0.zip' which is required by binary target 'GoogleMobileAds': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_googleadmobadssdk_363b6fe04dd55d7f_googlemobileadsios_spm_13_4_0_zip already exists in file systemfailed downloading 'https://dl.google.com/firebase/ios/swiftpm/12.13.0/GoogleAppMeasurement.zip' which is required by binary target 'GoogleAppMeasurement': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_swiftpm_12_13_0_GoogleAppMeasurement_zip already exists in file systemfailed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/openssl_grpc.zip' which is required by binary target 'openssl_grpc': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_openssl_grpc_zip already exists in file systemfailed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/grpcpp.zip' which is required by binary target 'grpcpp': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_grpcpp_zip already exists in file systemfailed downloading 'https://dl.google.com/firebase/ios/bin/firestore/12.13.0/rc0/FirebaseFirestoreInternal.zip' which is required by binary target 'FirebaseFirestoreInternal': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_firestore_12_13_0_rc0_FirebaseFirestoreInternal_zip already exists in file systemfailed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/grpc.zip' which is required by binary target 'grpc': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_grpc_zip already exists in file systemfatalError
    Resolved source packages:
    FlutterGeneratedPluginSwiftPackage: (null)
    2026-05-25 15:11:49.399 xcodebuild[4729:19409] Writing error result bundle to /var/folders/cx/946jy9911339kqrvnyyl8fvh0000gn/T/ResultBundle_2026-25-05_15-11-0049.xcresult
    xcodebuild: error: Could not resolve package dependencies:
    failed downloading 'https://dl.google.com/firebase/ios/appads/3.5.0/GoogleAdsOnDeviceConversion.zip' which is required by binary target 'GoogleAdsOnDeviceConversion': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_appads_3_5_0_GoogleAdsOnDeviceConversion_zip already exists in file system
    failed downloading 'https://dl.google.com/firebase/ios/bin/abseil/1.2024072200.0/rc0/absl.zip' which is required by binary target 'absl': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_abseil_1_2024072200_0_rc0_absl_zip already exists in file system
    failed downloading 'https://dl.google.com/googleadmobadssdk/363b6fe04dd55d7f/googlemobileadsios-spm-13.4.0.zip' which is required by binary target 'GoogleMobileAds': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_googleadmobadssdk_363b6fe04dd55d7f_googlemobileadsios_spm_13_4_0_zip already exists in file system
    failed downloading 'https://dl.google.com/firebase/ios/swiftpm/12.13.0/GoogleAppMeasurement.zip' which is required by binary target 'GoogleAppMeasurement': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_swiftpm_12_13_0_GoogleAppMeasurement_zip already exists in file system
    failed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/openssl_grpc.zip' which is required by binary target 'openssl_grpc': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_openssl_grpc_zip already exists in file system
    failed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/grpcpp.zip' which is required by binary target 'grpcpp': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_grpcpp_zip already exists in file system
    failed downloading 'https://dl.google.com/firebase/ios/bin/firestore/12.13.0/rc0/FirebaseFirestoreInternal.zip' which is required by binary target 'FirebaseFirestoreInternal': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_firestore_12_13_0_rc0_FirebaseFirestoreInternal_zip already exists in file system
    failed downloading 'https://dl.google.com/firebase/ios/bin/grpc/1.69.1/rc0/grpc.zip' which is required by binary target 'grpc': /Users/local/Library/Caches/org.swift.swiftpm/artifacts/https___dl_google_com_firebase_ios_bin_grpc_1_69_1_rc0_grpc_zip already exists in file system
    fatalError
    Error
    Command exited with non-zero exit-code: 74

  5. self-assigned this
    on May 26, 2026
  6. added
    P1High-priority issues at the top of the work list
    triaged-iosTriaged by iOS platform team
    and removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on May 26, 2026
  7. VladislavGlushko commented on May 27, 2026

    @VladislavGlushko

    Currently encountering the same issue with other google packages: FirebaseAnalytics, grpc, abseil, GoogleAppMeasurement, GoogleAdsOnDeviceConversion. Cannot compile any builds with 3.44.0 right now because of this..

  8. large commented on May 27, 2026

    @large

    Currently encountering the same issue with other google packages: FirebaseAnalytics, grpc, abseil, GoogleAppMeasurement, GoogleAdsOnDeviceConversion. Cannot compile any builds with 3.44.0 right now because of this..

    If you are using Xcode Cloud to build, I had some compilation success if you create another branch and setup to compile on that branch (with same code). Quite annoying though

  9. vashworth commented on May 27, 2026

    @vashworth
    Contributor

    A workaround fix is landed on master and I'll cherry-pick it to beta and stable shortly.

    I've also filed an issue with SwiftPM since it's an error from their side: swiftlang/swift-package-manager#10138. Please upvote that issue to get their team's attention on it.

  10. Pankti1Kosmos commented on Jun 11, 2026

    @Pankti1Kosmos

    I'm hitting the same issue. Environment:

    • Flutter 3.44 (stable)
    • macOS 26 / Xcode 26.0.1
    • Custom Flutter plugin with SPM Package.swift depending on a remote xcframework via git tag

    The plugin's Package.swift is correctly detected by Flutter (FlutterGeneratedPluginSwiftPackage references it), but SPM packages are never linked into the Runner build — results in "Module not found" at compile time.

    CocoaPods fallback is not viable in our case because the xcframework's .swiftinterface imports SPM-only dependencies (e.g., krzyzanowskim/OpenSSL 3.3.3001) that don't exist on CocoaPods trunk.

    This completely blocks local iOS development for any plugin consuming SPM-only dependencies on Xcode 26.

    Is there an ETA for a fix?

  11. bardez commented on Jun 14, 2026

    @bardez

    same here!

  12. jakelacey2012 commented on Jun 14, 2026

    @jakelacey2012

    Upgrading to 3.44.2 should fix your issue containing the following fix 638b3c8.

  13. vashworth commented on Jun 15, 2026

    @vashworth
    Contributor

    Fix is available on 3.44.2. If you continue to have issues, please file a new issue.

  14. github-actions commented on Jul 14, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyt: xcode"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions