Reputation: 153
please help me for the steps to obfuscate the code, step by step until it's finished? and how do I see if my obfuscate code is successful or not. Previously I tried running this command "flutter build ios --obfuscate --split-debug-info = / / " but an error appears like this: bash: syntax error near unexpected token `newline ', why the error?
Upvotes: 3
Views: 5531
Reputation: 131
The "obfuscate" function will split the debug-info for your Flutter app when building for the respective platform. for e.g., if your preparing to ship the version 2.0.1, then you'll get a folder named "2.0.1" which shall contain the .symbols files.
Now about how to get this done is by using this command flutter build ios --obfuscate --split-debug-info=debug-info
This will create a folder named debug-info
in the root directory of your project and if you do have a new directory created in that after running the above command, then it means that the obfuscation was successful.
Upvotes: 8