Search code examples
iosflutterdartobfuscation

Who to obfuscating flutter IOS app using extra_gen_snapshot_options?


I'm reading Flutter official instructions for Obfuscating Dart Code and I want to obfuscate my app for IOS.

The instruction says that I need to place the extra_gen_snapshot_options_or_none flag in the <FlutterRoot>/packages/flutter_tools/bin/xcode_backend.sh file. (IOS step1)

Where should I place it? Is it a necessary step?


Solution

  • Go to the BuildApp() function inside the <FlutterRoot>/packages/flutter_tools/bin/xcode_backend.sh file.

    Then place the flag as described in the instructions.

    That's how to it should be:

    enter image description here