0

I want to obfuscate my cordova app for ios build. My android build is automatically obfuscated with R8 tool. I am looking for an open source solution. I have tried using this tool - SiriusObfuscator But I am getting an error-

$ Obfuscator_2018-04-24_115109 % bin/sirius -projectrootpath /Users/.../MyApp.xcodeproj -obfuscatedproject /Users/.../Desktop
===========================

Welcome to Sirius - Swift Obfuscator


===========================

1) File Extractor:
⠂⠁⠂⠄⡀⢀⠠⠐⠈⠁⠂⠄⡀⢀⠠⠐Extracting⠂⠁⠂⠄⡀⢀⠠⠐⠈⠁⠂⠄⡀⢀⠠⠐
STDERR: /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/vendor/ruby/2.2.0/gems/xcodeproj-1.5.3/lib/xcodeproj/project.rb:217:in `initialize_from_file': [Xcodeproj] Unknown object version. (RuntimeError)
    from /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/vendor/ruby/2.2.0/gems/xcodeproj-1.5.3/lib/xcodeproj/project.rb:102:in `open'
    from /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/file-extractor/lib/file-extractor/xcodeproj_extractor.rb:10:in `initialize'
    from /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/file-extractor/lib/file-extractor/data_extractor.rb:24:in `new'
    from /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/file-extractor/lib/file-extractor/data_extractor.rb:24:in `extract_data_from_all_sources'
    from /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/file-extractor/lib/file-extractor/data_extractor.rb:11:in `extract_data'
    from /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/file-extractor/lib/file-extractor/command.rb:108:in `run'
    from /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/vendor/ruby/2.2.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
    from /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/file-extractor/lib/file-extractor/command.rb:76:in `run'
    from /Users/.../Downloads/Obfuscator_2018-04-24_115109/bin/lib/file-extractor/bin/file-extractor:20:in `<main>'
STDOUT: 

===========================

2) Symbol Extractor:
⠂⠁⠂⠄⡀⢀⠠⠐⠈⠁⠂⠄⡀⢀⠠⠐Extracting⠂⠁⠂⠄⡀⢀⠠⠐⠈⠁⠂⠄⡀⢀⠠⠐
STDERR: Error during JSON file read
STDOUT: Swift obfuscator symbol extractor tool

My cordova version - 10.0.0
Swift code developed is of 3.x version.

I have also read this SO post where someone pointed how obfuscating only Objective C code will cause issues with Cordova app.

Please help.

sandy
  • 509
  • 1
  • 6
  • 23

0 Answers0