MAC : Simulator refuses to open

For some reason the simulator refuses to open, no errors!

I've reinstalled Eclipse IDE for Java Developers
Version: Oxygen.1a Release (4.7.1a)
Build id: 20171005-1200
OS: Mac OS X, v.10.13, x86_64 / cocoa

and the latest SDK, still no joy. Any ideas?!!?!

I've run THE SEE NO EVIL (whatever that is) and I see..

Couldn't connect to simulator.

Building project for 'd2bravo_titanium'... SUCCESS.

Running tests as 'd2bravo_titanium'.

Executing tests for entire project.

Couldn't connect to simulator.

Building project for 'd2charlie'... SUCCESS.

Running tests as 'd2charlie'.

Executing tests for entire project.



When I do run the actual connectiq project I see IQ app starting on the task bar then closing immediately.

In the mac system.log I see

Nov 3 21:57:59 MacBook-Pro com.apple.xpc.launchd[1] (com.garmin.connectiq.simulator.8400[6495]): Service exited with abnormal code: 255


This is driving me nuts!!!!!
  • Former Member
    Former Member over 7 years ago
    That log message is coming from xpc.launchd, which manages process to process communications and the associated privileges. I have not seen this issue before, but I am not a regular user of macOS. Does launching the simulator manually change the behavior at all? Potentially try running it as a user with more elevated privileges or some other change in context.
  • How do I run it manually?

    There is only one user, me, which is administrator
  • Former Member
    Former Member over 7 years ago
    There are a few ways. In finder you can navigate to the bin directory of your SDK and try to run the ConnectIQ.app like you would a normal application. Problem with that is no logs are presented to you typically. If you navigate to that directory in a terminal and run either 'open ConnectIQ.app' or './ConnectIQ.app/contents/MacOS/simulator' it might give you a bit more information. Could try running each with 'sudo' prepended to the command as well, see if that changes anything.
  • Same thing, with "open ConnectIQ.app", the connectiq icon flashes up on the task bar at the bottom then disappears, with sudo or not

    "sudo ./ConnectIQ.app/contents/MacOS/simulator" fires it up and it works OK

    "./ConnectIQ.app/contents/MacOS/simulator" fires it up but if I click on it, it closes.

    So what does that mean!?!
  • Former Member
    Former Member over 7 years ago
    It means that the simulator is trying to do something early on that is deemed by the manager to require elevated privileges. I do not know what that is, and since I am not an expert on macOS I can't say for sure how to check exactly what it is trying to do. Assuming your user account is set up properly, which it probably is, then there seems to be a bug somewhere, potentially in how the simulator is built? Either way, the report seems somewhat similar to what is reported in this thread:
    https://forums.garmin.com/forum/deve...r-not-starting

    Here is a bit of documentation provided by apple on what the simulator might be doing that would require elevated privileges to run:
    https://developer.apple.com/library/...ssControl.html
  • Rupert, you've been doing CIQ for a long time, so maybe you need to look at what changed when this stopped working. Was it a new computer? A new SDK? New Java?

    Something changed when it broke for you, and that might be a clue as to what to look at.

    Did this happen when you moved from 2.3.4 to 2.3.5? Did you move to 2.4.0beta1 (in which case you need a new plugin, and really need a separate eclipse and workspace)