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

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

Open
BenoitFreslon opened this issue Jul 21, 2022 · 0 comments

Comments

@BenoitFreslon
Copy link

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?

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

1 participant