Skip to content

Game Kit service activated = NullReferenceException when I build (2021.2) #80

@BenoitFreslon

Description

@BenoitFreslon

Hello,

I downloaded the 2021.2 iOS Native pro and I installed the asset on an empty Unity project 2021.3 and 2020.3
I got the same problem when I active the Game Kit service and when I build the project.

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.iOS.Xcode.ProjectCapabilityManager.AddGameCenter () (at /Users/bokken/buildslave/unity/build/External/XcodeAPI/Xcode/ProjectCapabilityManager.cs:166)
StansAssets.IOS.XCode.XCodeProjectBuildPostProcess.AddCapabilities (UnityEditor.iOS.Xcode.ProjectCapabilityManager capManager) (at Assets/Plugins/StansAssets/com.stansassets.xcode-project/Editor/Core/XCodeProjectBuildPostProcess.cs:255)
StansAssets.IOS.XCode.XCodeProjectBuildPostProcess.OnPostprocessBuild (UnityEditor.BuildTarget target, System.String projectPath) (at Assets/Plugins/StansAssets/com.stansassets.xcode-project/Editor/Core/XCodeProjectBuildPostProcess.cs:52)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <695d1cc93cca45069c528c15c9fdd749>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

Error:

Assets/Plugins/StansAssets/com.stansassets.xcode-project/Editor/Core/XCodeProjectBuildPostProcess.cs:255

if (capability.GameCenter.Enabled) capManager.AddGameCenter();

Do you have the same problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions