Skip to content

Instantly share code, notes, and snippets.

@jmoody
Created December 3, 2014 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoody/6b84902ce875a63f9ac4 to your computer and use it in GitHub Desktop.
Save jmoody/6b84902ce875a63f9ac4 to your computer and use it in GitHub Desktop.
Archive of "Errno::EINTR: Interrupted system call" run-loop issue #35 from calabash-ios wiki Hot Topics

2. Errno::EINTR: Interrupted system call

See the discussion here: calabash/run_loop#35

This is an active issue; no comprehensive solution exists yet.

You can see this error if:

  1. The bundle identifier is incorrect.
  2. The device is not enabled for UIAutomation. Starting in iOS 8, you must enable UIAutomation on the device using the switch in Settings.app > Developer > Enable UIAutomation.
  3. The device is not enabled for development. We have observed that devices can change from enabled to disabled for development when migrating from iOS 7 to iOS 8 and between iOS 8 betas. The best practice is to restart the device after migrating. See instructions below for verifying that your device is enabled using the Instruments.app.
  4. The device should appear in Xcode's Devices window (Shift + Command + 2) without a yellow warning.
  5. The device must appear in Xcode's Scheme > Target device list as eligible. See below for a screenshot.

To work-around 3, 4, and 5, you can try plugging the problem device into another Mac that is running Yosemite and the latest (non-beta) version of Xcode.

Requesting Feedback

There is a simple, definitive test to determine if the Xcode toolchain or Calabash is blame. [1] Please report results in the run-loop GitHub issue. [2]

Testing if the Device is Enabled for Development
  1. Connect the device via USB.
  2. Open Instruments.app for your current version of Xcode.
  3. Select the Automation template
  4. In the top left corner of the window, select your device and the a target application.

If your device is not enabled for development, Instruments.app will tell you to open Xcode to enable the device for development.

image


Example of an Ineligible Device

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment