无法验证装配数据;你加载这个装置时,必须提供授权密钥 [英] Unable to verify assembly data; you must provide an authorization key when loading this assembly
问题描述
我测试在Unity InteractiveConsole例子。我确实在官方教程的一些配置。
某些设置上我了一步后的 7:运行我们的示例代码的
I'm testing the InteractiveConsole example in Unity. I did some configurations as described in the official tutorial. After some setups I got on step 7: Run our example code.
不过,我收到以下错误:
However, I'm receiving the following errors:
无法验证装配数据;你加载这个装置时,必须提供授权密钥
。
UnityEngine.Security:LoadAndVerifyAssembly(字节[])
c__Iterator1:调用MoveNext()(在
资产/ Facebook的/脚本/ FB.cs:326)
Unable to verify assembly data; you must provide an authorization key when loading this assembly. UnityEngine.Security:LoadAndVerifyAssembly(Byte[]) c__Iterator1:MoveNext() (at Assets/Facebook/Scripts/FB.cs:326)
无法安全地从
的 https://integrated-plugin-canvas-rsrc.fbsbx.com/rsrc/unity/lib/sdk_4.0/CanvasFacebook.dll
UnityEngine.Debug:LOGERROR(对象)FbDebug:错误(字符串)
c__Iterator1:调用MoveNext()(在
资产/ Facebook的/脚本/ FB.cs:329)
Could not securely load assembly from https://integrated-plugin-canvas-rsrc.fbsbx.com/rsrc/unity/lib/sdk_4.0/CanvasFacebook.dll UnityEngine.Debug:LogError(Object) FbDebug:Error(String) c__Iterator1:MoveNext() (at Assets/Facebook/Scripts/FB.cs:329)
不知道该怎么做。任何想法?
Not sure what to do. Any ideas?
推荐答案
相反变化的号召,作为LoadAndVerifyAssembly建议@BrianJew,你根本就改变FB线381。 CS,它说:
Instead of change the call to LoadAndVerifyAssembly as @BrianJew suggests, you simply can change the line 381 of FB.cs, where it says
#if UNITY_4_5
您应该把
#if UNITY_4_5 || UNITY_4_6
或您所在Unity的版本,此时,相应的标志。该块中的关键是从这个URL 获得的https:// integrated-plugin-canvas-rsrc.fbsbx.com/rsrc/unity/key/sdk_5.1/AuthToken.unityhash
Or the appropiate flag for your Unity's version. In that block the key is obtained from this URL https://integrated-plugin-canvas-rsrc.fbsbx.com/rsrc/unity/key/sdk_5.1/AuthToken.unityhash
这篇关于无法验证装配数据;你加载这个装置时,必须提供授权密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!