I realise this is a duplicate of a few other questions:

[Ineligible Devices section appeared in Xcode 6.x.x](https://stackoverflow.com/questions/24039010/xcode6-ineligible-devices-section-appeared)

[Xcode 6 won't let me develop on my iOS 8 phone](https://stackoverflow.com/questions/24024460/xcode-6-wont-let-me-develop-on-my-ios-8-phone)

But I'm hoping to provide more detail.

Different messages appear at different times in the System Console, when this error occurs:

> 
>   
> 18/08/14 2:46:22.000 am kernel[0]: USB (XHCI Root Hub USB 2.0
>  Simulation):Port 1 on bus 0xa connected or disconnected:
>  portSC(0xe0206e1)   
> 18/08/14 2:46:24.827 am Xcode[300]:
>  stream\_image (thread 0x1131f5000): received ack: ReceiveBytesAck,
>  proceeding with transfer...   
> 18/08/14 2:46:24.830 am
>  com.apple.usbmuxd[47]: MuxTCPInputSCE received RST for
>  0x1-5448ce54615fa3fcc36079423e0fde3c403d1615@0x14100000:49230->0x100312220-Xcode/com.apple.dt.Xcode:10752:
>  handleMuxTCPInput no matching session   
> 18/08/14 2:46:24.830 am
>  com.apple.usbmuxd[47]: MuxTCPInputSCE received RST for
>  0x1-5448ce54615fa3fcc36079423e0fde3c403d1615@0x14100000:49230->0x100312220-Xcode/com.apple.dt.Xcode:10752:
>  handleMuxTCPInput no matching session   
> 18/08/14 2:46:24.831 am
>  com.apple.usbmuxd[47]: MuxTCPInputSCE received RST for
>  0x1-5448ce54615fa3fcc36079423e0fde3c403d1615@0x14100000:49230->0x100312220-Xcode/com.apple.dt.Xcode:10752:
>  handleMuxTCPInput no matching session   
> 18/08/14 2:46:24.831 am
>  Xcode[300]: \_\_stream\_image\_block\_invoke (thread 0x1131f5000):
>  AMDServiceConnectionSend failed: 0xe800002d, kAMDSendMessageError,
>  buflen: 65536, sent: -1   
> 18/08/14 2:46:24.831 am Xcode[300]:
>  stream\_image (thread 0x1131f5000): read\_file failed   
> 18/08/14
>  2:46:24.831 am Xcode[300]: AMDeviceMountImage (thread 0x1131f5000):
>  stream\_image failed (kAMDSendMessageError), trying copy...
>    
> 18/08/14 2:46:24.831 am Xcode[300]: copy\_image (thread
>  0x1131f5000): Jay Root   
> 18/08/14 2:46:27.365 am Xcode[300]:
>  AMDeviceMountImage (thread 0x1131f5000): line: 207: Could not hangup
>  with service agent: kAMDSendMessageError   
> 18/08/14 2:46:27.454 am
>  Xcode[300]: mount\_image (thread 0x1131f5000): There was an error
>  mounting the image: kAMDSuccess   
> 18/08/14 2:46:27.455 am
>  Xcode[300]: AMDeviceMountImage (thread 0x1131f5000): Could not mount
>  image: kAMDMobileImageMounterMissingImagePath   
> 18/08/14
>  2:46:27.456 am Xcode[300]: AMDeviceMountImage (thread 0x1131f5000):
>  Could not hangup with service agent: kAMDSendMessageError
> 
> 
> 

These occur simultaneously with the following errors from the iPhone logs:

> 
>   
> Aug 18 03:05:55 iPhone mobile\_storage\_proxy[145] :
>  0x34ae59cc handle\_receive\_bytes: The request is missing the disk image
>  signature   
> Aug 18 03:05:55 iPhone mobile\_storage\_proxy[145]
>  : 0x34ae59cc handle\_receive\_bytes: failed, unlinking   
> Aug
>  18 03:05:55 iPhone mobile\_storage\_proxy[145] : 0x34ae59cc main:
>  Could not receive bytes   
> Aug 18 03:05:55 iPhone
>  mobile\_storage\_proxy[146] : 0x34ae59cc handle\_mount\_image:
>  Could not find disk image   
> Aug 18 03:05:55 iPhone
>  mobile\_storage\_proxy[146] : 0x34ae59cc main: Could not mount
>  the image
> 
> 
> 

Note: Timestamp is off in the above logs because I copied the iPhone logs from a different test-run.

Other times, this error is preceded by another USB-related error message in the OSX logs:

> 
> 18/08/14 1:37:58.824 am com.apple.usbmuxd[47]: MuxClearPipeStall Can't clear pipe stall 2 on 0x4-5448ce54615fa3fcc36079423e0fde3c403d1615@0x14200000. Error: 0xe00002c0
> 
> 
> 

The above message ALSO being common to some [generic iTunes sync issues](https://discussions.apple.com/message/9655871#9655871) encountered [very long ago](https://discussions.apple.com/message/9808946#9808946) by some users

Restarting XCode, the iPhone, the Mac over and over and reconnecting the device in different orders (while the Mac is starting up. Before XCode is launched. After XCode is launched, etc.) has not helped. 

Resetting the PRAM and SMC (a couple different procedures [here](http://www.ehow.com/how_7351075_reset-usb-ports-mac-laptops.html) and [here](http://macs.about.com/od/usingyourmac/qt/Resetting-The-Smc-System-Management-Controller-On-Your-Mac.htm)) have not helped either. 

### Can someone understand the root of the issue from the above logs? And if so, suggest a more permanent solution?

 (than restarting X device or performing some timing voodoo).