talsec / Free-RASP-Flutter

Flutter library for improving app security and threat monitoring on Android and iOS mobile devices.
https://github.com/talsec/Free-RASP-Community
MIT License
194 stars 20 forks source link

Build error : The generated assembly code contains unobfuscated DWARF debugging information #62

Closed fabienbranchel closed 1 year ago

fabienbranchel commented 1 year ago

Describe the bug When I try to do CI build (Bitrise), I have this error message since I use freerasp :

Running pod install...
3.4s Running Xcode build...
Xcode build done. 143.5s Failed to build iOS app Error (Xcode): Warning: The generated assembly code contains unobfuscated DWARF debugging information.

However, local run and local iOS build is fine.

To Reproduce Well, I'm not sure... Try building on Bitrise or an other CI ?

Expected behavior Build ok.

Screenshots N/A

Please complete the following information:

Additional context N/A

msikyna commented 1 year ago

Hello @fabienbranchel , does the issue still persist with the new version? It has been released recently: 5.0.0.

Kind regards, Talsec team

fabienbranchel commented 1 year ago

Hello @msikyna,

The issue still persist with the last 5.0.3 version released.

yardexx commented 1 year ago

Hello.

Unfortunately, I am unable to reproduce the issue. Is that full error message you get from Bitrise? Warning shouldn't shut down whole compilation process.

Kind regards, Jaroslav from Talsec Team

fabienbranchel commented 1 year ago

Hello,

I try building with a -v option. Details could be interesting :

2023-05-30 06:14:35.611 xcodebuild[7609:47979] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
             ** BUILD FAILED **

 The following build commands failed:
                PhaseScriptExecution Run\ Script /Users/vagrant/Library/Developer/Xcode/DerivedData/Runner-fvdlvfvunbwmbcgkbjykdeexifra/Build/Intermediates.noindex/Runner.build/Release-app-iphoneos/Runner.build/Script-9740EEB61CF901F6004384FC.sh (in target 'Runner' from project 'Runner')
             (1 failure)

[  +11 ms] Failed to build iOS app
[  +70 ms] Error (Xcode): [+24918 ms] Warning: The generated assembly code contains unobfuscated DWARF debugging information.
[   +6 ms] "flutter ios" took 194,855ms.
[   +3 ms] Encountered error while building for device.
[        ] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _BuildIOSSubCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:528:7)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1257:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>
[        ] Running 1 shutdown hook
[        ] Shutdown hooks complete
[        ] exiting with code 1
Run: failed to build iOS app: exit status 1
Run: failed to build iOS app: exit status 1

I'm not surprised for the process shut down : from my experience, the default mode in CIs is to stop the build when warnings appears, to keep things safe.

Also, I try to do a build with Xcode on my Mac, there is no warning from freerasp and it's working as expected.

yardexx commented 1 year ago

Seems like there is an issue with some Flutter build script. I've managed to run Bitrise CI with freeRASP just fine. Could you try to clear Bitrise (xcode) cache?

fabienbranchel commented 1 year ago

To working on this issue, I only use a workflow without Cache pull / Cache push steps. Did you mean anything else ?

I don't find any feature in Bitrise to clear the cache.

yardexx commented 1 year ago

Apologies but I didn't manage to reproduce the issue :/

Could you provide list of other plugins you use? There could be some sort of compatibility issue.

msikyna commented 1 year ago

Hello @fabienbranchel , did you manage to solve the issue? Could you provide the list of plugins as @yardexx asked? Thank you!

Kind regards, Talsec team

fabienbranchel commented 1 year ago

Hello, I had a production build to do at this time, so I simply removed all freerasp related things to get things done in time. I tried few days ago to use freerasp again, and all is working fine now.

yardexx commented 1 year ago

Hello.

As this issue doesn't persist, I am closing it. However, we'll keep an eye on it. If the issue reoccurs, don't hesitate to reopen it.