Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新版本无法生成IFix.Core.dll和IFix.exe #81

Closed
yyh9488 opened this issue Feb 10, 2020 · 4 comments
Closed

最新版本无法生成IFix.Core.dll和IFix.exe #81

yyh9488 opened this issue Feb 10, 2020 · 4 comments

Comments

@yyh9488
Copy link

yyh9488 commented Feb 10, 2020

在修改路径后运行build_for_unity.bat。使用12月12日的版本就可以出生成并打开示例的项目没有问题。不知道是不是操作有变,但是使用最新版本是无法生成IFix.Core.dll和IFix.exe示例的项目打开会报错

@chexiongsheng
Copy link
Collaborator

build_for_unity.bat会报什么错呢?

@yyh9488
Copy link
Author

yyh9488 commented Feb 16, 2020

build_for_unity.bat会报什么错呢?

G:\迅雷下载\InjectFix-master\Source\VSProj>call "D:\Unity\2019.2.14f1\Editor\Data\Mono\bin\gmcs" ShuffleInstruction.cs -out:.\ShuffleInstruction.exe

G:\迅雷下载\InjectFix-master\Source\VSProj>exit /b 0

G:\迅雷下载\InjectFix-master\Source\VSProj>"D:\Unity\2019.2.14f1\Editor\Data\MonoBleedingEdge\bin\mono" ShuffleInstruction.exe Src\Core\Instruction.cs Instruction.cs
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319

Cannot determine the text encoding for the assembly location: G:\迅雷下载\InjectFix-master\Source\VSProj\ShuffleInstruction.exe
Please add the correct encoding to MONO_EXTERNAL_ENCODINGS and try again.

G:\迅雷下载\InjectFix-master\Source\VSProj>call "D:\Unity\2019.2.14f1\Editor\Data\Mono\bin\gmcs" -define:UNITY_IPHONE -unsafe -target:library -out:..\UnityProj\Assets\Plugins\IFix.Core.dll Src\Builder*.cs Src\Version.cs Instruction.cs Src\Core\AnonymousStorey.cs Src\Core\DataDefine.cs Src\Core\GenericDelegate.cs Src\Core\Il2CppSetOptionAttribute.cs Src\Core\ObjectClone.cs Src\Core\ReflectionMethodInvoker.cs Src\Core\StackOperation.cs Src\Core\SwitchFlags.cs Src\Core\Utils.cs Src\Core\VirtualMachine.cs Src\Core\WrappersManager.cs
error CS2001: Source file `Instruction.cs' could not be found
Compilation failed: 1 error(s), 0 warnings

G:\迅雷下载\InjectFix-master\Source\VSProj>exit /b 1

G:\迅雷下载\InjectFix-master\Source\VSProj>md ..\UnityProj\IFixToolKit
子目录或文件 ..\UnityProj\IFixToolKit 已经存在。

G:\迅雷下载\InjectFix-master\Source\VSProj>copy /Y ThirdParty\Mono.Cecil* ..\UnityProj\IFixToolKit
ThirdParty\Mono.Cecil.dll
ThirdParty\Mono.Cecil.Mdb.dll
ThirdParty\Mono.Cecil.Pdb.dll
已复制 3 个文件。

G:\迅雷下载\InjectFix-master\Source\VSProj>call "D:\Unity\2019.2.14f1\Editor\Data\Mono\bin\gmcs" -define:UNITY_IPHONE -unsafe -reference:ThirdParty\Mono.Cecil.dll,ThirdParty\Mono.Cecil.Mdb.dll,ThirdParty\Mono.Cecil.Pdb.dll -out:..\UnityProj\IFixToolKit\IFix.exe -debug Instruction.cs Src\Tools*.cs Src\Version.cs
error CS2001: Source file `Instruction.cs' could not be found
Compilation failed: 1 error(s), 0 warnings

G:\迅雷下载\InjectFix-master\Source\VSProj>exit /b 1

G:\迅雷下载\InjectFix-master\Source\VSProj>pause
请按任意键继续. . .

@yyh9488
Copy link
Author

yyh9488 commented Feb 16, 2020

突然想到可能是中文路径的问题,测试了一下是中文路径问题,
不过上次在另一台机器的也注意过,可能是我忘了

@YuJiMing
Copy link

YuJiMing commented Jun 4, 2020

6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants