Unable to launch iOS 7.1 Simulator test with Xcode 6+

I have an app that I am trying to test in the iOS Simulator with Appium 1.3.4 and Xcode 6.1.1. The simulator launches and Instruments connects correctly when I specify platformVersion: 8.1, but when I specify platformVersion: 7.1 it seems that Instruments will almost always fail to connect.

Here is a typical failure log: https://gist.github.com/amake/cc8c0859d0b544e78d14

More specifically, very rarely it will connect once, but then will fail to connect on all subsequent attempts until somehow it is reset, and the pattern starts over. I’m not sure what causes it to be reset, but I have tried things like xcode-select’ing different Xcode versions, rebooting, etc. None seem to work reliably.

Other pertinent details:

  • The app runs fine in the iOS Simulator 7.1 if launched from Xcode.
  • Reverting to Xcode 6.1 or Xcode 6.0.1 does not fix the problem.
  • Rebooting does not fix the problem.
  • Reverting to Appium 1.3.1 does not fix the problem.

Any ideas?

I forgot to mention that I’m running Yosemite (OS X 10.10.1).

In fact this issue is reproducible in a freshly installed Yosemite VM with Appium.app 1.3.4 and Xcode 6.1.1.

  1. Open Appium.app and set app path, device = iPhone 5s, platform version = 7.1.
  2. Click Launch button.
  3. Click Inspector button.
  4. The app will launch correctly and the Inspector will succeed once.
  5. Close the Inspector and click the Stop button.
  6. Click Launch and Inspector buttons again. This time and all successive times, the app will fail to launch.