- Home /
Building for iOS Fails, Claiming Sockets in Use, But they Are Not
I'm trying to build my code for the iPad for the first time. When I select Build and Run, I get the following error:
Exception: Error building Player: SystemException: System.Net.Sockets are supported only on Unity iPhone Advanced. Referenced from assembly 'Mono.Data.Tds'. UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) UnityEditor.BuildPlayerWindow.BuildPlayerAndRun ()
However, I am not using System.Net.Sockets. I am using a .NET 2.0 build of JSON.NET and some System.Linq.Xml code, but nothing related to sockets at all. This code runs fine on Windows, Android and Mac, but fails to build for iOS. What is going wrong here?
Answer by Phong · Mar 11, 2012 at 07:05 PM
I got the same error. It turned out to be the JsonFx assembly. If I removed it the build was successfull. Looks like I am going to have to look at the JsonFx source and see if I can remove the .net references.
Answer by techshaman · Sep 07, 2012 at 02:14 PM
I am having the same issue from the Android side. I have android basic, I am not trying to use System.Net.Sockets, and yet I receive this error and am unable to test my game on my device. I DO use WWW in my scripts but this should be fully supported on Android Basic.
Can anyone help here? Is there a way to view all the assemblies my project is referencing? Possibly I can remove an unneeded one that is breaking this?
Your answer
Follow this Question
Related Questions
ios build error (UnityException: Failed assemblies stripper) 1 Answer
Game not building on Mac iOS but works fine on PC 3 Answers
Xcode build fails, How to ? 1 Answer
Distribute terrain in zones 3 Answers