Babel Obfuscator - 'Renaming':对象引用未设置为对象的实例

时间:2018-03-26 09:53:51

标签: xamarin obfuscation

我正在使用BABEL Obfuscator来混淆我的Xamarin应用程序。如果我在调试模式下编译我的应用程序,我没有错误。但是,只要我在发布模式下编译我的应用程序,我就会收到此错误:

  

'重命名':对象引用未设置为对象的实例

我之前能够在发布模式下编译它,错误最近开始了。我正在使用Visual Studio 2017社区版。

可能是什么问题?以下是详细的错误消息:

Babel Obfuscator version 8.15.0.0
1>  Copyright (C) 2010-2017 babelfor.NET. All rights reserved.
1>  Running on 64 bit Windows process
1>  Processing myprojectname.dll...
1>  Current directory: 'C:\MY STUFF\Programming\Xamarin\myproject\myprojectname'
1>  Assembly search directories:
1>     C:\MY STUFF\Programming\Xamarin\myproject\myprojectname
1>     C:\MY STUFF\Programming\Xamarin\myproject\myprojectname\bin\Release
1>     C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v1.0
1>     C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0
1>  Analyzing...
1>  Target framework: MonoAndroid,Version=v6.0
1>  Processing System.Reflection.ObfuscationAttribute...
1>  SuppressIldasmAttribute added
1>  Running Agent...
1>  Task: Reflected enums
1>     Do not rename System.Enum types that are used by reflection
1>  Task: Serializable types
1>     Do not rename serializable types
1>  Task: Reflected strings
1>     Do not change symbol name strings used by reflection
1>  Task: Reflected types
1>     Do not rename types consumed by reflection methods
1>  Task: Exposed attributes
1>     Do not rename and remove symbols that expose specified attributes
1>  Task: Base types
1>     Do not rename types that derive from a specified base type
1>  Task: XAML symbols
1>     Parse BAML and XAML resources
1>  Task: Dynamic language
1>     Do not rename symbols used by dynamic language runtime
1>  Obfuscating names...
1>BABEL : error : An error occurred during phase 'Renaming': Object reference not set to an instance of an object.
1>  
1>  Inner Exception:
1>  Object reference not set to an instance of an object.

enter image description here

1 个答案:

答案 0 :(得分:0)

这是一个众所周知的错误。巴别塔给我发了以下信息:

感谢您在babelfor.NET上写作。您遇到的问题是我们已经生成的一些许可文件的已知问题。 请删除您当前的许可证文件,并随附此附带的新许可证文件。 这将解决重命名错误。