- Home /
System.Net.Sockets are not supported
Today I wanted to build my game to iOS for Xcode, and got this error:
Error building Player: SystemException: System.Net.Sockets are supported only on Unity iOS Pro. Referenced from assembly 'Assembly-CSharp'.
How do I remove this error so i can finally get a successful build?
Answer by frarees · Mar 29, 2014 at 08:09 PM
Sockets are an iOS Pro feature only.
Check your scripts for sockets usage. In case it's a third-party library you're using, contact the package vendor.
What is some example of code that uses Sockets, so I can pin-point them easier in my code?
Probably any usage of a class inside that namespace will make your compilation to fail. Check the full namespace here
I have the same issue too and I am not sure what to do to solve it. Do I have to check all scripts if they use a class of the namespace? If yes, how could I do this?
I fixed it by going through every script I've made or downloaded, and checked if I used Net sockets. You would know if you have used net sockets. If you downloaded a network script from online and you don't know if it uses net sockets or not, then delete it. Thats how I fixed it.