Unable to load private key: ~/ConnectIQ-SDK/developer_key.der (No such file or directory)

Hi all,

I'm doing my once a year update to my one and only app, and as is the case pretty much every time, my environment is utterly broken after updating the SDK :)

I'm seeing `Unable to load private key: ~/ConnectIQ-SDK/developer_key.der (No such file or directory)` when I try to run my app in the simulator (or build, or any other command) but this file absolutely does exist. In fact I can copy the output command line and run it in a separate terminal and it works (I just have to wrap quotes around the jar file in the path for this). However the command doesn't launch the simulator when I do that, so I can't run in the simulator at all now. Grateful for any help.

-William

  • It looks like "~" isn't expanded properly if you use it in the path for your private key. I just tried it in my Monkey C developer key path setting and I got the same error.

    Try replacing "~/ConnectIQ-SDK/developer_key.der" with "/users/YOUR_USERNAME/ConnectIQ-SDK/developer_key.der" in the developer key path setting (CMD-SHIFT-P > user settings > monkey c > developer key path)