Skip to content

Commit 78d7c2e

Browse files
committed
更新文档
1 parent 6092866 commit 78d7c2e

File tree

2 files changed

+11
-1
lines changed
  • docs/help
  • i18n/en/docusaurus-plugin-content-docs/current/help

2 files changed

+11
-1
lines changed

docs/help/faq.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ Symbol Obfusaction Pass会检测混淆符号名称后潜在的反射或者其他
3737

3838
### TypeLoadException: Could not resolve type with token 010001ec from typeref (expected class '$a.$d`1' in assembly 'Obfuz.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null')
3939

40-
**不要在Editor下**测试混淆程序集
40+
**不要在Editor下**测试运行混淆后的代码
4141

4242
在Editor下已经存在被混淆的程序集(包括Obfuz.Runtime)的原始未混淆的代码。混淆程序集引用的是混淆后的类型和函数,
4343
运行时会出现找不到类的错误!
4444

45+
如果你一定要测试,请禁用Obfuz.Runtime的混淆,然后将混淆后的程序集以dll的形式复制到一个新的Unity工程,该工程移除了被混淆程序集的原始代码。
46+
4547
### `exception:The type initializer for '$$Obfuz$RVA$' threw an exception., stack: at ...`
4648

4749
还未初始化`EncrytionService<T>::Encryptor`就运行了混淆代码。解决办法为先初始化`EncryptionService<T>::Encryptor`,详细文档见[初始化Encryptor](../manual/encryption.md#初始化encryptor)

i18n/en/docusaurus-plugin-content-docs/current/help/faq.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ If all code is verified and you want to suppress these logs, disable reflection
3535

3636
## Exceptions During Runtime
3737

38+
### TypeLoadException: Could not resolve type with token 010001ec from typeref (expected class '$a.$d`1' in assembly 'Obfuz.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null')
39+
40+
**Do not test and run the obfuscated code in the Editor.**
41+
42+
In the Editor, the original unobfuscated code of the obfuscated assemblies (including Obfuz.Runtime) already exists. The obfuscated assemblies reference obfuscated types and functions, which will cause runtime errors such as "type not found"!
43+
44+
If you must test it, disable obfuscation for Obfuz.Runtime, then copy the obfuscated assemblies (DLLs) into a new Unity project where the original source code of the obfuscated assemblies has been removed.
45+
3846
### `exception:The type initializer for '$$Obfuz$RVA$' threw an exception., stack: at ...`
3947

4048
This occurs when obfuscated code runs before `EncrytionService<T>::Encryptor` is initialized. Solution: Initialize `EncryptionService<T>::Encryptor` first. See [Initialize Encryptor](../manual/encryption.md#initializing encryptor) for details.

0 commit comments

Comments
 (0)