I have stopped all simulator processes but still getting below error.
Restore the connection to "iPad 2" and run "APPNAME" again, or if "APPNAME" is still running, you can attach to it by selecting Debug > Attach to Process > APPNAME.
Getting this error in Xcode 7.3.1, which is not consistent.
I have a CollectionView
and into that, I want to show images from the document directory. So I am using SDWebImage
SDK for that. So somehow this happens due to this line.
let url:NSURL = NSURL(fileURLWithPath: myPathOfDocumentDirectory)
cell.myImageView.sd_setImageWithURL(url, placeholderImage: UIImage(named: "background"))
Because when I put comment on line for set the image into ImageView
via SDWebImage
SDK, then app not getting crashed. Otherwise it will crash randomly. Also it happens in devices too. I have test this in many devices.
I have read many answers, but into all that answers, talking about reset the simulator. But this happens many times with me. So I want a solution for this.
So Is there anyway to show images from document directory in CollectionView
..?
Any help would be appreciated.