Error building Player: SystemException: 'System.Net.Sockets' are supported only with Unity Android Pro. Referenced from assembly 'GameSparks'.
j
jake narciso
started a topic
about 6 years ago
Im having this error when I tried publishing my game. I hope you can help me thank you
Best Answer
C
Customer Support
said
about 6 years ago
Hi Jake,
Unfortunately Unity have chosen to make sockets on mobile part of their pro package. There is a way around it with a plugin called "Good Ol' Sockets" available from the Unity Asset Store.
There is a slight modification to make with Good Ol' Sockets though, here's a quick run through:
Step 1 - Patch your scripts to use Good Ol' Sockets:
Unfortunately Unity have chosen to make sockets on mobile part of their pro package. There is a way around it with a plugin called "Good Ol' Sockets" available from the Unity Asset Store.
There is a slight modification to make with Good Ol' Sockets though, here's a quick run through:
Step 1 - Patch your scripts to use Good Ol' Sockets:
Step 2 - Edit GameSparks:
Change:
using LostPolygon.System.Net;
Back to:
using System.Net;
And you're good to go!
Shane
S
Stephane Cros
said
over 5 years ago
Hi Shane,
I have the same error when trying to export for iOS.
Error building Player: SystemException: System.Net.Sockets are supported only on Unity iOS Pro. Referenced from assembly 'GameSparks'.
I tried your suggestion, and GameSparksEditorFormUpload.cs isthe only Gamesparks file where I can find that line of code:
using LostPolygon.System.Net;
I still get the same error message after replacing it with
using System.Net;
My software versions are:
- Unity 4.6.6
- LostPolygon Good Ol' Sockets 2.0.0
- iOS 7.1
- Scripting Backend : IL2CPP
- Architecture: Universal (Armv7 + Arm64)
Any suggestion?
Am I changing the correct file?
S
Stephane Cros
said
over 5 years ago
I found the solution for the problem with Gamesparks, Unity free, GoodOldSocket and Xcode. It was due to a poor upgrade mechanism from GoodOldSocket 1.4.4 to 2.0.0:
Good Ol Sockets 1.4.4 creates a copy of Assets > Plugins > GameSparks.dll and names it GameSparks.dll.bak.
It fails to remove it when reverting the patch.
After upgrading, GoodOldSockets 2.0.0 sees the .bak and assumes that GameSparks.dll does not need to be patched, so it skips it.
Deleting GameSparks.dll.bak and running the patch again solves it.
jake narciso
Im having this error when I tried publishing my game. I hope you can help me thank you
Hi Jake,
Unfortunately Unity have chosen to make sockets on mobile part of their pro package. There is a way around it with a plugin called "Good Ol' Sockets" available from the Unity Asset Store.
There is a slight modification to make with Good Ol' Sockets though, here's a quick run through:
Step 1 - Patch your scripts to use Good Ol' Sockets:
Step 2 - Edit GameSparks:
Change:
Back to:
And you're good to go!
Shane
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Jake,
Unfortunately Unity have chosen to make sockets on mobile part of their pro package. There is a way around it with a plugin called "Good Ol' Sockets" available from the Unity Asset Store.
There is a slight modification to make with Good Ol' Sockets though, here's a quick run through:
Step 1 - Patch your scripts to use Good Ol' Sockets:
Step 2 - Edit GameSparks:
Change:
Back to:
And you're good to go!
Shane
Stephane Cros
Hi Shane,
I have the same error when trying to export for iOS.
I tried your suggestion, and GameSparksEditorFormUpload.cs is the only Gamesparks file where I can find that line of code:
I still get the same error message after replacing it with
My software versions are:
- Unity 4.6.6
- LostPolygon Good Ol' Sockets 2.0.0
- iOS 7.1
- Scripting Backend : IL2CPP
- Architecture: Universal (Armv7 + Arm64)
Any suggestion?
Am I changing the correct file?
Stephane Cros
I found the solution for the problem with Gamesparks, Unity free, GoodOldSocket and Xcode. It was due to a poor upgrade mechanism from GoodOldSocket 1.4.4 to 2.0.0:
Good Ol Sockets 1.4.4 creates a copy of Assets > Plugins > GameSparks.dll and names it GameSparks.dll.bak.
It fails to remove it when reverting the patch.
After upgrading, GoodOldSockets 2.0.0 sees the .bak and assumes that GameSparks.dll does not need to be patched, so it skips it.
Deleting GameSparks.dll.bak and running the patch again solves it.
Have a nice day.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2485 topics