iOS Simulators not appearing for Unity Build
Asked Answered
B

3

10

Forgive me if I'm missing something obvious, but since updating to XCode 7.1, I'm not seeing any option for deploying to simulators. I don't spend a ton of time in XCode so it may be just a setting somewhere, but I can't seem to find it. I had them before, and I've tried going into the Devices window and theres a list of them there, and the "Show in run destinations Menu" option is checked, but they don't appear when I try to deploy. If anyone could point me in the right direction it would be greatly appreciated.

Devices are here No Simulators Thanks,

Dylan

Babel answered 18/1, 2016 at 17:46 Comment(0)
U
25

You have to choose "Simulator SDK" in the iOS player settings, or they're not available in Xcode. You cannot have both the simulator and the device builds in the same Xcode project from Unity.

Well... without mashing them together yourself.

Usn answered 18/1, 2016 at 18:26 Comment(3)
Just realized that myself. Thanks for posting!Babel
In case this isn't clear, in Unity -> Player settings -> iOS tab -> Other Settings -> Target SDK is where you set "Simulator SDK"Lockjaw
For those looking to set this property programmatically in Unity Scripting API, it's the property PlayerSettings.iOS.sdkVersion : docs.unity3d.com/ScriptReference/…Hedonism
B
5

This was a somewhat obvious answer once I figured it out, but hopefully this can help others. The issue wasn't with XCode but with the Unity build. I forgot to check the Build Settings > Target SDK> Build For Simulator flag in unity.

Babel answered 18/1, 2016 at 18:28 Comment(0)
P
1

In our case we needed to show all architecture as it was built for apple silicon image

Priestley answered 24/6 at 15:3 Comment(1)
Yes, this and "TargetSDK = Simulator SDK" option inside Unity - 'iOS Player Settings'! :)Riverside

© 2022 - 2024 — McMap. All rights reserved.