I was having a problem using simulators in Xcode so I created a simple 2D scene in Unity consisting of a panel that contained a text box. The Target SDK was set to Device SDK and I built the project. When I double clicked the file Unity-iPhone.xcodeproj, Xcode opened with my iPad in the scheme menu. I was able to select the Run button and successfully deploy the app to my iPad.
I then changed the Target SDK to Simulator SDK in Unity and rebuilt the project. When I double clicked the file Unity-iPhone.xcodeproj, Xcode opened with Unity-iPhone → My Mac in the scheme menu. There were no other options, such as simulators, when I tried to change this. I received the message “The run destination My Mac is not valid for running the scheme Unity-iPhone” when I selected the Run button.
I next created a simple project as a Single View Application directly in Xcode and it gave me the option to select one of several simulators so it looks like simulators are available in Xcode.
I’m running El Capitan 10.11.1, Xcode 7.1 and Unity 5.2.2. Is this a bug in Unity or am I doing something wrong?
[BTW, there are 238 issues in Xcode for this simple project, including unused variables L_5 and L_6, implicit conversion loses integer precision, extern variable has an initializer, etc.]
Hello, this is a known issue with Xcode 7.1. A work around is to set the Supported Platforms build setting to “iOS”. You need to do this in both the project settings and in the build target.
A fix is expected in the next patch release of both 5.2 and 4.6.9
In Xcode, near the left side of the screen, you’ll see PROJECT with Unity-iPhone underneath, and TARGETS with the same. Just select Unity-iPhone under PROJECT and TARGETS and near the top, under Architectures of both, is the field “Supported Platforms” and change both of those from iphonesimulator to just iOS.