Skip to content

Unable to pass --no-tree-shake-icons to patrol build ios #2639

@pamafe1976

Description

@pamafe1976

Steps to reproduce

I'm creating my IPA with
flutter build ipa --no-tree-shake-icons
Patrol testing on IPhone with
patrol build ios --release
fails because there is no way of setting the --no-tree-shake-icons option

Actual results

Patrol build fails:

    Target release_ios_bundle_flutter_assets failed: Error: Avoid non-constant invocations of IconData or try to build again with --no-tree-shake-icons.

Logs

No response

Patrol version

patrol: ^3.15.2

Patrol Doctor output

Patrol doctor:
Patrol CLI version: 3.6.0
Flutter command: flutter
Flutter 3.32.0 • channel stable
Android:
• Program adb found in /Users/pablo/Library/Android/sdk/platform-tools/adb
• Env var $ANDROID_HOME set to /Users/pablo/Library/Android/sdk
iOS / macOS:
• Program xcodebuild found in /usr/bin/xcodebuild
• Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller

Flutter Doctor output

[✓] Flutter (Channel stable, 3.32.0, on macOS 15.5 24F74 darwin-arm64, locale es-AR)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] VS Code (version 1.100.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!
(venv) pablo@capsa catedralapp % flutter doctor -v
[✓] Flutter (Channel stable, 3.32.0, on macOS 15.5 24F74 darwin-arm64, locale es-AR) [230ms]
• Flutter version 3.32.0 on channel stable at /Users/pablo/Proyectos/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision be698c48a6 (12 days ago), 2025-05-19 12:59:14 -0700
• Engine revision 1881800949
• Dart version 3.8.0
• DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3) [931ms]
• Android SDK at /Users/pablo/Library/Android/sdk
• Platform android-35, build-tools 35.0.0-rc3
• ANDROID_HOME = /Users/pablo/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/pablo/Library/Android/sdk
• 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+-13368085-b895.109)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [495ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16F6
• CocoaPods version 1.16.2

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

[✓] Android Studio (version 2024.3) [8ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[✓] VS Code (version 1.100.2) [8ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.111.20250501

[✓] Connected device (3 available) [5,7s]
• iPhone de Pablo (mobile) • 00008110-001E38D03651801E • ios • iOS 18.5 22F76
• macOS (desktop) • macos • darwin-arm64 • macOS 15.5 24F74 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 136.0.7103.116

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

• No issues found!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions