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?