Fire launching the wrong version of the simulator

How does Fire know which version of the simulator to launch ?

If I create a new iOS app I get

dyld: app was built for iOS 8.4 which is newer than this simulator 8.1
Process started.
Fatal exception on thread 53f23
Type: (null)
Message: Exception: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
Detached
Debug session canceled by user.

Which is correct because the launched simulator is 8.1

I downloaded 8.4 in xcode and I can see 8.2 is also installed. If I create a new iOs app in xcode, it launches 8.4

Why is Fire continuing to load 8.1 ?

Cheers,
John

Good question. The simulator APIs are a mess, undocumented,and breaks all the time. i’happy i can get any simulator to load ;). I’m in the middle of re-working all that (for tv and watch support, among other things), and i’ll see if i can add support for distill gushing between different versions.

For now, the cleanest solution would be to only have one version (per Xcode) installed, or house “xcrun simctl” from the command line (which is what i’m looking to switching to using too, but that too works pretty flaky and inconsistently in my testing so far :(.

From the xcode menu there is window/devices. From there I can remove individual versions of devices. I found that on stackoverflow, it work but i’m not sure if there is a better way.

With the new build its now trying to run 8.2, even though the only version of the iPhone 6 I have is 8.4

xcode is saying the ios 8.2 simulator is not available. try reinstalling xcode or the simulator runtime.

I also noticed the following in the devices dropdown

weird. whats the output if you run “xcrun simctl list” in terminal?

== Device Types ==
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
iPhone 6s (com.apple.CoreSimulator.SimDeviceType.iPhone-6s)
iPhone 6s Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus)
iPad 2 (com.apple.CoreSimulator.SimDeviceType.iPad-2)
iPad Retina (com.apple.CoreSimulator.SimDeviceType.iPad-Retina)
iPad Air (com.apple.CoreSimulator.SimDeviceType.iPad-Air)
iPad Air 2 (com.apple.CoreSimulator.SimDeviceType.iPad-Air-2)
Apple Watch - 38mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-38mm)
Apple Watch - 42mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-42mm)
== Runtimes ==
iOS 8.1 (8.1 - 12B411) (com.apple.CoreSimulator.SimRuntime.iOS-8-1) (unavailable, failed to open liblaunch_sim.dylib)
iOS 8.2 (8.2 - 12D508) (com.apple.CoreSimulator.SimRuntime.iOS-8-2) (unavailable, failed to open liblaunch_sim.dylib)
iOS 8.3 (8.3 - 12F70) (com.apple.CoreSimulator.SimRuntime.iOS-8-3) (unavailable, failed to open liblaunch_sim.dylib)
iOS 9.0 (9.0 - 13A340) (com.apple.CoreSimulator.SimRuntime.iOS-9-0)
watchOS 2.0 (2.0 - 13S343) (com.apple.CoreSimulator.SimRuntime.watchOS-2-0)
== Devices ==
– iOS 8.1 –
– iOS 8.2 –
iPhone 4s (1210A208-ABB1-4DDD-A0ED-0CC0CABB9029) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPhone 5 (F57547F1-3904-4322-A406-F618965BD095) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPhone 5s (A2B29138-4148-40BD-BB40-CF59BAF42D60) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPhone 6 (70A7C1D5-29F0-4404-88E2-28AF3B52FC80) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPhone 6 Plus (09A672BB-CCB9-4133-9874-2007737A5CBC) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPad 2 (6E13B9AD-1B08-4C07-8B8E-9A6D418E2154) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPad Retina (5075A4C1-2EA1-426D-83D2-10034EB80E18) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPad Air (80DBE962-C296-494F-8577-E61001A67399) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
Resizable iPad (81601089-0251-4757-AF35-93B509E60153) (Shutdown) (unavailable, device type profile not found)
Resizable iPhone (2C051AAB-739E-455F-AFEB-9C650E75D783) (Shutdown) (unavailable, device type profile not found)
– iOS 8.3 –
iPhone 4s (E0A6A386-27B3-4F52-8BD0-178A5CB33449) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPhone 5 (96AAF760-ADCB-4630-89E0-7DA314F7DC21) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPhone 5s (7E59BBF9-F70A-4F59-B2BD-F58A087E9DAC) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPhone 6 Plus (11B0E0D5-1A5C-4331-A223-5E5FEF1002E1) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPad 2 (7A1DA6B4-79FB-4773-B92A-EE7946C70D00) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPad Retina (1D8AB1D1-1462-487B-A22E-BBC73BE0A243) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
iPad Air (266F4EB6-ACA2-4545-B073-62F15D4DE677) (Shutdown) (unavailable, failed to open liblaunch_sim.dylib)
Resizable iPad (827432AD-1375-4CD2-8EAE-E932C661B1C2) (Shutdown) (unavailable, device type profile not found)
Resizable iPhone (50121163-5D52-4F42-883F-768B5AA33D6A) (Shutdown) (unavailable, device type profile not found)
– iOS 9.0 –
iPhone 4s (CAE53ED9-952C-40FE-87F9-182F3640EC41) (Shutdown)
iPhone 5 (E8D219AC-C53D-4D0E-9EA1-581AE375A148) (Shutdown)
iPhone 5s (6DA25B1D-6F85-4F31-B2D2-2AF498246B9E) (Shutdown)
iPhone 6 (E7D93127-F04A-45E8-AC7B-D27BB25E3833) (Shutdown)
iPhone 6 Plus (DF63E6CD-B28F-4EF7-98AC-10AEB896EC34) (Shutdown)
iPhone 6s (BCE51AF6-3012-4BF6-8315-1318771E9E11) (Booted)
iPhone 6s Plus (B0605D0A-F8EF-485C-A350-1A5E2FA87E7F) (Shutdown)
iPad 2 (6FC45350-5267-4515-886B-733EB4ABF0D3) (Shutdown)
iPad Retina (910CA2BF-683A-4658-91D9-B0F5E9DEB602) (Shutdown)
iPad Air (03B1C38E-F325-472E-BB4F-CF5D76A49691) (Shutdown)
iPad Air 2 (73AE80A9-CBA6-4678-97A5-3EA57EAD1CD5) (Shutdown)
– watchOS 2.0 –
Apple Watch - 38mm (395DE3D6-2F56-462C-9E98-2F938F5249AF) (Shutdown)
Apple Watch - 42mm (1396478F-C3CE-4D04-A29F-F1007C916D1C) (Shutdown)
– Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-8-0 –
iPhone 4s (0E8E8BBA-0286-44C6-B914-05F43BACCE1B) (Shutdown) (unavailable, runtime profile not found)
iPhone 5 (706A9363-F70C-4113-9B83-8F8A786AFDDA) (Shutdown) (unavailable, runtime profile not found)
iPhone 5s (FC55D206-11A2-4205-BB51-4C8198B4B611) (Shutdown) (unavailable, runtime profile not found)
iPhone 6 (7C904C7C-D9C2-4E18-9CA0-39650248339F) (Shutdown) (unavailable, runtime profile not found)
iPhone 6 Plus (8B0BBB39-9893-4496-ACEC-4C2E81D9294F) (Shutdown) (unavailable, runtime profile not found)
iPad 2 (0877209F-A8CA-4CE0-AF59-7F09579EEC5E) (Shutdown) (unavailable, runtime profile not found)
iPad Retina (7563F055-CF46-44A0-AB5D-2D4A092282D3) (Shutdown) (unavailable, runtime profile not found)
iPad Air (1FD82BCF-6926-46D4-B24F-33D295F47D6A) (Shutdown) (unavailable, runtime profile not found)
Resizable iPad (961281D2-043A-4D25-9264-8AD02AFA92FA) (Shutdown) (unavailable, runtime profile not found)
Resizable iPhone (288D1CB3-85AD-4C1C-A26A-8B7373A14DB4) (Shutdown) (unavailable, runtime profile not found)
– Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-8-4 –
iPhone 4s (D0104968-0009-40DD-9A6D-8591B6E67D5E) (Shutdown) (unavailable, runtime profile not found)
iPhone 5 (E639115C-7B2D-43E7-ACDC-02393FC000D4) (Shutdown) (unavailable, runtime profile not found)
iPhone 5s (6DAE4458-3B21-4616-AD0F-A6E87A935C80) (Shutdown) (unavailable, runtime profile not found)
iPhone 6 (731E6D58-1CB6-48C3-94B9-7E1A44DFD438) (Shutdown) (unavailable, runtime profile not found)
iPhone 6 Plus (541C0F96-6388-4D9E-B9AA-7BC12BC8CAF5) (Shutdown) (unavailable, runtime profile not found)
iPad 2 (B5B0F2A9-99EE-4C4B-9739-9698593D5C90) (Shutdown) (unavailable, runtime profile not found)
iPad Retina (1437649D-5BAA-4E30-9627-3ED75B4C7032) (Shutdown) (unavailable, runtime profile not found)
iPad Air (22212CD1-11CA-47C1-8F09-5AB243D2B99F) (Shutdown) (unavailable, runtime profile not found)
Resizable iPad (94E3A927-1946-443E-BF28-C45FD6142F09) (Shutdown) (unavailable, runtime profile not found)
Resizable iPhone (53E44A70-281E-43D5-9A2C-EBE902062BD2) (Shutdown) (unavailable, runtime profile not found)
== Device Pairs ==
2E5C9E0E-C58A-4215-B835-4BE3AC96D957 (disconnected)
Watch: Apple Watch - 38mm (395DE3D6-2F56-462C-9E98-2F938F5249AF) (Shutdown)
Phone: iPhone 6 (E7D93127-F04A-45E8-AC7B-D27BB25E3833) (Shutdown)
6582700B-20A7-4B11-B49C-EF259B6ADA5C (disconnected)
Watch: Apple Watch - 42mm (1396478F-C3CE-4D04-A29F-F1007C916D1C) (Shutdown)
Phone: iPhone 6 Plus (DF63E6CD-B28F-4EF7-98AC-10AEB896EC34) (Shutdown)

yay. good thing that this is format isn’t safely machine-parseable AT ALL :(. i’ll try to accommodate. Please don’t touch anything i can send to a new build to retest this :wink:

I’ve uploaded a new build for you. This one should filter out the unavailable sims.

That worked, although the list looks a bit funny. I don’t seem to have an iPhone 6, is that right ?

I forgot to mention before that I was using the iPhone 6s, that was iOS 9

i see iPhone 6 in your list?

Do you mean iPhone 6 + Apple Watch ? I was expecting an iPhone 6 with no watch

Well. If the simulators are configured to be paired, I show em as pair. If they aren’t, I don’t.