Search Unity

Unable to locate PSM Tools for Unity

Discussion in 'PSM' started by xixgames, Apr 8, 2014.

  1. xixgames

    xixgames

    Joined:
    Jan 20, 2014
    Posts:
    31
    Hello, if your Unity for PSM can't find PSM tools...

    Code (csharp):
    1. Error post-processing Player data: UnityException: Unable to locate PSM Tools for Unity! (Check environment variable 'SCE_PSM_UNITY')
    I'm using PC System properties -> system vars
    Name:
    SCE_PSM_UNITY
    with value:
    C:\Games\sdks\mobiletoolsunity

    If you got this error in the console:

    Code (csharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEditor.PSM.PsmDeviceTool.IsServerRunning () (at C:/BuildAgent/work/b68db70963144d2d/PlatformDependent/PSM/Editor/Managed/PsmDeviceTool.cs:165)
    3. UnityEditor.PSM.PostProcessPSM.regenerate_keys (System.String projectName) (at C:/BuildAgent/work/b68db70963144d2d/PlatformDependent/PSM/Editor/Managed/PostProcessPSM.cs:610)
    4. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    5. Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    6. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    7. System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    8. UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings () (at C:/BuildAgent/work/b68db70963144d2d/Editor/Mono/BuildPlayerWindow.cs:1381)
    9. UnityEditor.BuildPlayerWindow.OnGUI () (at C:/BuildAgent/work/b68db70963144d2d/Editor/Mono/BuildPlayerWindow.cs:1155)
    10. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    11. Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    12. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    13. System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    14. UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/BuildAgent/work/b68db70963144d2d/Editor/Mono/GUI/DockArea.cs:231)
    15. UnityEditor.HostView.Invoke (System.String methodName) (at C:/BuildAgent/work/b68db70963144d2d/Editor/Mono/GUI/DockArea.cs:224)
    16. UnityEditor.HostView.OnGUI () (at C:/BuildAgent/work/b68db70963144d2d/Editor/Mono/GUI/DockArea.cs:120)
    17.  
    When you press the buttons "Open Publishing Utility" or "Regenerate Keys" ,this errors disappears if you install all the tools before launching unity for psm.
     
    Last edited: Apr 8, 2014