Skip to content

Add-to-app - unable to install iOS app having embedded flutter framework #122183

@hemantchauhan

Description

@hemantchauhan

Is there an existing issue for this?

Steps to reproduce

run flutter create --template module my_flutter
add code in /lib folder
run flutter build ios-framework --output=/Users/ihi/Desktop/my_flutter_module_framework/
4 .xcframework are generated - App, Flutter, FlutterPlugin & shared_prefs_foundation.xcframework
integrate generated .xcframework 's into existing Xcode project. Select Embed and Sign for all.
archive app to distribute via firebase distribution
when I try to install this, I get this alert

IMG20230307110125

Actual results

Followed - https://docs.flutter.dev/development/add-to-app

First when i added the frameworks generated in Debug folder, I was able to debug the app fine on my phone. But for release on Firebase I replaced the same with frameworks generated in release folder. I was able to archive fine but the build is not installing.

Mac OS - 12.6 Monterey
Xcode - 14.0
Flutter - 3.7.6

IMG20230307110125

Logs

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

Flutter Doctor output

Doctor output
<!-- calender % flutter doctor -v
[✓] Flutter (Channel stable, 3.7.6, on macOS 12.6 21G115 darwin-x64, locale
    en-IN)
    • Flutter version 3.7.6 on channel stable at
      /Users/ichi14/Documents/everythingFlutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 12cb4eb7a0 (7 days ago), 2023-03-01 10:29:26 -0800
    • Engine revision ada363ee93
    • Dart version 2.19.3
    • DevTools version 2.20.1

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup
      for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14A309
    • CocoaPods version 1.11.3

[✗] Chrome - develop for the web (Cannot find Chrome executable at
    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup
      for detailed instructions).

[✓] VS Code (version 1.76.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (1 available)
    • macOS (desktop) • macos • darwin-x64 • macOS 12.6 21G115 darwin-x64

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowfound in release: 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyr: solvedIssue is closed as solvedt: xcode"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions